|
Oracle Corp. | ||||||||||
| 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). |
| Nested classes inherited from class javax.servlet.sip.SipApplicationSession |
SipApplicationSession.Protocol |
| 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, encodeURL, getApplicationName, getAttribute, getAttributeNames, getCreationTime, getExpirationTime, getId, getInvalidateWhenReady, getLastAccessedTime, getSession, getSessions, getSessions, getSipSession, getTimer, getTimers, invalidate, isReadyToInvalidate, isValid, removeAttribute, setAttribute, setExpires, setInvalidateWhenReady |
| 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://e-docs.bea.com/wlcp/wlss40/ Copyright 2008 Oracle Corp. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||