|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The EBusinessSessionManager (Manager) is a repository for EBusinessSessions (Session). It manages the complete life cycle of its Sessions. Each Session is assigned a unique identifier by the Manager. The identifiers are generated by an AlphaNumericSequencer. The programmer can either accept a default sequence generator shared by all session managers, create a new one by passing in a name in the constructor, or create their own and pass the name into the constructor.
allowMultipleSessionsPerCustomer
[EBusinessSessionManager] <*>------> [{@link boolean boolean}]
sessionIdGenerator
[EBusinessSessionManager] <>------> [{@link theory.smart.axiom.util.AlphaNumericSequencer theory.smart.axiom.util.AlphaNumericSequencer}]
,
EBusinessSessionManagerHome
,
EBusinessSessionManagerImpl
Method Summary | |
EBusinessSession |
createGuestSession()
This method allocates a new session Id and then uses the EBusinessSession home interface to create a new session associated with that Id. |
EBusinessSession |
createRegisteredSession(java.lang.String customerKey)
This method will create a EBusinessSession that is associated with the specified customer. |
void |
deleteSession(EBusinessSession session)
Removes the EBusinessSession. |
boolean |
getAllowMultipleSessionsPerCustomer()
Get the value of allowMultipleSessionsPerCustomer |
java.util.Vector |
getEBusinessSessionByCustomer(java.lang.String customerKey)
Finds all sessions associated with a particular Customer. |
EBusinessSession |
getEBusinessSessionBySession(java.lang.String sessionKey)
Finds an EBusinessSession based on the session's key. |
AlphaNumericSequencer |
getSessionIdGenerator()
Get the remote object reference of sessionIdGenerator |
void |
setAllowMultipleSessionsPerCustomer(boolean allowMultipleSessionsPerCustomer)
Set the value of allowMultipleSessionsPerCustomer |
void |
setSessionIdGenerator(AlphaNumericSequencer sessionIdGenerator)
Set the remote object reference of sessionIdGenerator |
void |
setSessionIdGenerator(java.lang.String sequencerKey)
This method can be used to control the sessionIdGeneration . |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public boolean getAllowMultipleSessionsPerCustomer() throws java.rmi.RemoteException
public void setAllowMultipleSessionsPerCustomer(boolean allowMultipleSessionsPerCustomer) throws java.rmi.RemoteException
allowMultipleSessionsPerCustomers
- allowMultipleSessionsPerCustomer to be addedpublic AlphaNumericSequencer getSessionIdGenerator() throws java.rmi.RemoteException
public void setSessionIdGenerator(AlphaNumericSequencer sessionIdGenerator) throws java.rmi.RemoteException
sessionIdGenerators
- sessionIdGenerator to be addedpublic EBusinessSession getEBusinessSessionBySession(java.lang.String sessionKey) throws java.rmi.RemoteException, javax.ejb.FinderException
public java.util.Vector getEBusinessSessionByCustomer(java.lang.String customerKey) throws java.rmi.RemoteException, javax.ejb.FinderException
public void setSessionIdGenerator(java.lang.String sequencerKey) throws java.rmi.RemoteException, javax.ejb.CreateException
public EBusinessSession createGuestSession() throws java.rmi.RemoteException, javax.ejb.CreateException
public EBusinessSession createRegisteredSession(java.lang.String customerKey) throws java.rmi.RemoteException, javax.ejb.FinderException
public void deleteSession(EBusinessSession session) throws java.rmi.RemoteException, javax.ejb.RemoveException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |