|
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. It has been introduced to provide a mechanism to control
concurrency across the entire engine tier cluster while the application
is interacting with the SipApplicationSession. This method is intended
to be used by non-SIP scoped servlets (e.g. HTTP servlets) in converged
applications. When this API is used by the applications, the container
guarentees that the business logic contained within the WlssAction will
be executed with a lock on the SipApplicationSession instance. If used
within the SIP scope (in call) this method will be a no-op, since the
container already guarentees concurrency control during the execution of
the service method for SIP servlets.
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; } });
SipApplicationSession
,
WlssAction
Method Summary | |
java.lang.Object |
doAction(WlssAction action)
This methods executes WlssTask in a transactional manner. |
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
action
- WlssAction which is passed by the application
java.lang.Exception
- - propagates the Exception thrown by the run method
|
Documentation is available at http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss22/ Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |