org.jboss.proxy.ejb
Class EjbHomeCorbaServant

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

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

CORBA servant class for an EJBHome. An instance of this class "implements" a single EJBHome by forwarding to the bean container all IIOP invocations on the bean home. Such invocations are routed through the JBoss MBean server, which delivers them to the target container.


Constructor Summary
EjbHomeCorbaServant(ObjectName (src)  containerName, java.lang.ClassLoader containerClassLoader, java.util.Map methodInvokerMap, java.lang.String[] repositoryIds, InterfaceDef interfaceDef, Logger (src)  logger)
          Constructs an EjbHomeCorbaServant>.
 
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 the container's EJBHome.
 org.omg.CORBA.Object _get_interface_def()
          Returns an IR object describing the bean's home 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 an EJBHome and forwards them to its 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 requests to an EJBHome and forwards them to its container (through the JBoss MBean server).
 void setHomeHandle(HomeHandle (src)  homeHandle)
           
 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

EjbHomeCorbaServant

public EjbHomeCorbaServant(ObjectName (src)  containerName,
                           java.lang.ClassLoader containerClassLoader,
                           java.util.Map methodInvokerMap,
                           java.lang.String[] repositoryIds,
                           InterfaceDef interfaceDef,
                           Logger (src)  logger)
Constructs an EjbHomeCorbaServant>.

Method Detail

setHomeHandle

public void setHomeHandle(HomeHandle (src)  homeHandle)

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 home 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 the container's EJBHome.


_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 an EJBHome and forwards them to its 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 requests to an EJBHome and forwards them to its container (through the JBoss MBean server).

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