|
|||||||||
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)
ContainerPlugin
setContainer
in interface ContainerPlugin
org.jboss.ejb.ContainerPlugin
con
- the container using this pluginpublic void init() throws java.lang.Exception
init
in interface Service
public void start() throws java.lang.Exception
start
in interface Service
public void stop()
stop
in interface Service
public void destroy()
destroy
in interface Service
public javax.ejb.EJBMetaData getEJBMetaData()
ContainerInvoker
getEJBMetaData
in interface ContainerInvoker
org.jboss.ejb.ContainerInvoker
public javax.ejb.EJBHome getEJBHome()
ContainerInvoker
getEJBHome
in interface ContainerInvoker
org.jboss.ejb.ContainerInvoker
public javax.ejb.EJBObject getStatelessSessionEJBObject() throws java.rmi.RemoteException
ContainerInvoker
getStatelessSessionEJBObject
in interface ContainerInvoker
org.jboss.ejb.ContainerInvoker
java.rmi.RemoteException
- thrown if the EJBObject could not be createdpublic javax.ejb.EJBObject getStatefulSessionEJBObject(java.lang.Object id) throws java.rmi.RemoteException
ContainerInvoker
getStatefulSessionEJBObject
in interface ContainerInvoker
org.jboss.ejb.ContainerInvoker
id
- the id of the sessionjava.rmi.RemoteException
- thrown if the EJBObject could not be createdpublic javax.ejb.EJBObject getEntityEJBObject(java.lang.Object id) throws java.rmi.RemoteException
ContainerInvoker
getEntityEJBObject
in interface ContainerInvoker
org.jboss.ejb.ContainerInvoker
id
- the primary key of the entityjava.rmi.RemoteException
- thrown if the EJBObject could not be createdpublic java.util.Collection getEntityCollection(java.util.Collection ids) throws java.rmi.RemoteException
ContainerInvoker
getEntityCollection
in interface ContainerInvoker
org.jboss.ejb.ContainerInvoker
enum
- enumeration of primary keysjava.rmi.RemoteException
- thrown if the EJBObjects could not be createdpublic java.rmi.MarshalledObject invokeHome(java.rmi.MarshalledObject mimo) throws java.lang.Exception
invokeHome
in interface ContainerRemote
org.jboss.ejb.plugins.jrmp.interfaces.ContainerRemote
mi
- 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 ContainerRemote
org.jboss.ejb.plugins.jrmp.interfaces.ContainerRemote
mi
- 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 ContainerRemote
org.jboss.ejb.plugins.jrmp.interfaces.ContainerRemote
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 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 ContainerRemote
org.jboss.ejb.plugins.jrmp.interfaces.ContainerRemote
id
- 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 |