org.openejb.mejb
Class MEJB

java.lang.Object
  extended byorg.apache.geronimo.j2ee.mejb.MEJB
      extended byorg.openejb.mejb.MEJB
All Implemented Interfaces:
EJBContainer, javax.ejb.EJBObject, org.apache.geronimo.core.service.Interceptor, javax.management.j2ee.Management, Remote

public class MEJB
extends org.apache.geronimo.j2ee.mejb.MEJB
implements EJBContainer

Version:
$Rev: 446183 $ $Date: 2006-05-01 03:03:26 +0200 (Mon, 01 May 2006) $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
MEJB(org.apache.geronimo.gbean.AbstractName abstractName, org.apache.geronimo.system.jmx.MBeanServerReference mbeanServerReference)
           
MEJB(String containerId, javax.management.MBeanServer mbeanServer)
           
 
Method Summary
 ClassLoader getClassLoader()
           
 Object getContainerID()
          Unique id used for locating the container No assumptions are made about the type of this object other than it can hash uniquely
 Subject getDefaultSubject()
          Returns the subject to use if the client is not authenticated.
 javax.ejb.EJBHome getEjbHome()
          Return a proxy for the EJB's home interface.
 javax.ejb.EJBLocalHome getEjbLocalHome()
          Return a proxy for the EJB's local home interface.
 javax.ejb.EJBLocalObject getEjbLocalObject(Object primaryKey)
          Return a proxy for the EJB's local interface.
 String getEjbName()
          Return the name of the EJB
 javax.ejb.EJBObject getEjbObject(Object primaryKey)
          Return a proxy for the EJB's remote interface.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 javax.ejb.Handle getHandle()
           
 Serializable getHomeTxPolicyConfig()
          CORBA home transaction import policy configuration
 String[] getJndiNames()
           
 String[] getLocalJndiNames()
           
 int getMethodIndex(Method method)
           
 ProxyInfo getProxyInfo()
           
 Serializable getRemoteTxPolicyConfig()
          CORBA remote transaction import policy configuration
 InterfaceMethodSignature[] getSignatures()
           
 EJBContainer getUnmanagedReference()
           
 org.apache.geronimo.core.service.InvocationResult invoke(org.apache.geronimo.core.service.Invocation invocation)
           
 Object invoke(Method callMethod, Object[] args, Object primKey)
          Legacy invoke method for openejb 1.0 code
 
Methods inherited from class org.apache.geronimo.j2ee.mejb.MEJB
getAttribute, getAttributes, getDefaultDomain, getEJBHome, getListenerRegistry, getMBeanCount, getMBeanInfo, getObjectName, getPrimaryKey, invoke, isEventProvider, isIdentical, isRegistered, isStateManageable, isStatisticsProvider, queryNames, remove, setAttribute, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

MEJB

public MEJB(org.apache.geronimo.gbean.AbstractName abstractName,
            org.apache.geronimo.system.jmx.MBeanServerReference mbeanServerReference)

MEJB

public MEJB(String containerId,
            javax.management.MBeanServer mbeanServer)
Method Detail

getContainerID

public Object getContainerID()
Description copied from interface: EJBContainer
Unique id used for locating the container No assumptions are made about the type of this object other than it can hash uniquely

Specified by:
getContainerID in interface EJBContainer
Returns:
the id of the container

getEjbName

public String getEjbName()
Description copied from interface: EJBContainer
Return the name of the EJB

Specified by:
getEjbName in interface EJBContainer
Returns:
the name of the EJB

getEjbHome

public javax.ejb.EJBHome getEjbHome()
Description copied from interface: EJBContainer
Return a proxy for the EJB's home interface. This can be passed back to any client that wishes to access the EJB (e.g. in response to a call to EJBContext.getEJBHome() )

Specified by:
getEjbHome in interface EJBContainer
Returns:
the proxy for this EJB's home interface

getEjbObject

public javax.ejb.EJBObject getEjbObject(Object primaryKey)
Description copied from interface: EJBContainer
Return a proxy for the EJB's remote interface. This can be passed back to any client that wishes to access the EJB (e.g. in response to a call to SessionContext.getEJBObject() )

Specified by:
getEjbObject in interface EJBContainer
Returns:
the proxy for this EJB's home interface

getEjbLocalHome

public javax.ejb.EJBLocalHome getEjbLocalHome()
Description copied from interface: EJBContainer
Return a proxy for the EJB's local home interface. This can be passed back to any client that wishes to access the EJB (e.g. in response to a call to EJBContext.getEJBLocalHome() )

Specified by:
getEjbLocalHome in interface EJBContainer
Returns:
the proxy for this EJB's local home interface

getEjbLocalObject

public javax.ejb.EJBLocalObject getEjbLocalObject(Object primaryKey)
Description copied from interface: EJBContainer
Return a proxy for the EJB's local interface. This can be passed back to any client that wishes to access the EJB (e.g. in response to a call to SessionContext.getEJBLocalObject() )

Specified by:
getEjbLocalObject in interface EJBContainer
Returns:
the proxy for this EJB's local interface

getHandle

public javax.ejb.Handle getHandle()
Specified by:
getHandle in interface javax.ejb.EJBObject

invoke

public Object invoke(Method callMethod,
                     Object[] args,
                     Object primKey)
              throws Throwable
Description copied from interface: EJBContainer
Legacy invoke method for openejb 1.0 code

Specified by:
invoke in interface EJBContainer
Parameters:
callMethod - the method object for the method called on the interface
args - arguemnts to the method
primKey - primary key of the instance to invoke
Returns:
the return value
Throws:
Throwable - if a problem occurs while calling the bean

getJndiNames

public String[] getJndiNames()
Specified by:
getJndiNames in interface EJBContainer

getLocalJndiNames

public String[] getLocalJndiNames()
Specified by:
getLocalJndiNames in interface EJBContainer

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface EJBContainer

getUnmanagedReference

public EJBContainer getUnmanagedReference()
Specified by:
getUnmanagedReference in interface EJBContainer

getMethodIndex

public int getMethodIndex(Method method)
Specified by:
getMethodIndex in interface EJBContainer

getSignatures

public InterfaceMethodSignature[] getSignatures()
Specified by:
getSignatures in interface EJBContainer

getProxyInfo

public ProxyInfo getProxyInfo()
Specified by:
getProxyInfo in interface EJBContainer

getDefaultSubject

public Subject getDefaultSubject()
Description copied from interface: EJBContainer
Returns the subject to use if the client is not authenticated.

This subject must have been registered at container startup, to properly work with the container's interceptors.

Specified by:
getDefaultSubject in interface EJBContainer
Returns:
the default subject
See Also:
ContextManager.registerSubject(javax.security.auth.Subject)

getHomeTxPolicyConfig

public Serializable getHomeTxPolicyConfig()
Description copied from interface: EJBContainer
CORBA home transaction import policy configuration

Specified by:
getHomeTxPolicyConfig in interface EJBContainer
Returns:

getRemoteTxPolicyConfig

public Serializable getRemoteTxPolicyConfig()
Description copied from interface: EJBContainer
CORBA remote transaction import policy configuration

Specified by:
getRemoteTxPolicyConfig in interface EJBContainer
Returns:

invoke

public org.apache.geronimo.core.service.InvocationResult invoke(org.apache.geronimo.core.service.Invocation invocation)
                                                         throws Throwable
Specified by:
invoke in interface org.apache.geronimo.core.service.Interceptor
Throws:
Throwable

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 1999-2006 OpenEJB. All Rights Reserved.