org.objectweb.jonas.resource
Interface ResourceService

All Superinterfaces:
Service
All Known Implementing Classes:
ResourceServiceImpl

public interface ResourceService
extends Service


Method Summary
 void createResourceAdapter(javax.naming.Context ctx)
          Create a Resource Adapter
 void deployRars(javax.naming.Context ctx)
          Deploy the given rars of an ear file with the specified parent classloader (ear classloader).
 void unDeployRars(java.net.URL[] urls)
          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 void createResourceAdapter(javax.naming.Context ctx)
                           throws java.lang.Exception
Create a Resource Adapter

Throws:
java.lang.Exception

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.

unDeployRars

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