org.objectweb.jonas.container.EJBService Interface Reference

Inherited by org.objectweb.jonas.container.EJBServiceImpl.

Inheritance diagram for org.objectweb.jonas.container.EJBService:

Inheritance graph
[legend]
List of all members.

Public Member Functions

String createContainer (Context ctx) throws Exception
Boolean isJarDeployed (String fileName)
Container getContainer (String fileName)
void removeContainer (Container cont)
Container[] listContainers ()
void syncAllEntities (boolean passivate)
void deployJars (Context ctx) throws ServiceException
void unDeployJars (URL[] urls)
void removeCache (ClassLoader earClassLoader)
String getEjbjarsDirectory ()

Package Functions

boolean isJarDeployedByWorkName (String workFileName)

Detailed Description

EJB Service interface.

Definition at line 42 of file EJBService.java.


Member Function Documentation

String org.objectweb.jonas.container.EJBService.createContainer Context  ctx  )  throws Exception
 

Create a JOnAS Container for all the beans that are described in a .xml file, or belong to .jar file.

Parameters:
ctx JNDI context in which is found the container configuration.
Returns:
The ObjectName of the MBean associated to the container (i.e. to the deployed module)

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

Referenced by org.objectweb.jonas.server.J2EEServer.deployJar().

void org.objectweb.jonas.container.EJBService.deployJars Context  ctx  )  throws ServiceException
 

Deploy the given ejb-jars of an ear file with the specified parent classloader (ear classloader). (This method is only used for the ear applications, not for the ejb-jar applications).

Parameters:
ctx the context containing the configuration to deploy the ejbjars.
This context contains the following parameters :
  • earRootUrl the root of the ear application.
  • earClassLoader the ear classLoader of the ear application.
  • ejbClassLoader the ejb classLoader for the ejbjars.
  • jarURLs the list of the urls of the ejb-jars to deploy.
  • roleNames the role names of the security-role.
Returns:
ClassLoader the ejbClassLoader created.
Exceptions:
ServiceException if an error occurs during the deployment.

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

Container org.objectweb.jonas.container.EJBService.getContainer String  fileName  ) 
 

Get the Container by its file name (.xml or .jar)

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

String org.objectweb.jonas.container.EJBService.getEjbjarsDirectory  ) 
 

Return the Ejbjars directory.

Returns:
The Ejbjars directory

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

Boolean org.objectweb.jonas.container.EJBService.isJarDeployed String  fileName  ) 
 

Test if the specified file is already deployed (if a container is created for this jar).

Parameters:
fileName the name of the jar file
Returns:
true if the jar was deployed, false otherwise

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

Referenced by org.objectweb.jonas.server.J2EEServer.isJarDeployed().

boolean org.objectweb.jonas.container.EJBService.isJarDeployedByWorkName String  workFileName  )  [package]
 

Test if the specified jar identified with its work name is already deployed (if a container is created for this jar).

Parameters:
workFileName the internal name of the jar file (working copy)
Returns:
true if the jar was deployed, false otherwise

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

Referenced by org.objectweb.jonas_lib.deployment.work.JarCleanTask.isDeployLogEntry().

Container [] org.objectweb.jonas.container.EJBService.listContainers  ) 
 

List of all JOnAS Containers

Returns:
an array of Container objects

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

void org.objectweb.jonas.container.EJBService.removeCache ClassLoader  earClassLoader  ) 
 

Make a cleanup of the cache of deployment descriptor. This method must be invoked after the ear deployment by the EAR service. the deployment of an ear by .

Parameters:
earClassLoader the ClassLoader of the ear application to remove from the cache.

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

void org.objectweb.jonas.container.EJBService.removeContainer Container  cont  ) 
 

Remove a JOnAS Container.

Parameters:
cont JOnAS container to remove.

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

Referenced by org.objectweb.jonas.server.J2EEServer.unDeployJar().

void org.objectweb.jonas.container.EJBService.syncAllEntities boolean  passivate  ) 
 

Synchronized all entity bean containers

Parameters:
passivate passivate instances after synchronization.

Implemented in org.objectweb.jonas.container.EJBServiceImpl.

void org.objectweb.jonas.container.EJBService.unDeployJars URL[]  urls  ) 
 

Undeploy the given ejb-jars of an ear file with the specified parent classloader (ear classloader). (This method is only used for the ear applications, not for the ejb-jar applications).

Parameters:
urls the list of the urls of the ejb-jars to deploy.

Implemented in org.objectweb.jonas.container.EJBServiceImpl.


The documentation for this interface was generated from the following file:
Generated on Tue Feb 15 15:06:27 2005 for JOnAS by  doxygen 1.3.9.1