org.objectweb.jonas.resource
Interface ResourceService

All Superinterfaces:
Service
All Known Implementing Classes:
ResourceServiceImpl

public interface ResourceService
extends Service


Method Summary
 java.lang.String createResourceAdapter(javax.naming.Context ctx)
          Create a Resource Adapter
 java.lang.String deployRar(java.lang.String fileName)
          Deploy an RAR, used by management applications via J2EEServer managed object
 void deployRars(javax.naming.Context ctx)
          Deploy the given rars of an ear file with the specified parent classloader (ear classloader).
 void unDeployRar(java.lang.String fileName)
          Undeploy an RAR, used by management applications via J2EEServer managed object
 void unDeployRars(java.net.URL[] urls, java.net.URL earUrl)
          Undeploy the given rars of an ear file with the specified parent classloader (ear classloader).
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

createResourceAdapter

public java.lang.String createResourceAdapter(javax.naming.Context ctx)
                                       throws java.lang.Exception
Create a Resource Adapter

Throws:
java.lang.Exception

deployRar

public java.lang.String deployRar(java.lang.String fileName)
                           throws java.lang.Exception
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
Throws:
java.lang.Exception - if the deployment of the RAR failed.

deployRars

public void deployRars(javax.naming.Context ctx)
                throws ResourceServiceException
Deploy the given rars of an ear file with the specified parent classloader (ear classloader). (This method is only used for the ear applications).

Throws:
ResourceServiceException - if an error occurs during the deployment.

unDeployRar

public void unDeployRar(java.lang.String fileName)
                 throws java.lang.Exception
Undeploy an RAR, used by management applications via J2EEServer managed object

Parameters:
fileName - the fileName of the rar which must be be undeployed.
Throws:
java.lang.Exception - if the undeployment of the RAR failed.

unDeployRars

public void unDeployRars(java.net.URL[] urls,
                         java.net.URL earUrl)
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.