org.openejb.mdb
Class MDBContainer

java.lang.Object
  extended byorg.openejb.mdb.MDBContainer
All Implemented Interfaces:
org.apache.geronimo.management.EJB, org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.management.J2EEManagedObject, org.apache.geronimo.management.MessageDrivenBean, javax.resource.spi.endpoint.MessageEndpointFactory

public class MDBContainer
extends Object
implements javax.resource.spi.endpoint.MessageEndpointFactory, org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.management.MessageDrivenBean

Version:
$Revision: 446103 $ $Date: 2006-03-14 22:00:57 +0100 (Tue, 14 Mar 2006) $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
MDBContainer(String containerId, String ejbName, String endpointInterfaceName, InterfaceMethodSignature[] signatures, boolean[] deliveryTransacted, MDBInstanceContextFactory contextFactory, MDBInterceptorBuilder interceptorBuilder, InstancePool instancePool, Map componentContext, org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction, org.apache.geronimo.connector.ActivationSpecWrapper activationSpecWrapper, org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager, org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator, ClassLoader classLoader, org.apache.geronimo.timer.ThreadPooledTimer timer, String objectName, org.apache.geronimo.kernel.Kernel kernel)
           
 
Method Summary
 javax.resource.spi.endpoint.MessageEndpoint createEndpoint(XAResource adapterXAResource)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 ClassLoader getClassLoader()
           
 String getContainerId()
           
 String getEJBName()
           
 EndpointFactory getEndpointFactory()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 Map getMethodIndexMap()
           
 String getObjectName()
           
 InterfaceMethodSignature[] getSignatures()
           
 javax.ejb.Timer getTimerById(Long id)
           
 org.apache.geronimo.transaction.context.TransactionContextManager getTransactionContextManager()
           
 org.apache.geronimo.core.service.InvocationResult invoke(org.apache.geronimo.core.service.Invocation invocation)
           
 boolean isDeliveryTransacted(int methodIndex)
           
 boolean isDeliveryTransacted(Method method)
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 
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

MDBContainer

public MDBContainer(String containerId,
                    String ejbName,
                    String endpointInterfaceName,
                    InterfaceMethodSignature[] signatures,
                    boolean[] deliveryTransacted,
                    MDBInstanceContextFactory contextFactory,
                    MDBInterceptorBuilder interceptorBuilder,
                    InstancePool instancePool,
                    Map componentContext,
                    org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction,
                    org.apache.geronimo.connector.ActivationSpecWrapper activationSpecWrapper,
                    org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
                    org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator,
                    ClassLoader classLoader,
                    org.apache.geronimo.timer.ThreadPooledTimer timer,
                    String objectName,
                    org.apache.geronimo.kernel.Kernel kernel)
             throws Exception
Method Detail

createEndpoint

public javax.resource.spi.endpoint.MessageEndpoint createEndpoint(XAResource adapterXAResource)
                                                           throws javax.resource.spi.UnavailableException
Specified by:
createEndpoint in interface javax.resource.spi.endpoint.MessageEndpointFactory
Throws:
javax.resource.spi.UnavailableException

isDeliveryTransacted

public boolean isDeliveryTransacted(Method method)
                             throws NoSuchMethodException
Specified by:
isDeliveryTransacted in interface javax.resource.spi.endpoint.MessageEndpointFactory
Throws:
NoSuchMethodException

isDeliveryTransacted

public boolean isDeliveryTransacted(int methodIndex)
                             throws NoSuchMethodException
Throws:
NoSuchMethodException

getTimerById

public javax.ejb.Timer getTimerById(Long id)

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws org.apache.geronimo.timer.PersistenceException
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.timer.PersistenceException

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

invoke

public org.apache.geronimo.core.service.InvocationResult invoke(org.apache.geronimo.core.service.Invocation invocation)
                                                         throws Throwable
Throws:
Throwable

getClassLoader

public ClassLoader getClassLoader()

getContainerId

public String getContainerId()

getEJBName

public String getEJBName()

getEndpointFactory

public EndpointFactory getEndpointFactory()

getSignatures

public InterfaceMethodSignature[] getSignatures()

getTransactionContextManager

public org.apache.geronimo.transaction.context.TransactionContextManager getTransactionContextManager()

getMethodIndexMap

public Map getMethodIndexMap()

getObjectName

public String getObjectName()
Specified by:
getObjectName in interface org.apache.geronimo.management.J2EEManagedObject

isStateManageable

public boolean isStateManageable()
Specified by:
isStateManageable in interface org.apache.geronimo.management.J2EEManagedObject

isStatisticsProvider

public boolean isStatisticsProvider()
Specified by:
isStatisticsProvider in interface org.apache.geronimo.management.J2EEManagedObject

isEventProvider

public boolean isEventProvider()
Specified by:
isEventProvider in interface org.apache.geronimo.management.J2EEManagedObject

getGBeanInfo

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


Copyright © 1999-2006 OpenEJB. All Rights Reserved.