|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Service that provide unified access to clustered HTTPSessions for servlets.
Revisions:
31. d锟絚embre 2001 Sacha Labourey:
ClusteredHTTPSession
,
ClusteredHTTPSessionHome
Field Summary |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary | |
SerializableHttpSession |
getHttpSession(String sessionId,
ClassLoader tcl)
Return the HttpSession associated to a session id. |
String |
getSessionId()
Generates a new session id available cluster-wide |
long |
getSessionTimeout()
Indicate the duration, in ms, after which the session can be cleaned if no access occurs. |
boolean |
getUseLocalBean()
|
void |
removeHttpSession(String sessionId)
Remove an HttpSession from the cluster (log off for example) |
void |
setHttpSession(String sessionId,
SerializableHttpSession session)
Associate a new session with the session id. |
void |
setSessionTimeout(long miliseconds)
Indicate the duration, in ms, after which the session can be cleaned if no access occurs. |
void |
setUseLocalBean(boolean useLocal)
Indicates whether the service should use the local and home interfaces of the entity bean or the remote and remote home interfaces (depending if they are in the same JVM). |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Method Detail |
public SerializableHttpSession getHttpSession(String sessionId, ClassLoader tcl) throws javax.ejb.EJBException
javax.ejb.EJBException
public void setHttpSession(String sessionId, SerializableHttpSession session) throws javax.ejb.EJBException
javax.ejb.EJBException
public void removeHttpSession(String sessionId) throws javax.ejb.EJBException
javax.ejb.EJBException
public String getSessionId()
public long getSessionTimeout()
public void setSessionTimeout(long miliseconds)
public void setUseLocalBean(boolean useLocal)
public boolean getUseLocalBean()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |