|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is an interface for Container plugins. Implementations of this interface are responsible for receiving remote invocations of EJB's and to forward these requests to the Container it is being used with. It is responsible for providing any EJBObject and EJBHome implementations (which may be statically or dynamically created). Before forwarding a call to the container it must call Thread.setContextClassLoader() with the classloader of the container. It must also handle any propagated transaction and security contexts properly. It may acquire the TransactionManager from JNDI.
Container
Method Summary | |
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 enum)
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. |
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. |
Methods inherited from interface org.jboss.ejb.ContainerPlugin |
setContainer |
Methods inherited from interface org.jboss.util.Service |
destroy, init, start, stop |
Method Detail |
public javax.ejb.EJBMetaData getEJBMetaData()
public javax.ejb.EJBHome getEJBHome()
public javax.ejb.EJBObject getStatelessSessionEJBObject() throws java.rmi.RemoteException
java.rmi.RemoteException
- thrown if the EJBObject could not be createdpublic javax.ejb.EJBObject getStatefulSessionEJBObject(java.lang.Object id) throws java.rmi.RemoteException
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
id
- the primary key of the entityjava.rmi.RemoteException
- thrown if the EJBObject could not be createdpublic java.util.Collection getEntityCollection(java.util.Collection enum) throws java.rmi.RemoteException
enum
- enumeration of primary keysjava.rmi.RemoteException
- thrown if the EJBObjects could not be created
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |