org.apache.openejb.core.mdb
Class MdbContainer

java.lang.Object
  extended by org.apache.openejb.core.mdb.MdbContainer
All Implemented Interfaces:
Container, TransactionContainer, RpcContainer

public class MdbContainer
extends Object
implements RpcContainer, TransactionContainer


Constructor Summary
MdbContainer(Object containerID, TransactionManager transactionManager, SecurityService securityService, javax.resource.spi.ResourceAdapter resourceAdapter, Class messageListenerInterface, Class activationSpecClass, int instanceLimit, boolean txRecovery)
           
 
Method Summary
 void afterDelivery(Object instance)
           
 void beforeDelivery(CoreDeploymentInfo deployInfo, Object instance, Method method, XAResource xaResource)
           
 void deploy(DeploymentInfo info)
           
 DeploymentInfo[] deployments()
           
 void discardInstance(Object instance, ThreadContext context)
           
 Class getActivationSpecClass()
           
 Object getContainerID()
           
 ContainerType getContainerType()
           
 DeploymentInfo getDeploymentInfo(Object deploymentID)
           
 Class getMessageListenerInterface()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 Object invoke(Object deploymentId, Class callInterface, Method method, Object[] args, Object primKey)
           
 Object invoke(Object instance, Method method, Object... args)
           
 Object invoke(Object deployID, Method callMethod, Object[] args, Object primKey, Object securityIdentity)
          Deprecated. use invoke signature without 'securityIdentity' argument.
 void release(CoreDeploymentInfo deployInfo, Object instance)
           
 void undeploy(DeploymentInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdbContainer

public MdbContainer(Object containerID,
                    TransactionManager transactionManager,
                    SecurityService securityService,
                    javax.resource.spi.ResourceAdapter resourceAdapter,
                    Class messageListenerInterface,
                    Class activationSpecClass,
                    int instanceLimit,
                    boolean txRecovery)
Method Detail

deployments

public DeploymentInfo[] deployments()
Specified by:
deployments in interface Container

getDeploymentInfo

public DeploymentInfo getDeploymentInfo(Object deploymentID)
Specified by:
getDeploymentInfo in interface Container

getContainerType

public ContainerType getContainerType()
Specified by:
getContainerType in interface Container

getContainerID

public Object getContainerID()
Specified by:
getContainerID in interface Container

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()

getMessageListenerInterface

public Class getMessageListenerInterface()

getActivationSpecClass

public Class getActivationSpecClass()

deploy

public void deploy(DeploymentInfo info)
            throws OpenEJBException
Specified by:
deploy in interface Container
Throws:
OpenEJBException

undeploy

public void undeploy(DeploymentInfo info)
              throws OpenEJBException
Specified by:
undeploy in interface Container
Throws:
OpenEJBException

invoke

public Object invoke(Object deployID,
                     Method callMethod,
                     Object[] args,
                     Object primKey,
                     Object securityIdentity)
              throws OpenEJBException
Deprecated. use invoke signature without 'securityIdentity' argument.

Specified by:
invoke in interface RpcContainer
Throws:
OpenEJBException

invoke

public Object invoke(Object deploymentId,
                     Class callInterface,
                     Method method,
                     Object[] args,
                     Object primKey)
              throws OpenEJBException
Specified by:
invoke in interface RpcContainer
Throws:
OpenEJBException

beforeDelivery

public void beforeDelivery(CoreDeploymentInfo deployInfo,
                           Object instance,
                           Method method,
                           XAResource xaResource)
                    throws SystemException
Throws:
SystemException

invoke

public Object invoke(Object instance,
                     Method method,
                     Object... args)
              throws SystemException,
                     ApplicationException
Throws:
SystemException
ApplicationException

afterDelivery

public void afterDelivery(Object instance)
                   throws SystemException
Throws:
SystemException

release

public void release(CoreDeploymentInfo deployInfo,
                    Object instance)

discardInstance

public void discardInstance(Object instance,
                            ThreadContext context)
Specified by:
discardInstance in interface TransactionContainer


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.