1 Reply Latest reply on May 20, 2004 4:41 PM by Adrian Brock

    Loose Deployment Descriptor Checking

    treespace Novice

      JBoss does not validate the ejb-jar.xml elements and has very loose checking on method-param elements of container-transaction descriptors at runtime. The imact of this is near zero until we do periodic WebLogic builds where we have to fix all of the accumulated "errors". Can we enable more strict checking of DDs?

      For example, the trans-attribute is out of place here and if there was no class com.acme.Baz or even a method bar() everything would delpoy ok on JBoss.

      <container-transaction>
      <trans-attribute>Required</trans-attribute>

      <ejb-name>FooBean</ejb-name>
      <method-name>bar</method-name>
      <method-params>
      <method-param>com.acme.Baz</method-param>
      </method-params>

      </container-transaction>