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) $
|
Field Summary |
static java.util.Map |
contexts
|
|
Method Summary |
void |
bindContext(java.lang.Object name,
javax.naming.Context context)
|
void |
bindThread(java.lang.Object name)
|
void |
deploy(java.lang.Object deploymentID,
DeploymentInfo info)
Adds a bean to this container. |
void |
init(java.lang.Object containerId,
java.util.HashMap deployments,
java.util.Properties properties)
This method is used to initalized a new container with its name, deployments and properties. |
java.lang.Object |
invoke(java.lang.Object deployID,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey,
java.lang.Object securityIdentity)
Invokes a method on an instance of the specified bean deployment. |
void |
unbindThread(java.lang.Object name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contexts
public static java.util.Map contexts
TomcatJndiSupport
public TomcatJndiSupport(RpcContainer container)
throws OpenEJBException
- Throws:
OpenEJBException
init
public void init(java.lang.Object containerId,
java.util.HashMap deployments,
java.util.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(java.lang.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 java.lang.Object invoke(java.lang.Object deployID,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey,
java.lang.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(java.lang.Object name,
javax.naming.Context context)
bindThread
public void bindThread(java.lang.Object name)
unbindThread
public void unbindThread(java.lang.Object name)
Copyright © 1999-2013 OpenEJB. All Rights Reserved.