org.objectweb.jonas_ejb.container.JServiceEndpoint Class Reference

Collaboration diagram for org.objectweb.jonas_ejb.container.JServiceEndpoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JServiceEndpoint (JStatelessFactory sf) throws RemoteException
void setMessageContext (MessageContext msgctx)
MessageContext getMessageContext ()
void setSessionSwitch (JSessionSwitch bs)
RequestCtx preInvoke (int txa) throws RemoteException
void checkSecurity (EJBInvocation ejbInv)
void postInvoke (RequestCtx rctx) throws RemoteException
void init (Object arg0) throws ServiceException
void destroy ()

Protected Attributes

JSessionSwitch bs
JStatelessFactory bf

Static Protected Attributes

Logger logger = null

Detailed Description

Implementation of the Service Endpoint Interface. The lifeCycle of this object is managed by the JOnASEJBProvider. Although this object implements Remote, it is accessed locally today.
Author:
Guillaume Sauthier, Philippe Durieux

Definition at line 52 of file JServiceEndpoint.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JServiceEndpoint.JServiceEndpoint JStatelessFactory  sf  )  throws RemoteException
 

Exceptions:
java.rmi.RemoteException 

Definition at line 74 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.bf, and org.objectweb.jonas_ejb.container.JServiceEndpoint.logger.


Member Function Documentation

void org.objectweb.jonas_ejb.container.JServiceEndpoint.checkSecurity EJBInvocation  ejbInv  ) 
 

Check if the access to the bean is authorized

Parameters:
ejbInv object containing security signature of the method, args of method, etc

Definition at line 126 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.bf, org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), and org.objectweb.jonas_ejb.container.JServiceEndpoint.logger.

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JServiceEndpoint.destroy  ) 
 

remove the bean instance.

Definition at line 160 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.bf, org.objectweb.jonas_ejb.container.JServiceEndpoint.bs, org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.JSessionSwitch.getICtx(), org.objectweb.jonas_ejb.container.JServiceEndpoint.logger, org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JFactory.preInvoke(), org.objectweb.jonas_ejb.container.JSessionContext.setRemoved(), and org.objectweb.jonas_ejb.container.RequestCtx.sysExc.

Here is the call graph for this function:

MessageContext org.objectweb.jonas_ejb.container.JServiceEndpoint.getMessageContext  ) 
 

Get the messageContext

Parameters:
mc JAX-RPC MessageContext

Definition at line 97 of file JServiceEndpoint.java.

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

void org.objectweb.jonas_ejb.container.JServiceEndpoint.init Object  arg0  )  throws ServiceException
 

Nothing to do here.

Definition at line 153 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.logger.

void org.objectweb.jonas_ejb.container.JServiceEndpoint.postInvoke RequestCtx  rctx  )  throws RemoteException
 

postInvoke is called after any request.

Parameters:
rctx The RequestCtx that was returned at preInvoke()
Exceptions:
RemoteException postInvoke fail

Definition at line 136 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.bf, org.objectweb.jonas_ejb.container.JServiceEndpoint.bs, org.objectweb.jonas_ejb.container.JServiceEndpoint.logger, org.objectweb.jonas_ejb.container.JFactory.postInvokeRemote(), and org.objectweb.jonas_ejb.container.JSessionSwitch.releaseICtx().

Here is the call graph for this function:

RequestCtx org.objectweb.jonas_ejb.container.JServiceEndpoint.preInvoke int  txa  )  throws RemoteException
 

preInvoke is called before any request.

Parameters:
txa Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Exceptions:
RemoteException preInvoke fail

Definition at line 116 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.bf, org.objectweb.jonas_ejb.container.JServiceEndpoint.logger, and org.objectweb.jonas_ejb.container.JFactory.preInvokeRemote().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JServiceEndpoint.setMessageContext MessageContext  msgctx  ) 
 

Set the MessageContext in the StatelessContext

Parameters:
msgctx Axis MessageContext

Definition at line 89 of file JServiceEndpoint.java.

Referenced by org.objectweb.jonas.ws.axis.JOnASEJBProvider.makeNewServiceObject().

void org.objectweb.jonas_ejb.container.JServiceEndpoint.setSessionSwitch JSessionSwitch  bs  ) 
 

finish initialization

Parameters:
bs The Session Switch

Definition at line 105 of file JServiceEndpoint.java.

References org.objectweb.jonas_ejb.container.JServiceEndpoint.logger.

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


Member Data Documentation

JStatelessFactory org.objectweb.jonas_ejb.container.JServiceEndpoint.bf [protected]
 

bean factory

Definition at line 67 of file JServiceEndpoint.java.

Referenced by org.objectweb.jonas_ejb.container.JServiceEndpoint.checkSecurity(), org.objectweb.jonas_ejb.container.JServiceEndpoint.destroy(), org.objectweb.jonas_ejb.container.JServiceEndpoint.JServiceEndpoint(), org.objectweb.jonas_ejb.container.JServiceEndpoint.postInvoke(), and org.objectweb.jonas_ejb.container.JServiceEndpoint.preInvoke().

JSessionSwitch org.objectweb.jonas_ejb.container.JServiceEndpoint.bs [protected]
 

switch instance to use

Definition at line 62 of file JServiceEndpoint.java.

Referenced by org.objectweb.jonas_ejb.container.JServiceEndpoint.destroy(), and org.objectweb.jonas_ejb.container.JServiceEndpoint.postInvoke().

Logger org.objectweb.jonas_ejb.container.JServiceEndpoint.logger = null [static, protected]
 

Logger, used also in the generated part.

Definition at line 57 of file JServiceEndpoint.java.

Referenced by org.objectweb.jonas_ejb.container.JServiceEndpoint.checkSecurity(), org.objectweb.jonas_ejb.container.JServiceEndpoint.destroy(), org.objectweb.jonas_ejb.container.JStatelessSwitch.getMsgContext(), org.objectweb.jonas_ejb.container.JServiceEndpoint.init(), org.objectweb.jonas_ejb.container.JServiceEndpoint.JServiceEndpoint(), org.objectweb.jonas_ejb.container.JServiceEndpoint.postInvoke(), org.objectweb.jonas_ejb.container.JServiceEndpoint.preInvoke(), org.objectweb.jonas_ejb.container.JServiceEndpoint.setSessionSwitch(), and 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:34 2005 for JOnAS by  doxygen 1.3.9.1