org.objectweb.jonas.container
Interface EJBService

All Superinterfaces:
Service
All Known Implementing Classes:
EJBServiceImpl

public interface EJBService
extends Service

EJB Service interface.


Method Summary
 Container createContainer(javax.naming.Context ctx)
          Create a JOnAS Container for all beans that are described in a .xml file or belong to .jar file.
 Container getContainer(java.lang.String fileName)
          Get the Container by its file name (.xml or .jar)
 Container[] listContainers()
          List of all JOnAS Containers
 void removeContainer(Container cont)
          Remove a JOnAS Container.
 void syncAllEntities(boolean passivate)
          Synchronized all entity bean containers
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

createContainer

public Container createContainer(javax.naming.Context ctx)
                          throws java.lang.Exception
Create a JOnAS Container for all beans that are described in a .xml file or belong to .jar file.
Parameters:
ctx - JNDI contect in which are found the container configuration.

getContainer

public Container getContainer(java.lang.String fileName)
Get the Container by its file name (.xml or .jar)

removeContainer

public void removeContainer(Container cont)
Remove a JOnAS Container.
Parameters:
cont - JOnAS container to remove.
Returns:
Container object

listContainers

public Container[] listContainers()
List of all JOnAS Containers
Returns:
an array of Container objects

syncAllEntities

public void syncAllEntities(boolean passivate)
Synchronized all entity bean containers
Parameters:
passivate - passivate instances after synchronization.