org.objectweb.jonas_ejb.container
Class JServiceEndpoint

java.lang.Object
  extended byjavax.rmi.PortableRemoteObject
      extended byorg.objectweb.jonas_ejb.container.JServiceEndpoint
All Implemented Interfaces:
java.rmi.Remote

public class JServiceEndpoint
extends javax.rmi.PortableRemoteObject
implements java.rmi.Remote

Author:
Guillaume Sauthier

Field Summary
protected  JStatelessFactory bf
          bean factory
protected  JSessionSwitch bs
          switch instance to use
protected  SessionStatelessDesc dd
          deployment descriptor
protected  boolean unregistered
          registered flag
 
Constructor Summary
JServiceEndpoint(SessionStatelessDesc sd, JStatelessFactory sf)
           
 
Method Summary
 void _create()
          create method
 void checkSecurity(EJBInvocation ejbInv)
          Check if the access to the bean is authorized
 void postInvoke(RequestCtx rctx)
          postInvoke is called after any request.
 RequestCtx preInvoke(int txa)
          preInvoke is called before any request.
protected  void register()
          register this bean to JNDI (rebind)
protected  void unregister()
          unregister this bean in JNDI (unbind)
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bs

protected JSessionSwitch bs
switch instance to use


dd

protected SessionStatelessDesc dd
deployment descriptor


bf

protected JStatelessFactory bf
bean factory


unregistered

protected boolean unregistered
registered flag

Constructor Detail

JServiceEndpoint

public JServiceEndpoint(SessionStatelessDesc sd,
                        JStatelessFactory sf)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

register

protected void register()
                 throws javax.naming.NamingException
register this bean to JNDI (rebind)

Throws:
javax.naming.NamingException

unregister

protected void unregister()
                   throws javax.naming.NamingException
unregister this bean in JNDI (unbind)

Throws:
javax.naming.NamingException

preInvoke

public RequestCtx preInvoke(int txa)
                     throws java.rmi.RemoteException
preInvoke is called before any request.

Parameters:
txa - Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Throws:
java.rmi.RemoteException - preInvoke fail

checkSecurity

public void 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

postInvoke

public void postInvoke(RequestCtx rctx)
                throws java.rmi.RemoteException
postInvoke is called after any request.

Parameters:
rctx - The RequestCtx that was returned at preInvoke()
Throws:
java.rmi.RemoteException - postInvoke fail

_create

public void _create()
             throws java.rmi.RemoteException
create method

Throws:
java.rmi.RemoteException