Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2011

jboss-ejb3.xml deployment descriptor is not parsed correct for the clustering element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.CR1
    • 8.0.0.Beta1
    • EJB
    • Hide

      If the following configuration in jboss-ejb3.xml is use

      <assembly-descriptor>
      <c:clustering>
      <ejb-name>Bean1</ejb-name>
      <ejb-name>Bean2</ejb-name>
      <ejb-name>Bean3</ejb-name>
      <c:clustered>true</c:clustered>
      </c:clustering>
      </assembly-descriptor>

      All beans will be registered as clustered, but if a ClusterNodeSelector is registered for the EJBClientContext the client will only register this Selector for the last element. For all other bean invocations the Selector will not be invoked.

      Show
      If the following configuration in jboss-ejb3.xml is use <assembly-descriptor> <c:clustering> <ejb-name>Bean1</ejb-name> <ejb-name>Bean2</ejb-name> <ejb-name>Bean3</ejb-name> <c:clustered>true</c:clustered> </c:clustering> </assembly-descriptor> All beans will be registered as clustered, but if a ClusterNodeSelector is registered for the EJBClientContext the client will only register this Selector for the last element. For all other bean invocations the Selector will not be invoked.
    • Workaround Exists
    • Hide

      Use wildcard for <ejb-name> or repeat the <c:clustering> element

      Show
      Use wildcard for <ejb-name> or repeat the <c:clustering> element

      If beans of an application are marked as clustered by using the jboss-ejb3.xml DD the behaviour is not consistent.

      From the XSD the <ejb-name> element can not be added multiple times.
      And the following configuration will be not valid:
      <assembly-descriptor>
      <c:clustering>
      <ejb-name>Bean1</ejb-name>
      <ejb-name>Bean2</ejb-name>
      <c:clustered>true</c:clustered>
      </c:clustering>
      </assembly-descriptor>

      The parser should throw an Exception and the application should not be deployed.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              rhn-support-wfink Wolf Fink
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: