org.objectweb.jonas.ear
Interface EarService

All Superinterfaces:
Service
All Known Implementing Classes:
EarServiceImpl

public interface EarService
extends Service

JOnAS EAR Service interface. This interface provides a description of an EAR service.

Author:
Ludovic Bert, Florent Benoit

Method Summary
 void deployEar(javax.naming.Context ctx)
          Deploy an EAR file with sending JAR file to the EJB container and WAR file to the WEB container.
 void unDeployEar(javax.naming.Context ctx)
          Undeploy an EAR by sending the request to the EJB container and to the WEB container.
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

deployEar

public void deployEar(javax.naming.Context ctx)
               throws EarServiceException
Deploy an EAR file with sending JAR file to the EJB container and WAR file to the WEB container.
Parameters:
ctx - the context which contains the configuration in order to deploy an EAR.
Throws:
EarServiceException - if the deployment of the EAR failed.

unDeployEar

public void unDeployEar(javax.naming.Context ctx)
                 throws EarServiceException
Undeploy an EAR by sending the request to the EJB container and to the WEB container.
Parameters:
ctx - the context which contains the configuration in order to undeploy an EAR.
Throws:
EarServiceException - if the undeployment of the EAR failed.