org.jboss.proxy.ejb
Class EjbObjectCorbaServant

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended byorg.jboss.invocation.iiop.ServantWithMBeanServer (src) 
          extended byorg.jboss.proxy.ejb.EjbObjectCorbaServant
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, LocalIIOPInvoker (src)

public class EjbObjectCorbaServant
extends ServantWithMBeanServer (src)
implements org.omg.CORBA.portable.InvokeHandler, LocalIIOPInvoker (src)

CORBA servant class for the EJBObjects of a given bean. An instance of this class "implements" the bean's set of EJBObject instances by forwarding to the bean container all IIOP invocations on any of the bean's EJBObjects. Such invocations are routed through the JBoss MBean server, which delivers them to the target container.


Constructor Summary
EjbObjectCorbaServant(ObjectName (src)  containerName, java.lang.ClassLoader containerClassLoader, org.omg.PortableServer.Current poaCurrent, java.util.Map methodInvokerMap, java.lang.String[] repositoryIds, InterfaceDef interfaceDef, Logger (src)  logger)
          Constructs an EjbObjectCorbaServant>.
 
Method Summary
 java.lang.String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
          Returns an array with the CORBA repository ids of the RMI-IDL interfaces implemented by this servant's EJBObjects.
 org.omg.CORBA.Object _get_interface_def()
          Returns an IR object describing the bean's remote interface.
 org.omg.CORBA.portable.OutputStream _invoke(java.lang.String opName, org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler handler)
          Receives IIOP requests to this servant's EJBObjects and forwards them to the bean container, through the JBoss MBean server.
 java.lang.Object invoke(java.lang.String opName, java.lang.Object[] arguments, Transaction (src)  tx, java.security.Principal identity, java.lang.Object credential)
          Receives intra-VM invocations on this servant's EJBObjects and forwards them to the bean container, through the JBoss MBean server.
 void setMBeanServer(MBeanServer (src)  mbeanServer)
          Sets this servant's MBeanServer.
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbObjectCorbaServant

public EjbObjectCorbaServant(ObjectName (src)  containerName,
                             java.lang.ClassLoader containerClassLoader,
                             org.omg.PortableServer.Current poaCurrent,
                             java.util.Map methodInvokerMap,
                             java.lang.String[] repositoryIds,
                             InterfaceDef interfaceDef,
                             Logger (src)  logger)
Constructs an EjbObjectCorbaServant>.

Method Detail

setMBeanServer

public void setMBeanServer(MBeanServer (src)  mbeanServer)
Sets this servant's MBeanServer.

Specified by:
setMBeanServer in class ServantWithMBeanServer (src)

_get_interface_def

public org.omg.CORBA.Object _get_interface_def()
Returns an IR object describing the bean's remote interface.


_all_interfaces

public java.lang.String[] _all_interfaces(org.omg.PortableServer.POA poa,
                                          byte[] objectId)
Returns an array with the CORBA repository ids of the RMI-IDL interfaces implemented by this servant's EJBObjects.


_invoke

public org.omg.CORBA.portable.OutputStream _invoke(java.lang.String opName,
                                                   org.omg.CORBA.portable.InputStream in,
                                                   org.omg.CORBA.portable.ResponseHandler handler)
Receives IIOP requests to this servant's EJBObjects and forwards them to the bean container, through the JBoss MBean server.

Specified by:
_invoke in interface org.omg.CORBA.portable.InvokeHandler

invoke

public java.lang.Object invoke(java.lang.String opName,
                               java.lang.Object[] arguments,
                               Transaction (src)  tx,
                               java.security.Principal identity,
                               java.lang.Object credential)
                        throws java.lang.Exception
Receives intra-VM invocations on this servant's EJBObjects and forwards them to the bean container, through the JBoss MBean server.

Specified by:
invoke in interface LocalIIOPInvoker (src)
Throws:
java.lang.Exception