org.objectweb.jonas.resource.ResourceService Interface Reference

Inherited by org.objectweb.jonas.resource.ResourceServiceImpl.

Inheritance diagram for org.objectweb.jonas.resource.ResourceService:

Inheritance graph
[legend]
List of all members.

Public Member Functions

String createResourceAdapter (Context ctx) throws Exception

Package Functions

String deployRar (String fileName) throws Exception
void deployRars (Context ctx) throws ResourceServiceException
String getRarsDirectory ()
Boolean isRarDeployed (String fileName)
boolean isRarDeployedByUnpackName (String unpackName)
void unDeployRar (String fileName) throws Exception
void unDeployRars (URL[] urls, URL earUrl)

Detailed Description

JCA resource service implmentation
Author:
Philippe Coq Contributor(s): JOnAS 2.4 Sebastien Chassande-Barrioz (sebastien.chassande@inrialpes.fr) JOnAS 3.0 Eric Hardesty (Eric.Hardesty@bull.com) JOnAS 4.0 Adriana Danes (JSR 77 + use of Jakarta Modeler Component : http://jakarta.apache.org/commons/modeler) Eric Hardesty (J2CA 1.5)

Definition at line 48 of file ResourceService.java.


Member Function Documentation

String org.objectweb.jonas.resource.ResourceService.createResourceAdapter Context  ctx  )  throws Exception
 

Create a Resource Adapter

Parameters:
ctx Context that defines the: 1) name of the resource adapter. 2) information to determine if the rar is in an ear
the configuration information for this resource adapter must be found in the xml files in the rar file being deployed
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Exceptions:
Exception if the create of the RAR object fails.

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

String org.objectweb.jonas.resource.ResourceService.deployRar String  fileName  )  throws Exception [package]
 

Deploy an RAR, used by management applications via J2EEServer managed object

Parameters:
fileName the fileName of the rar which must be be deployed.
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Exceptions:
Exception if the deployment of the RAR failed.

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

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

void org.objectweb.jonas.resource.ResourceService.deployRars Context  ctx  )  throws ResourceServiceException [package]
 

Deploy the given rars of an ear file with the specified parent classloader (ear classloader). (This method is only used for the ear applications).

Parameters:
ctx Context that defines the: This context contains the following parameters :
  • urls the list of the urls of the rars to deploy.
  • earRootURL the URL of the ear application file.
  • earClassLoader the ear classLoader of the j2ee app.
  • altDDs the optional URI of deployment descriptor.
Exceptions:
ResourceServiceException if an error occurs during the deployment.

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

String org.objectweb.jonas.resource.ResourceService.getRarsDirectory  )  [package]
 

Return the Rars directory.

Returns:
The Rars directory

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

Boolean org.objectweb.jonas.resource.ResourceService.isRarDeployed String  fileName  )  [package]
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the rar file.
Returns:
true if the rar is deployed, else false.

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

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

boolean org.objectweb.jonas.resource.ResourceService.isRarDeployedByUnpackName String  unpackName  )  [package]
 

Test if the specified unpack name is already deployed or not. This method is defined in the RarService interface.

Parameters:
unpackName the name of the rar file.
Returns:
true if the rar is deployed, else false.

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

void org.objectweb.jonas.resource.ResourceService.unDeployRar String  fileName  )  throws Exception [package]
 

Undeploy an RAR, used by management applications via J2EEServer managed object

Parameters:
fileName the fileName of the rar which must be be undeployed.
Exceptions:
Exception if the undeployment of the RAR failed.

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.

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

void org.objectweb.jonas.resource.ResourceService.unDeployRars URL[]  urls,
URL  earUrl
[package]
 

Undeploy the given rars of an ear file with the specified parent classloader (ear classloader). (This method is only used for the ear applications).

Parameters:
urls the list of the urls of the rars to deploy.
earUrl ear's URL

Implemented in org.objectweb.jonas.resource.ResourceServiceImpl.


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