Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5966

Migrate TomcatService mbean deployment descriptor to mc bean descriptor

XMLWordPrintable

      The deployment descriptor for org.jboss.web.tomcat.service.deployers.TomcatService uses the legacy mbean descriptor.
      This prevents the user from adding a dependency on a microcontainer bean (e.g. for mod_cluster integration).
      The current descriptor, expressed as a jboss-beans.xml file would look like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <deployment xmlns="urn:jboss:bean-deployer:2.0">
      <bean name="WebServer" class="org.jboss.web.tomcat.service.deployers.TomcatService">

      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.web:service=WebServer", exposedInterface=org.jboss.web.tomcat.service.deployers.TomcatServiceMBean.class,registerDirectly=true)</annotation>

      <!-- Only needed if the org.jboss.web.tomcat.service.jca.CachedConnectionValve
      is enabled in the tomcat server.xml file.
      -->
      <depends>jboss.jca:service=CachedConnectionManager</depends>

      <!-- Transaction manager for unfinished transaction checking in the CachedConnectionValve -->
      <depends>jboss:service=TransactionManager</depends>

      <!-- Inject the TomcatDeployer -->
      <property name="tomcatDeployer"><inject bean="WarDeployer"/></property>

      <!--
      Do not configure other JMX attributes via this file.
      Use the WarDeployer bean in deployers/jboss-web.deployer/war-deployers-beans.xml
      -->
      </bean>
      </deployment>

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: