org.objectweb.jonas_ejb.container.JStatelessContext Class Reference

Inherits org.objectweb.jonas_ejb.container.JSessionContext.

Inheritance diagram for org.objectweb.jonas_ejb.container.JStatelessContext:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JStatelessContext:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JStatelessContext (JSessionFactory bf, SessionBean sb)
TimerService getTimerService () throws IllegalStateException
void setRemoved () throws RemoteException, RemoveException
MessageContext getMessageContext () throws IllegalStateException
void setConnectionList (List conlist)
Principal getCallerPrincipal () throws IllegalStateException
boolean isCallerInRole (String roleName) throws IllegalStateException
Timer createTimer (long arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException
Timer createTimer (long arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException
Timer createTimer (Date arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException
Timer createTimer (Date arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException
Collection getTimers () throws IllegalStateException, EJBException

Detailed Description

This class extends JSessionContext in case of Stateless Session Bean.
Author:
Philippe Durieux

Definition at line 50 of file JStatelessContext.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JStatelessContext.JStatelessContext JSessionFactory  bf,
SessionBean  sb
 

constructor

Parameters:
bf The Bean Factory
sb The Session Bean instance.

Definition at line 57 of file JStatelessContext.java.


Member Function Documentation

Timer org.objectweb.jonas_ejb.container.JStatelessContext.createTimer Date  arg0,
long  arg1,
Serializable  arg2
throws IllegalArgumentException, IllegalStateException, EJBException
 

See also:
javax.ejb.TimerService#createTimer(java.util.Date, long, java.io.Serializable)

Definition at line 179 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JStatelessContext.getTimerService().

Here is the call graph for this function:

Timer org.objectweb.jonas_ejb.container.JStatelessContext.createTimer Date  arg0,
Serializable  arg1
throws IllegalArgumentException, IllegalStateException, EJBException
 

See also:
javax.ejb.TimerService#createTimer(java.util.Date, java.io.Serializable)

Definition at line 168 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JStatelessContext.getTimerService().

Here is the call graph for this function:

Timer org.objectweb.jonas_ejb.container.JStatelessContext.createTimer long  arg0,
long  arg1,
Serializable  arg2
throws IllegalArgumentException, IllegalStateException, EJBException
 

See also:
javax.ejb.TimerService#createTimer(long, long, java.io.Serializable)

Definition at line 156 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JStatelessContext.getTimerService().

Here is the call graph for this function:

Timer org.objectweb.jonas_ejb.container.JStatelessContext.createTimer long  arg0,
Serializable  arg1
throws IllegalArgumentException, IllegalStateException, EJBException
 

See also:
javax.ejb.TimerService#createTimer(long, java.io.Serializable)

Definition at line 145 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JStatelessContext.getTimerService().

Here is the call graph for this function:

Principal org.objectweb.jonas_ejb.container.JStatelessContext.getCallerPrincipal  )  throws IllegalStateException
 

Obtain the java.security.Principal that identifies the caller. throws a java.lang.IllegalStateException if there is no security context available

Returns:
The Principal object that identifies the caller.
Exceptions:
IllegalStateException no security context exists

Reimplemented from org.objectweb.jonas_ejb.container.JContext.

Definition at line 120 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState().

Here is the call graph for this function:

MessageContext org.objectweb.jonas_ejb.container.JStatelessContext.getMessageContext  )  throws IllegalStateException [virtual]
 

Obtain a reference to the JAX-RPC MessageContext.

Returns:
The MessageContext for this web service invocation.
Exceptions:
java.lang.IllegalStateException - the instance is in a state that does not allow access to this method.

Implements org.objectweb.jonas_ejb.container.JSessionContext.

Definition at line 96 of file JStatelessContext.java.

Collection org.objectweb.jonas_ejb.container.JStatelessContext.getTimers  )  throws IllegalStateException, EJBException
 

See also:
javax.ejb.TimerService#getTimers()

Definition at line 190 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JStatelessContext.getTimerService().

Here is the call graph for this function:

TimerService org.objectweb.jonas_ejb.container.JStatelessContext.getTimerService  )  throws IllegalStateException [virtual]
 

Get access to the EJB Timer Service.

Returns:
the EJB Timer Service
Exceptions:
IllegalStateException Thrown if the instance is not allowed to use this method

Implements org.objectweb.jonas_ejb.container.JContext.

Definition at line 68 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JFactory.getTimerService().

Referenced by org.objectweb.jonas_ejb.container.JStatelessContext.createTimer(), and org.objectweb.jonas_ejb.container.JStatelessContext.getTimers().

Here is the call graph for this function:

boolean org.objectweb.jonas_ejb.container.JStatelessContext.isCallerInRole String  roleName  )  throws IllegalStateException
 

Test if the caller has a given role.

Parameters:
roleName The name of the security role. The role must be one of the security-role-ref that is defined in the deployment descriptor.
Returns:
True if the caller has the specified role.
Exceptions:
IllegalStateException Security service not started

Reimplemented from org.objectweb.jonas_ejb.container.JContext.

Definition at line 135 of file JStatelessContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JStatelessContext.setConnectionList List  conlist  )  [virtual]
 

Set the connection list for this instance.

Implements org.objectweb.jonas_ejb.container.JSessionContext.

Definition at line 110 of file JStatelessContext.java.

void org.objectweb.jonas_ejb.container.JStatelessContext.setRemoved  )  throws RemoteException, RemoveException [virtual]
 

set this instance as removed

Implements org.objectweb.jonas_ejb.container.JSessionContext.

Definition at line 84 of file JStatelessContext.java.

Referenced by org.objectweb.jonas_ejb.container.JStatelessSwitch.timeoutExpired().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:48 2005 for JOnAS by  doxygen 1.3.9.1