org.openejb.tomcat
Class TomcatJndiSupport
java.lang.Object
org.openejb.core.RpcContainerWrapper
org.openejb.tomcat.TomcatJndiSupport
- All Implemented Interfaces:
- Container, TransactionContainer, RpcContainer
public class TomcatJndiSupport
- extends RpcContainerWrapper
- Version:
- $Revision: 2106 $ $Date: 2005-08-26 14:04:51 -0700 (Fri, 26 Aug 2005) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contexts
public static Map contexts
TomcatJndiSupport
public TomcatJndiSupport(RpcContainer container)
throws OpenEJBException
- Throws:
OpenEJBException
init
public void init(Object containerId,
HashMap deployments,
Properties properties)
throws OpenEJBException
- Description copied from interface:
Container
- This method is used to initalized a new container with its name, deployments and properties.
this method is invoked by the assembler and will throw an exception if invoked after
the container is assembled.
- Specified by:
init in interface Container- Overrides:
init in class RpcContainerWrapper
- Throws:
OpenEJBException
deploy
public void deploy(Object deploymentID,
DeploymentInfo info)
throws OpenEJBException
- Description copied from interface:
Container
- Adds a bean to this container.
- Specified by:
deploy in interface Container- Overrides:
deploy in class RpcContainerWrapper
- Parameters:
deploymentID - the deployment id of the bean to deploy.info - the DeploymentInfo object associated with the bean.
- Throws:
OpenEJBException - Occurs when the container is not able to deploy the bean for some
reason.
invoke
public Object invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
throws OpenEJBException
- Description copied from interface:
RpcContainer
- Invokes a method on an instance of the specified bean deployment.
- Specified by:
invoke in interface RpcContainer- Overrides:
invoke in class RpcContainerWrapper
- Parameters:
deployID - the dployment id of the bean deploymentcallMethod - the method to be called on the bean instanceargs - the arguments to use when invoking the specified methodprimKey - the primary key class of the bean or null if the bean does not need a primary keysecurityIdentity - identity
- Returns:
- the result of invoking the specified method on the bean instance
- Throws:
OpenEJBException- See Also:
StatefulContainer.invoke,
StatelessContainer.invoke
bindContext
public void bindContext(Object name,
Context context)
bindThread
public void bindThread(Object name)
unbindThread
public void unbindThread(Object name)
Copyright © 1999-2010 OpenEJB. All Rights Reserved.