org.jboss.test.idgen.ejb
Class IdGeneratorBean

java.lang.Object
  extended byorg.jboss.test.util.ejb.EnterpriseSupport (src) 
      extended byorg.jboss.test.util.ejb.SessionSupport (src) 
          extended byorg.jboss.test.idgen.ejb.IdGeneratorBean
All Implemented Interfaces:
EnterpriseBean (src) , java.io.Serializable, SessionBean (src)

public class IdGeneratorBean
extends SessionSupport (src)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.SessionSupport (src)
log, sessionCtx
 
Constructor Summary
IdGeneratorBean()
           
 
Method Summary
 long getNewId(java.lang.String beanName)
           
 void setSessionContext(SessionContext (src)  context)
          Set the associated session context.
 
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src)
ejbActivate, ejbCreate, ejbPassivate, ejbRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdGeneratorBean

public IdGeneratorBean()
Method Detail

getNewId

public long getNewId(java.lang.String beanName)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setSessionContext

public void setSessionContext(SessionContext (src)  context)
Description copied from interface: SessionBean (src)

Set the associated session context. The container calls this method after the instance creation.

The enterprise Bean instance should store the reference to the context object in an instance variable.

This method is called with no transaction context.

Specified by:
setSessionContext in interface SessionBean (src)
Overrides:
setSessionContext in class SessionSupport (src)