|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsspi.workarea.WorkAreaAvailabilityHelper
public class WorkAreaAvailabilityHelper
This helper class can be used to determine if the WorkArea service is available. "Available" means that the user is executing within the boundaries of a valid container.
Constructor Summary | |
---|---|
WorkAreaAvailabilityHelper()
|
Method Summary | |
---|---|
static boolean |
isWithinContainerBoundary()
This method is used to determine if the caller is executing within the boundary of a container which is supported by the WorkArea service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkAreaAvailabilityHelper()
Method Detail |
---|
public static boolean isWithinContainerBoundary()
This method is used to determine if the caller is executing within the boundary of a container which is supported
by the WorkArea service. Currently a valid container is a client, ejb or web container (and w.r.t to WorkArea,
AsynchBeans POJO execution is considered to be within a "container" boundary). This info
is beneficial to a user because if they call UserWorkArea.begin
method, and the WorkArea service is not available, an exception will be thrown. To avoid an exception, a user can
first call this method
which simply returns a boolean indicating the availability of the WorkArea service. If false is returned (meaning
the user is not executing within the boundary of a valid container), the user knows they need to forgo calling
UserWorkArea.begin
or an exception will result.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |