Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1678

Support for Service exposing a management interface and a custom objectName through deployment descriptor isn't working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0-GA
    • 1.0.0-Beta11
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.), Interactive Demo/Tutorial

      The xml equivalent of @Management and @Service(objectName="blah:blah=blah") doesn't work:

      <service>
      <ejb-name>ServiceOne</ejb-name>
      <ejb-class>org.jboss.tutorial.service_deployment_descriptor.bean.ServiceOne</ejb-class>
      <!-- Does not work -->
      <object-name>tutorial:service=serviceOne</object-name>
      <management>org.jboss.tutorial.service_deployment_descriptor.bean.ServiceOneManagement</management>
      </service>

      This is resulting in the "service_deployment_descriptor" tutorial failing against JBoss-5.0 GA.

      The ServiceContainer.registerManagementInterface relies on the getAnnotation method to check for the management interface and the objectName, which causes this issue.

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: