org.mobicents.servlet.sip.startup.jboss
Class JBossConverged

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.deployment.SubDeployerSupport
              extended by org.jboss.web.AbstractWebContainer
                  extended by org.jboss.web.tomcat.service.JBossWeb
                      extended by org.mobicents.servlet.sip.startup.jboss.JBossConverged
All Implemented Interfaces:
java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.NotificationListener, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerExt, org.jboss.deployment.SubDeployerExtMBean, org.jboss.deployment.SubDeployerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean, org.jboss.web.AbstractWebContainerMBean, org.jboss.web.tomcat.service.JBossWebMBean

public class JBossConverged
extends org.jboss.web.tomcat.service.JBossWeb

Extending the JBossWeb implementation of AbstractWebContainer to be able to deploy sip servlets archive. This class will check if the WEB-INF/sip.xml file can be found in the application getting deployed, if that's the case it will use sip extended tomcat classes for the application context

Author:
Jean Deruelle

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.web.AbstractWebContainer
org.jboss.web.AbstractWebContainer.WebDescriptorParser
 
Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.SubDeployerSupport.ClassConfiguration
 
Field Summary
 
Fields inherited from class org.jboss.web.tomcat.service.JBossWeb
DEFAULT_CACHE_NAME, managerClass, NAME
 
Fields inherited from class org.jboss.web.AbstractWebContainer
acceptNonWarDirs, defaultSecurityDomain, DEPLOYER, deploymentMap, ERROR, java2ClassLoadingCompliance, lenientEjbLink, serviceController, unpackWars, WEB_APP, WEB_MODULE
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, enhancedSuffixes, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.web.tomcat.service.JBossWebMBean
TOMCAT_CONNECTORS_STARTED
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Fields inherited from interface org.jboss.deployment.SubDeployer
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION
 
Constructor Summary
JBossConverged()
           
 
Method Summary
 org.jboss.web.AbstractWebDeployer getDeployer(org.jboss.deployment.DeploymentInfo di)
           
static boolean isSipServletApplication(org.jboss.deployment.DeploymentInfo di)
          Check if the WEB-INF/sip.xml file can be found in the local class loader of the service deployment info.
 
Methods inherited from class org.jboss.web.tomcat.service.JBossWeb
getAuthenticators, getCacheName, getConfigFile, getContextMBeanCode, getDeleteWorkDirOnContextDestroy, getDomain, getFilteredPackages, getHttpHeaderForSSOAuth, getManagerClass, getMaxUnreplicatedInterval, getName, getSessionCookieForSSOAuth, getSessionIdAlphabet, getSnapshotInterval, getSnapshotMode, getSubjectAttributeName, getUseJBossWebLoader, handleNotification, isAllowSelfPrivilegedWebApps, isUseJK, isUseLocalCache, setAllowSelfPrivilegedWebApps, setAuthenticators, setCacheName, setConfigFile, setContextMBeanCode, setDeleteWorkDirOnContextDestroy, setDomain, setFilteredPackages, setHttpHeaderForSSOAuth, setManagerClass, setMaxUnreplicatedInterval, setSecurityManagerService, setSessionCookieForSSOAuth, setSessionIdAlphabet, setSnapshotInterval, setSnapshotMode, setSubjectAttributeName, setUseJBossWebLoader, setUseJK, setUseLocalCache, startConnectors, startService, stopConnectors, stopService
 
Methods inherited from class org.jboss.web.AbstractWebContainer
accepts, addDeployedApp, create, destroy, getAcceptNonWarDirs, getClassLoaderURLs, getCompileClasspath, getConfig, getDefaultSecurityDomain, getDeployedApp, getDeployedApplications, getJava2ClassLoadingCompliance, getLenientEjbLink, getUnpackWars, init, isDeployed, parseMetaData, processNestedDeployments, removeDeployedApp, setAcceptNonWarDirs, setConfig, setDefaultSecurityDomain, setJava2ClassLoadingCompliance, setLenientEjbLink, setUnpackWars, start, stop
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, setEnhancedSuffixes, setRelativeOrder, setSuffixes
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.web.AbstractWebContainerMBean
getAcceptNonWarDirs, getConfig, getDefaultSecurityDomain, getDeployedApplications, getJava2ClassLoadingCompliance, getLenientEjbLink, getUnpackWars, isDeployed, setAcceptNonWarDirs, setConfig, setDefaultSecurityDomain, setJava2ClassLoadingCompliance, setLenientEjbLink, setUnpackWars
 
Methods inherited from interface org.jboss.deployment.SubDeployerExtMBean
getEnhancedSuffixes, setEnhancedSuffixes
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
accepts, create, destroy, getRelativeOrder, getServiceName, getSuffixes, init, start, stop
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getServiceName
 

Constructor Detail

JBossConverged

public JBossConverged()
Method Detail

getDeployer

public org.jboss.web.AbstractWebDeployer getDeployer(org.jboss.deployment.DeploymentInfo di)
                                              throws java.lang.Exception
Overrides:
getDeployer in class org.jboss.web.tomcat.service.JBossWeb
Throws:
java.lang.Exception

isSipServletApplication

public static boolean isSipServletApplication(org.jboss.deployment.DeploymentInfo di)
Check if the WEB-INF/sip.xml file can be found in the local class loader of the service deployment info. If it is then it means that a sip servlet application is trying to be deployed

Parameters:
di - the service deployment info
Returns:
true if the service being deployed contains WEB-INF/sip.xml, false otherwise


Copyright © 2009. All Rights Reserved.