|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
| Field Summary | |
protected static int |
ANONYMOUS_PORT
|
protected java.util.Map |
beanMethodInvokerMap
|
protected ContainerInvoker |
ciDelegate
|
protected java.rmi.server.RMIClientSocketFactory |
clientSocketFactory
An optional custom client socket factory |
protected java.lang.String |
clientSocketFactoryName
The class name of the optional custom client socket factory |
protected Container |
container
|
protected EJBMetaDataImpl |
ejbMetaData
|
protected javax.ejb.EJBHome |
home
|
protected java.util.Map |
homeMethodInvokerMap
|
protected ContainerInvokerContainer |
invokerContainer
|
protected boolean |
jdk122
|
protected java.lang.String |
jndiName
|
protected boolean |
optimize
|
protected int |
rmiPort
The port the container will be exported on |
protected java.lang.String |
serverAddress
The address to bind the rmi port on |
protected java.rmi.server.RMIServerSocketFactory |
serverSocketFactory
An optional custom server socket factory |
protected java.lang.String |
serverSocketFactoryName
The class name of the optional custom server socket factory |
protected SecurityDomain |
sslDomain
The SecurityDomain instance for the ssl-domain setting |
protected javax.ejb.EJBObject |
statelessObject
|
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface org.jboss.ejb.plugins.jrmp.interfaces.ContainerRemote |
STARTUP |
| Constructor Summary | |
JRMPContainerInvoker()
|
|
| Method Summary | |
void |
destroy()
|
javax.ejb.EJBHome |
getEJBHome()
This method is called whenever the EJBHome implementation for this container is needed. |
javax.ejb.EJBMetaData |
getEJBMetaData()
This method is called whenever the metadata for this container is needed. |
java.util.Collection |
getEntityCollection(java.util.Collection ids)
This method is called whenever a collection of EJBObjects for a collection of primary keys is needed. |
javax.ejb.EJBObject |
getEntityEJBObject(java.lang.Object id)
This method is called whenever an EJBObject implementation for an entitybean is needed. |
java.lang.String |
getJndiName()
|
javax.ejb.EJBObject |
getStatefulSessionEJBObject(java.lang.Object id)
This method is called whenever an EJBObject implementation for a stateful session bean is needed. |
javax.ejb.EJBObject |
getStatelessSessionEJBObject()
This method is called whenever an EJBObject implementation for a stateless session bean is needed. |
void |
importXml(org.w3c.dom.Element element)
|
void |
init()
|
java.rmi.MarshalledObject |
invoke(java.rmi.MarshalledObject mimo)
Invoke a Remote interface method. |
java.lang.Object |
invoke(java.lang.Object id,
java.lang.reflect.Method m,
java.lang.Object[] args,
javax.transaction.Transaction tx,
java.security.Principal identity,
java.lang.Object credential)
Invoke a Remote interface method. |
java.rmi.MarshalledObject |
invokeHome(java.rmi.MarshalledObject mimo)
Invoke a Home interface method. |
java.lang.Object |
invokeHome(java.lang.reflect.Method m,
java.lang.Object[] args,
javax.transaction.Transaction tx,
java.security.Principal identity,
java.lang.Object credential)
Invoke a Home interface method. |
boolean |
isOptimized()
|
protected void |
rebind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object val)
|
void |
setContainer(Container con)
This callback is set by the container so that the plugin may access it |
void |
setOptimized(boolean optimize)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final int ANONYMOUS_PORT
protected boolean optimize
protected int rmiPort
protected java.rmi.server.RMIClientSocketFactory clientSocketFactory
protected java.rmi.server.RMIServerSocketFactory serverSocketFactory
protected java.lang.String clientSocketFactoryName
protected java.lang.String serverSocketFactoryName
protected SecurityDomain sslDomain
protected java.lang.String serverAddress
protected boolean jdk122
protected Container container
protected ContainerInvokerContainer invokerContainer
protected java.lang.String jndiName
protected EJBMetaDataImpl ejbMetaData
protected javax.ejb.EJBHome home
protected javax.ejb.EJBObject statelessObject
protected java.util.Map beanMethodInvokerMap
protected java.util.Map homeMethodInvokerMap
protected ContainerInvoker ciDelegate
| Constructor Detail |
public JRMPContainerInvoker()
| Method Detail |
public void setOptimized(boolean optimize)
public boolean isOptimized()
public java.lang.String getJndiName()
public void setContainer(Container con)
ContainerPluginsetContainer in interface ContainerPluginorg.jboss.ejb.ContainerPlugincon - the container using this plugin
public void init()
throws java.lang.Exception
init in interface Service
public void start()
throws java.lang.Exception
start in interface Servicepublic void stop()
stop in interface Servicepublic void destroy()
destroy in interface Servicepublic javax.ejb.EJBMetaData getEJBMetaData()
ContainerInvokergetEJBMetaData in interface ContainerInvokerorg.jboss.ejb.ContainerInvokerpublic javax.ejb.EJBHome getEJBHome()
ContainerInvokergetEJBHome in interface ContainerInvokerorg.jboss.ejb.ContainerInvoker
public javax.ejb.EJBObject getStatelessSessionEJBObject()
throws java.rmi.RemoteException
ContainerInvokergetStatelessSessionEJBObject in interface ContainerInvokerorg.jboss.ejb.ContainerInvokerjava.rmi.RemoteException - thrown if the EJBObject could not be created
public javax.ejb.EJBObject getStatefulSessionEJBObject(java.lang.Object id)
throws java.rmi.RemoteException
ContainerInvokergetStatefulSessionEJBObject in interface ContainerInvokerorg.jboss.ejb.ContainerInvokerid - the id of the sessionjava.rmi.RemoteException - thrown if the EJBObject could not be created
public javax.ejb.EJBObject getEntityEJBObject(java.lang.Object id)
throws java.rmi.RemoteException
ContainerInvokergetEntityEJBObject in interface ContainerInvokerorg.jboss.ejb.ContainerInvokerid - the primary key of the entityjava.rmi.RemoteException - thrown if the EJBObject could not be created
public java.util.Collection getEntityCollection(java.util.Collection ids)
throws java.rmi.RemoteException
ContainerInvokergetEntityCollection in interface ContainerInvokerorg.jboss.ejb.ContainerInvokerenum - enumeration of primary keysjava.rmi.RemoteException - thrown if the EJBObjects could not be created
public java.rmi.MarshalledObject invokeHome(java.rmi.MarshalledObject mimo)
throws java.lang.Exception
invokeHome in interface ContainerRemoteorg.jboss.ejb.plugins.jrmp.interfaces.ContainerRemotemi - The marshalled object representing the method to
invoke.java.lang.Exception - Failed to invoke method.
public java.rmi.MarshalledObject invoke(java.rmi.MarshalledObject mimo)
throws java.lang.Exception
invoke in interface ContainerRemoteorg.jboss.ejb.plugins.jrmp.interfaces.ContainerRemotemi - The marshalled object representing the method to
invoke.java.lang.Exception - Failed to invoke method.
public java.lang.Object invokeHome(java.lang.reflect.Method m,
java.lang.Object[] args,
javax.transaction.Transaction tx,
java.security.Principal identity,
java.lang.Object credential)
throws java.lang.Exception
invokeHome in interface ContainerRemoteorg.jboss.ejb.plugins.jrmp.interfaces.ContainerRemotem - The method to invoke.args - The arguments to the method.tx - The transaction to use for the invocation.idendity - The principal to use for the invocation.credential - The credentials to use for the invocation.java.lang.Exception - Failed to invoke method.
public java.lang.Object invoke(java.lang.Object id,
java.lang.reflect.Method m,
java.lang.Object[] args,
javax.transaction.Transaction tx,
java.security.Principal identity,
java.lang.Object credential)
throws java.lang.Exception
invoke in interface ContainerRemoteorg.jboss.ejb.plugins.jrmp.interfaces.ContainerRemoteid - The identity of the object to invoke.m - The method to invoke.args - The arguments to the method.tx - The transaction to use for the invocation.idendity - The principal to use for the invocation.credential - The credentials to use for the invocation.java.lang.Exception - Failed to invoke method.
public void importXml(org.w3c.dom.Element element)
throws DeploymentException
importXml in interface XmlLoadable
protected void rebind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object val)
throws javax.naming.NamingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||