站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 iiop API Documentation 英文版文档

EjbHomeCorbaServant (JBoss IIOP Plugin API) - JBoss 3.2.7 iiop API Documentation 英文版文档


org.jboss.proxy.ejb
Class EjbHomeCorbaServant

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended byorg.jboss.invocation.iiop.ServantWithMBeanServer
          extended byorg.jboss.proxy.ejb.EjbHomeCorbaServant
All Implemented Interfaces:
InvokeHandler, LocalIIOPInvoker

public class EjbHomeCorbaServant
extends ServantWithMBeanServer
implements InvokeHandler, LocalIIOPInvoker

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.

Version:
$Revision: 1.4.2.2 $
Author:
Francisco Reverbel

Constructor Summary
EjbHomeCorbaServant(javax.management.ObjectName containerName, ClassLoader containerClassLoader, Map methodInvokerMap, String[] repositoryIds, InterfaceDef interfaceDef, org.jboss.logging.Logger logger)
          Constructs an EjbHomeCorbaServant>.
 
Method Summary
 String[] _all_interfaces(POA poa, byte[] objectId)
          Returns an array with the CORBA repository ids of the RMI-IDL interfaces implemented by the container's EJBHome.
 Object _get_interface_def()
          Returns an IR object describing the bean's home interface.
 OutputStream _invoke(String opName, InputStream in, ResponseHandler handler)
          Receives IIOP requests to an EJBHome and forwards them to its container, through the JBoss MBean server.
 Object invoke(String opName, Object[] arguments, Transaction tx, Principal identity, Object credential)
          Receives intra-VM requests to an EJBHome and forwards them to its container (through the JBoss MBean server).
 void setHomeHandle(javax.ejb.HomeHandle homeHandle)
           
 void setMBeanServer(javax.management.MBeanServer 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(javax.management.ObjectName containerName,
                           ClassLoader containerClassLoader,
                           Map methodInvokerMap,
                           String[] repositoryIds,
                           InterfaceDef interfaceDef,
                           org.jboss.logging.Logger logger)
Constructs an EjbHomeCorbaServant>.

Method Detail

setHomeHandle

public void setHomeHandle(javax.ejb.HomeHandle homeHandle)

setMBeanServer

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

Specified by:
setMBeanServer in class ServantWithMBeanServer

_get_interface_def

public Object _get_interface_def()
Returns an IR object describing the bean's home interface.


_all_interfaces

public String[] _all_interfaces(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 OutputStream _invoke(String opName,
                            InputStream in,
                            ResponseHandler handler)
Receives IIOP requests to an EJBHome and forwards them to its container, through the JBoss MBean server.

Specified by:
_invoke in interface InvokeHandler

invoke

public Object invoke(String opName,
                     Object[] arguments,
                     Transaction tx,
                     Principal identity,
                     Object credential)
              throws 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
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.