jrun.servlet.session
Interface SessionServiceMBean

All Superinterfaces:
ConfigurableServicePartitionMBean, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
All Known Subinterfaces:
Session

public interface SessionServiceMBean
extends ConfigurableServicePartitionMBean

The MBean interface for the JRun session service.

Author:
Karl Moss

Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 boolean getCookieActive()
          Determines whether user sessions should be tracked using cookies.
 int getMaxInactiveInterval()
          Gets the default time, in seconds, between client requests before the servlet container will invalidate a session.
 Session getSessionService()
          Returns a direct reference to the session service
 void setMaxInactiveInterval(int seconds)
          Sets the default time, in seconds, between client requests before the servlet container will invalidate a session.
 
Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean
setChildElements
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Method Detail

setMaxInactiveInterval

public void setMaxInactiveInterval(int seconds)
Sets the default time, in seconds, between client requests before the servlet container will invalidate a session. A negative time indicates the session should never timeout. The session-timeout attribute in web.xml will override this value. The default is 1800 (30 minutes).
Parameters:
seconds - The timeout in seconds

getMaxInactiveInterval

public int getMaxInactiveInterval()
Gets the default time, in seconds, between client requests before the servlet container will invalidate a session.
Returns:
The timeout in seconds. A negative value indicates the session should never timeout.

getCookieActive

public boolean getCookieActive()
Determines whether user sessions should be tracked using cookies.
Returns:
true if user sessions should be tracked using cookies

getSessionService

public Session getSessionService()
Returns a direct reference to the session service
Returns:
The session service


Copyright � 2002 Macromedia Corporation. All Rights Reserved.