|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is an extension of the standard SipApplicationSession
interface.
SipApplicationSession
,
WlssAction
Nested Class Summary | |
static class |
WlssSipApplicationSession.PersistenceType
Used by setPersist(
com.bea.wcp.sip.WlssSipApplicationSession.PersistenceType, boolean) . |
Method Summary | |
java.lang.Object |
doAction(WlssAction action)
This methods executes WlssTask in a transactional manner. |
byte |
getGeoSiteId()
The site identifier. |
void |
setPersist(WlssSipApplicationSession.PersistenceType type,
boolean value)
This method can be used to override the default call-state persistence characteristics. |
Methods inherited from interface javax.servlet.sip.SipApplicationSession |
encodeURI, getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getSessions, getSessions, getTimers, invalidate, removeAttribute, setAttribute, setExpires |
Method Detail |
public java.lang.Object doAction(WlssAction action) throws java.lang.Exception
Example usage:
SipApplicationSession appSession = ...; WlssSipApplicationSession wlssAppSession = (WlssSipApplicationSession) appSession; wlssAppSession.doAction(new WlssAction() { public Object run() throws Exception { // add your business logic here appSession.setAttribute("counter", latestCounterValue); sipSession.setAttribute("currentState", latestAppState); // The container will make sure that the run method will be invoked // the with appSession locked return null; } });
action
- WlssAction which is passed by the application
java.lang.Exception
- - propagates the Exception thrown by the run methodpublic byte getGeoSiteId()
public void setPersist(WlssSipApplicationSession.PersistenceType type, boolean value)
This method can be used to override the default call-state persistence characteristics.
type
- DATABASE
denotes that the state should be saved to database by the datatier to save RAM space.
GEO_REDUNDANCY
indicates that the state should be replicated to the remote site.value
- whether or not to enable the action.
|
Documentation is available at http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss31/ Copyright 2007 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |