|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.lib.service.AbsConfigServiceImpl
org.ow2.jonas.web.base.BaseWebContainerService
public abstract class BaseWebContainerService
This abstract class provides an implementation for a dynamic JWebContainerService service.
Nested Class Summary | |
---|---|
class |
BaseWebContainerService.WebLoaderHolder
Holds the ClassLoader used to retrieve the WebApp JNDI Context and the JOnAS Webapp ClasLoader. |
Field Summary | |
---|---|
protected static String |
INEAR_WORK_WEBAPPS_DIR_SUFFIX
The name of the property used in work directory for EAR webapps (in ear case). |
protected org.ow2.jonas.jmx.JmxService |
jmxService
JMX Service. |
protected static String |
JONAS_BASE
The name of the JONAS_BASE directory. |
protected org.ow2.jonas.jsf.JSFService |
jsfService
JSF Service. |
protected static String |
SINGLE_WORK_WEBAPPS_DIR_SUFFIX
The name of the property used in work directory for single webapps (not ear case). |
Fields inherited from class org.ow2.jonas.lib.service.AbsConfigServiceImpl |
---|
addonConfig |
Constructor Summary | |
---|---|
BaseWebContainerService(org.osgi.framework.BundleContext bundleContext)
Default constructor. |
Method Summary | |
---|---|
void |
addTldResource(URL tldResource)
Add the given TLD URL as a resource. |
void |
bindJaxwsService(org.ow2.jonas.ws.jaxws.IJAXWSService jaxwsService)
Store the reference to the JAX-WS Service. |
protected URL |
checkWarDeployed(String fileName)
Check if the specified file is already deployed in the JOnAS server and return the URL of this deployed war file. |
protected URL |
checkWarFile(String fileName)
Check if the specified file name correspond to a file which is located relatively to where the JOnAS server is launched or in the $JONAS_BASE/web-apps. |
protected abstract HttpServiceFactory<?> |
createHttpServiceFactory()
Creates an instance of the http service factory. |
void |
deployWars(Context ctx)
Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). |
protected abstract void |
doRegisterWar(Context ctx)
Create the environment and delegate the operation to the implementation of the web container. |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
protected abstract void |
doUnRegisterWar(Context ctx)
Delegate the unregistration to the implementation of the web container. |
protected ClassLoader |
getAppsClassLoader()
|
org.ow2.jonas.audit.AuditService |
getAuditService()
|
protected org.osgi.framework.BundleContext |
getBundleContext()
|
org.ow2.jonas.lib.loader.WebappClassLoader |
getClassLoader(URL warURL,
org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
ClassLoader parentLoader)
Return the class loader of the given warURL. |
protected org.ow2.jonas.naming.JComponentContextFactory |
getContextFactory()
|
ClassLoader |
getContextLinkedClassLoader(URL warURL)
|
protected String |
getContextRoot(String contextRoot,
URLClassLoader earClassLoader,
URL warURL,
org.ow2.jonas.deployment.web.WebContainerDeploymentDesc webDD)
Gets the context root for a WAR. |
Integer |
getCurrentNumberOfWars()
|
org.ow2.jonas.datasource.DataSourceService |
getDataSourceService()
|
abstract String |
getDefaultHost()
Return the Default host name of the web container. |
abstract String |
getDefaultHttpPort()
Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set). |
abstract String |
getDefaultHttpsPort()
Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set). |
List<String> |
getDeployedWars()
Return the list of all loaded web applications. |
protected String |
getInstanceName()
Gets application instance name |
protected org.ow2.jonas.ws.jaxrpc.IJAXRPCService |
getJAXRPCService()
|
protected org.ow2.jonas.ws.jaxws.IJAXWSService |
getJAXWSService()
|
org.ow2.jonas.jmx.JmxService |
getJmxService()
|
protected static org.objectweb.util.monolog.api.Logger |
getLogger()
|
org.ow2.jonas.multitenant.MultitenantService |
getMultitenantService()
|
protected org.ow2.jonas.naming.JNamingManager |
getNaming()
|
int |
getOnDemandRedirectPort()
|
int |
getRandomPort()
|
String |
getServerName()
Gets the name of the server which is the web container. |
String |
getServerVersion()
Gets the version of the server which is the web container. |
protected String |
getTenantId(org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
Gets tenantId for an application |
List<URL> |
getTLDResources()
|
protected URL |
getUnpackedURL(URL warURL,
org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
Return the URL where warURL has been unpacked. |
org.ow2.jonas.versioning.VersioningService |
getVersioningService()
|
protected List<War> |
getWar(String pContext)
Get a list of wars identified by their Context. |
War |
getWar(URL url)
Get the war identified by its URL (.war). |
protected Hashtable |
getWarBindings()
|
protected List<War> |
getWarDeployed()
|
protected WARDeployer |
getWarDeployer()
|
protected Hashtable |
getWarLoaders()
|
protected String |
getWebappsWorkDirectory()
|
protected void |
initWorkingDirectory()
Create working directory for applications. |
boolean |
isEjbinwarEnabled()
|
abstract boolean |
isInternalContainerStarted()
Checks if the internal web container has been started. |
boolean |
isMultitenantEnabled()
|
boolean |
isOnDemandFeatureEnabled()
|
boolean |
isVersioningEnabled()
|
boolean |
isWarDeployedByWorkName(String unpackName)
Test if the specified unpack name is already deployed or not. |
boolean |
isWarLoaded(String fileName)
Test if the specified filename is already deployed or not. |
protected void |
registerWar(Context ctx)
Create the environment and delegate the operation to the implementation of the web container. |
void |
registerWar(String fileName)
Register a WAR by delegating the operation to the registerWar() method. |
void |
registerWar(org.ow2.util.ee.deploy.api.deployable.WARDeployable deployable)
Register a WAR by delegating the operation to the registerWar(Context) method. |
protected void |
registerWarMBean(War war,
String domainName,
String fileName)
Register War MBean. |
protected void |
registerWebServiceMBean(Object service,
String domainName)
Register WEB Container Service MBean. |
void |
removeCache(ClassLoader earClassLoader)
Make a cleanup of the cache of deployment descriptor. |
void |
removeTldResource(URL tldResource)
Remove the given TLD URL as a resource. |
void |
setAuditService(org.ow2.jonas.audit.AuditService auditService)
|
void |
setContextFactory(org.ow2.jonas.naming.JComponentContextFactory contextFactory)
|
void |
setDataSourceService(org.ow2.jonas.datasource.DataSourceService dataSourceService)
|
protected void |
setDefaultHttpPort(int portNumber)
Callback when a http port is defined |
protected void |
setDefaultHttpsPort(int portNumber)
Callback when a https port is defined |
void |
setDeployableHelper(org.ow2.util.ee.deploy.api.helper.IDeployableHelper deployableHelper)
|
void |
setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
|
void |
setEjb3Service(org.ow2.jonas.ejb3.IEasyBeansService service)
|
void |
setEjbinwar(boolean ejbinwar)
Defines EJB in WAR feature. |
void |
setJAXRPCService(org.ow2.jonas.ws.jaxrpc.IJAXRPCService jaxrpcService)
|
void |
setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
|
void |
setJSFService(org.ow2.jonas.jsf.JSFService jsfService)
|
void |
setMultitenantService(org.ow2.jonas.multitenant.MultitenantService multitenantService)
|
void |
setNaming(org.ow2.jonas.naming.JNamingManager naming)
|
void |
setOnDemandFeature(boolean onDemandFeatureEnabled)
Enable or not the on demand feature. |
void |
setOnDemandRedirectPort(int onDemandRedirectPort)
Sets the redirect port number. |
void |
setParsingwithvalidation(boolean validate)
|
protected void |
setServerName(String serverName)
|
protected void |
setServerVersion(String serverVersion)
|
void |
setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
|
void |
setWarDeployableMetadataFactory(org.ow2.util.ee.metadata.war.api.IWarDeployableMetadataFactory warDeployableMetadataFactory)
|
protected void |
setWebEnvironment(Context ctxParam,
org.ow2.easybeans.deployment.api.EZBInjectionHolder ezbInjectionHolder,
ClassLoader webAppClassLoader)
Set the environment of the web container inside the given context. |
void |
setWorkCleanerService(org.ow2.jonas.workcleaner.WorkCleanerService workCleanerService)
Method called when the workCleanerService is bound to the component. |
abstract void |
startInternalWebContainer()
Starts the specific code for the web container implementation. |
void |
unbindJaxwsService(org.ow2.jonas.ws.jaxws.IJAXWSService jaxwsService)
Release the reference to the JAWS Service. |
void |
unDeployWars(URL[] urls)
Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). |
protected void |
unRegisterWar(Context ctx)
Delegate the un-registration to the implementation of the web container and delete the environment associated to the WAR file. |
void |
unRegisterWar(String fileName)
Unregister a WAR by delegating the operation to the unRegisterWar() method. |
void |
unRegisterWar(org.ow2.util.ee.deploy.api.deployable.WARDeployable deployable)
Un-register a WAR by delegating the operation to the unRegisterWar(Context) method. |
protected void |
unregisterWarMBean(String domainName,
String fileName)
Unegister War MBean. |
protected void |
unregisterWebServiceMBean(String domainName)
Unregister WEB Container Service MBean. |
void |
unsetAuditService()
Sets the audit service to null. |
void |
unsetDeployableHelper()
Unbind the IDeployableHelper . |
void |
unsetEjb3Service()
Unbind the IEasyBeansService . |
void |
unsetMultitenantService()
Sets the multitenant service to null. |
void |
unsetVersioningService()
Sets the versioning service to null. |
protected String |
updateContextRoot(String contextRoot,
org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
Update context root by adding tenantId and application instance name |
protected abstract void |
updateServerInfos()
Update info of the serverName and serverVersion. |
Methods inherited from class org.ow2.jonas.lib.service.AbsConfigServiceImpl |
---|
registerAddonConfig, unregisterAddonConfig |
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getSequenceNumber, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject |
---|
getModelMBean, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.service.ConfigService |
---|
registerAddonConfig, unregisterAddonConfig |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Field Detail |
---|
protected static final String JONAS_BASE
protected static final String SINGLE_WORK_WEBAPPS_DIR_SUFFIX
protected static final String INEAR_WORK_WEBAPPS_DIR_SUFFIX
protected org.ow2.jonas.jmx.JmxService jmxService
protected org.ow2.jonas.jsf.JSFService jsfService
Constructor Detail |
---|
public BaseWebContainerService(org.osgi.framework.BundleContext bundleContext)
bundleContext
- the OSGi bundle contextMethod Detail |
---|
public void setParsingwithvalidation(boolean validate)
validate
- must we parse web.xml files with validation ?protected void doStart() throws org.ow2.jonas.service.ServiceException
doStart
in class org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.service.ServiceException
- if the startup failed.protected abstract HttpServiceFactory<?> createHttpServiceFactory()
protected void doStop() throws org.ow2.jonas.service.ServiceException
doStop
in class org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.service.ServiceException
- if the stop failed.protected abstract void doRegisterWar(Context ctx) throws org.ow2.jonas.web.JWebContainerServiceException
ctx
- the context which contains the configuration in order to
deploy a WAR.
org.ow2.jonas.web.JWebContainerServiceException
- if the registration of the WAR
failed.protected abstract void doUnRegisterWar(Context ctx) throws org.ow2.jonas.web.JWebContainerServiceException
ctx
- the context which contains the configuration in order to
undeploy a WAR.
org.ow2.jonas.web.JWebContainerServiceException
- if the unregistration failed.public abstract void startInternalWebContainer() throws org.ow2.jonas.web.JWebContainerServiceException
org.ow2.jonas.web.JWebContainerServiceException
- if container is not startedpublic abstract boolean isInternalContainerStarted()
protected URL getUnpackedURL(URL warURL, org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable) throws org.ow2.jonas.web.JWebContainerServiceException
warURL
- the URL of the warearDeployable
- the EAR deployable (could be null)
org.ow2.jonas.web.JWebContainerServiceException
- when it is impossible to retrieve
the unpacked URL.public org.ow2.jonas.lib.loader.WebappClassLoader getClassLoader(URL warURL, org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable, ClassLoader parentLoader) throws org.ow2.jonas.web.JWebContainerServiceException
getClassLoader
in interface org.ow2.jonas.web.JWebContainerService
warURL
- the url of the war we want to get the loaderearDeployable
- If the WAR is in an EAR applicationparentLoader
- the ejb class loader of the ear. May be null in non
ear case.
org.ow2.jonas.web.JWebContainerServiceException
- if the process failed.public ClassLoader getContextLinkedClassLoader(URL warURL)
getContextLinkedClassLoader
in interface org.ow2.jonas.web.JWebContainerService
warURL
- the URL of the webapp
protected void registerWar(Context ctx) throws org.ow2.jonas.web.JWebContainerServiceException
ctx
- the context which contains the configuration in order to
deploy a WAR.
org.ow2.jonas.web.JWebContainerServiceException
- if the registration of the WAR
failed.protected String getContextRoot(String contextRoot, URLClassLoader earClassLoader, URL warURL, org.ow2.jonas.deployment.web.WebContainerDeploymentDesc webDD)
contextRoot
- Current context root, null if none.earClassLoader
- EAR classloader for the WAR, null if none.warURL
- War file's URL.webDD
- Deployment descriptor of the WAR file.
protected String getTenantId(org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
deployable
-
protected String getInstanceName()
protected String updateContextRoot(String contextRoot, org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
contextRoot
- Current context rootdeployable
-
public void registerWar(String fileName) throws RemoteException, org.ow2.jonas.web.JWebContainerServiceException
registerWar
in interface org.ow2.jonas.web.JWebContainerService
fileName
- the name of the war to deploy.
RemoteException
- if rmi call failed.
org.ow2.jonas.web.JWebContainerServiceException
- if the registration failed.public void registerWar(org.ow2.util.ee.deploy.api.deployable.WARDeployable deployable) throws org.ow2.jonas.web.JWebContainerServiceException
registerWar
in interface org.ow2.jonas.web.JWebContainerService
deployable
- the webapp to be deployed
org.ow2.jonas.web.JWebContainerServiceException
- if the
registration failed.protected void setWebEnvironment(Context ctxParam, org.ow2.easybeans.deployment.api.EZBInjectionHolder ezbInjectionHolder, ClassLoader webAppClassLoader) throws org.ow2.jonas.web.JWebContainerServiceException
ctxParam
- the java:comp/env/ environment where is stored the values
of the web container environment.ezbInjectionHolder
- the easybeans injection handler.webAppClassLoader
- the classloader of the web application.
org.ow2.jonas.web.JWebContainerServiceException
- if the populating of the
environment failed.protected void unRegisterWar(Context ctx) throws org.ow2.jonas.web.JWebContainerServiceException
ctx
- the context which contains the configuration in order to
un-deploy a WAR.
org.ow2.jonas.web.JWebContainerServiceException
- if the un-registration failed.public void unRegisterWar(String fileName) throws RemoteException, org.ow2.jonas.web.JWebContainerServiceException
unRegisterWar
in interface org.ow2.jonas.web.JWebContainerService
fileName
- the name of the war to undeploy.
RemoteException
- if rmi call failed.
org.ow2.jonas.web.JWebContainerServiceException
- if the unregistration failed.public void unRegisterWar(org.ow2.util.ee.deploy.api.deployable.WARDeployable deployable) throws org.ow2.jonas.web.JWebContainerServiceException
unRegisterWar
in interface org.ow2.jonas.web.JWebContainerService
deployable
- the webapp to be un-deployed.
org.ow2.jonas.web.JWebContainerServiceException
- if the un-registration failed.public void deployWars(Context ctx) throws org.ow2.jonas.web.JWebContainerServiceException
deployWars
in interface org.ow2.jonas.web.JWebContainerService
ctx
- the context containing the configuration to deploy the wars. org.ow2.jonas.web.JWebContainerServiceException
- if an error occurs during the
deployment.public void unDeployWars(URL[] urls)
unDeployWars
in interface org.ow2.jonas.web.JWebContainerService
urls
- the list of the urls of the wars to undeploy.public War getWar(URL url)
url
- the URL of the war to get.
protected List<War> getWar(String pContext)
pContext
- the context of the war to get.
public void removeCache(ClassLoader earClassLoader)
removeCache
in interface org.ow2.jonas.web.JWebContainerService
earClassLoader
- the ClassLoader of the ear application to remove
from the cache.protected URL checkWarFile(String fileName) throws org.ow2.jonas.web.JWebContainerServiceException
fileName
- the file to check if it exists.
org.ow2.jonas.web.JWebContainerServiceException
- if the specified file does't
exists.protected URL checkWarDeployed(String fileName) throws org.ow2.jonas.web.JWebContainerServiceException
fileName
- the name of the WAR file to check.
org.ow2.jonas.web.JWebContainerServiceException
- if the file name doesn't correspond
to a deployed war.public Integer getCurrentNumberOfWars()
getCurrentNumberOfWars
in interface BaseWebContainerServiceMBean
public boolean isWarLoaded(String fileName)
isWarLoaded
in interface BaseWebContainerServiceMBean
isWarLoaded
in interface org.ow2.jonas.web.JWebContainerService
fileName
- the name of the war file.
public List<String> getDeployedWars()
getDeployedWars
in interface BaseWebContainerServiceMBean
public String getServerName()
getServerName
in interface BaseWebContainerServiceMBean
public String getServerVersion()
getServerVersion
in interface BaseWebContainerServiceMBean
public boolean isWarDeployedByWorkName(String unpackName)
JWebContainerService
interface.
isWarDeployedByWorkName
in interface org.ow2.jonas.web.JWebContainerService
unpackName
- the name of the ear file.
protected abstract void updateServerInfos()
public abstract String getDefaultHost() throws org.ow2.jonas.web.JWebContainerServiceException
getDefaultHost
in interface org.ow2.jonas.web.JWebContainerService
org.ow2.jonas.web.JWebContainerServiceException
- when it is impossible to get the
Default Host.public abstract String getDefaultHttpPort() throws org.ow2.jonas.web.JWebContainerServiceException
getDefaultHttpPort
in interface org.ow2.jonas.web.JWebContainerService
org.ow2.jonas.web.JWebContainerServiceException
- when it is impossible to get the
Default Http port.public abstract String getDefaultHttpsPort() throws org.ow2.jonas.web.JWebContainerServiceException
getDefaultHttpsPort
in interface org.ow2.jonas.web.JWebContainerService
org.ow2.jonas.web.JWebContainerServiceException
- when it is impossible to get the
Default Https port.protected static org.objectweb.util.monolog.api.Logger getLogger()
protected org.ow2.jonas.naming.JNamingManager getNaming()
protected void setServerName(String serverName)
serverName
- The serverName to set.protected void setServerVersion(String serverVersion)
serverVersion
- The serverVersion to set.protected org.ow2.jonas.naming.JComponentContextFactory getContextFactory()
JComponentContextFactory
.protected void registerWebServiceMBean(Object service, String domainName)
service
- web container service to managedomainName
- domain nameprotected void unregisterWebServiceMBean(String domainName)
domainName
- domain nameprotected void registerWarMBean(War war, String domainName, String fileName)
war
- War instance to managedomainName
- domain namefileName
- the war file nameprotected void unregisterWarMBean(String domainName, String fileName)
domainName
- domain namefileName
- the war file namepublic void setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
jmxService
- the jmxService to setpublic void setJSFService(org.ow2.jonas.jsf.JSFService jsfService)
jsfService
- the JSFService to setpublic org.ow2.jonas.jmx.JmxService getJmxService()
public void setJAXRPCService(org.ow2.jonas.ws.jaxrpc.IJAXRPCService jaxrpcService)
jaxrpcService
- the jaxrpcService to setpublic void setNaming(org.ow2.jonas.naming.JNamingManager naming)
naming
- the naming to setpublic void setContextFactory(org.ow2.jonas.naming.JComponentContextFactory contextFactory)
contextFactory
- the contextFactory to setpublic void setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
deployerManager
- the IDeployerManager
to use.protected void initWorkingDirectory()
public void setWorkCleanerService(org.ow2.jonas.workcleaner.WorkCleanerService workCleanerService)
workCleanerService
- the workCleanerService referenceprotected Hashtable getWarLoaders()
protected Hashtable getWarBindings()
protected List<War> getWarDeployed()
protected org.ow2.jonas.ws.jaxrpc.IJAXRPCService getJAXRPCService()
protected ClassLoader getAppsClassLoader()
public void setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
versioningService
- The versioning service to set.public void unsetVersioningService()
public org.ow2.jonas.versioning.VersioningService getVersioningService()
public boolean isVersioningEnabled()
public void setMultitenantService(org.ow2.jonas.multitenant.MultitenantService multitenantService)
multitenantService
- The multitenant service to set.public void unsetMultitenantService()
public org.ow2.jonas.multitenant.MultitenantService getMultitenantService()
public boolean isMultitenantEnabled()
public void setAuditService(org.ow2.jonas.audit.AuditService auditService)
auditService
- The audit service to set.public void unsetAuditService()
public org.ow2.jonas.audit.AuditService getAuditService()
public void setWarDeployableMetadataFactory(org.ow2.util.ee.metadata.war.api.IWarDeployableMetadataFactory warDeployableMetadataFactory)
warDeployableMetadataFactory
- the deployable metadata factory
servicepublic void bindJaxwsService(org.ow2.jonas.ws.jaxws.IJAXWSService jaxwsService)
jaxwsService
- jaxws Serviceprotected org.ow2.jonas.ws.jaxws.IJAXWSService getJAXWSService()
public void unbindJaxwsService(org.ow2.jonas.ws.jaxws.IJAXWSService jaxwsService)
jaxwsService
- jaxws Servicepublic void setEjb3Service(org.ow2.jonas.ejb3.IEasyBeansService service)
service
- the EJB3 Service to be injected.public void unsetEjb3Service()
IEasyBeansService
.
public void setDeployableHelper(org.ow2.util.ee.deploy.api.helper.IDeployableHelper deployableHelper)
deployableHelper
- the deployable helperpublic void unsetDeployableHelper()
IDeployableHelper
.
public void setOnDemandFeature(boolean onDemandFeatureEnabled)
onDemandFeatureEnabled
- boolean true/falsepublic void setOnDemandRedirectPort(int onDemandRedirectPort)
onDemandRedirectPort
- the given port used for OnDemand proxypublic boolean isOnDemandFeatureEnabled()
public int getOnDemandRedirectPort()
public int getRandomPort()
protected void setDefaultHttpPort(int portNumber)
portNumber
- the given port numberprotected void setDefaultHttpsPort(int portNumber)
portNumber
- the given port numberprotected org.osgi.framework.BundleContext getBundleContext()
protected String getWebappsWorkDirectory()
public void addTldResource(URL tldResource)
tldResource
- the given TLD resourcepublic void removeTldResource(URL tldResource)
tldResource
- the given TLD resourcepublic List<URL> getTLDResources()
protected WARDeployer getWarDeployer()
public boolean isEjbinwarEnabled()
public void setEjbinwar(boolean ejbinwar)
ejbinwar
- true if enabled, false to disablepublic org.ow2.jonas.datasource.DataSourceService getDataSourceService()
public void setDataSourceService(org.ow2.jonas.datasource.DataSourceService dataSourceService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |