This abstract class provides an implementation for a dynamic
JWebContainerService service.
author: Florent Benoit author: Ludovic Bert (J2EE 1.3) author: Nicolas Van Caneghem (exploded ear) author: Michel-Ange Anton (contributor)
Deploy the given wars of an ear file with the specified parent
classloader (ejb classloader or ear classloader). (This method is only
used for the ear applications, not for the web applications).
Parameters: ctx - the context containing the configuration to deploy the wars. This context contains the following parameters : - urlsthe list of the urls of the wars to deploy. - earURL the URLof the ear application file. - parentClassLoader the parentclassLoader of the wars. - earClassLoader the ear classLoaderof the j2ee app. - altDDs the optional URI of deploymentdescriptor. - contextRoots the optional context root of thewars.
Create the environment and delegate the operation to the implementation
of the web container.
Parameters: ctx - the context which contains the configuration in order todeploy a WAR. throws: JWebContainerServiceException - if the registration of the WARfailed.
Delegate the unregistration to the implementation of the web container.
Parameters: ctx - the context which contains the configuration in order toundeploy a WAR. throws: JWebContainerServiceException - if the unregistration failed.
Return the class loader of the given warURL. Unpack the associated war
and build the loader if it's not in the cache.
Parameters: warURL - the url of the war we want to get the loader Parameters: earAppName - the name of the ear application containing the war. Maybe null in non ear case. Parameters: parentLoader - the ejb class loader of the ear. May be null in nonear case. the class loader of the given warURL. throws: JWebContainerServiceException - if the process failed.
Return the Default host name of the web container.
the Default host name of the web container. throws: JWebContainerServiceException - when it is impossible to get theDefault Host.
Return the Default HTTP port number of the web container (can be null if
multiple HTTP connector has been set).
the Default HTTP port number of the web container. throws: JWebContainerServiceException - when it is impossible to get theDefault Http port.
Return the Default HTTPS port number of the web container (can be null if
multiple HTTPS connector has been set).
the Default HTTPS port number of the web container. throws: JWebContainerServiceException - when it is impossible to get theDefault Https port.
Return the list of installed web applications ready to deploy.
The list of deployable web applications throws: Exception - if the list can't be retrieved
Return the list of installed web applications. The WAR files or the
directories with expanded web application are searched in
JONAS_BASE/webapps and all webapps directories 'autoload'.
The list of WAR files or the directories with expanded webapplication found throws: Exception - if the list can't be retrieved
Return the URL where warURL has been unpacked.
Parameters: warURL - the URL of the war Parameters: earAppName - EAR Application name (can be null if not in EAR case) the URL where warURL has been unpacked. throws: JWebContainerServiceException - when it is impossible to retrievethe unpacked URL.
Get the war identified by its URL (.war).
Parameters: url - the URL of the war to get. the war indentified by its URL, or null if the war is not found.
This method is added temporarily. It will disapear when Wars will have
their associated MBeans (when Wars will become manageable)
the names of the wars currently deployed in the JOnAS server
Register a WAR by delegating the operation to the registerWar() method.
This is used for JMX management.
Parameters: fileName - the name of the war to deploy. throws: RemoteException - if rmi call failed. throws: JWebContainerServiceException - if the registration failed.
Make a cleanup of the cache of deployment descriptor. This method must be
invoked after the ear deployment by the EAR service.
Parameters: earClassLoader - the ClassLoader of the ear application to removefrom the cache.
Undeploy the given wars of an ear file with the specified parent
classloader (ejb classloader or ear classloader). (This method is only
used for the ear applications, not for the war applications).
Parameters: urls - the list of the urls of the wars to undeploy.
Unregister a WAR by delegating the operation to the unRegisterWar()
method. This is used for JMX management.
Parameters: fileName - the name of the war to undeploy. throws: RemoteException - if rmi call failed. throws: JWebContainerServiceException - if the unregistration failed.