4 Replies Latest reply on Feb 27, 2018 12:47 AM by Prateek Malhotra

    Delivery Active in jboss-ejb3.xml

    Prateek Malhotra Newbie

      I am unable to configure delivery active via jboss-ejb3.xml getting the below error.

       

      Description Resource Path Location Type

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'd:delivery'. One of '{"http://java.sun.com/xml/ns/javaee":container-transaction, "http://java.sun.com/xml/ns/javaee":interceptor-binding, "http://java.sun.com/xml/ns/javaee":message-destination, "http://java.sun.com/xml/ns/javaee":exclude-list, "http://java.sun.com/xml/ns/javaee":application-exception, "http://java.sun.com/xml/ns/javaee":assembly-descriptor-entry}' is expected. jboss-ejb3.xml /helloworld-mdb-solace/src/main/webapp/WEB-INF line 111 XML Problem

       

      jboss-ejb3.xml:

      <?xml version="1.1" encoding="UTF-8"?>

      <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"

      xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xmlns:s="urn:security:1.1" xmlns:r="urn:resource-adapter-binding"

      xmlns:d="urn:delivery-active:1.1"

      xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd

                           http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd

                           http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"

      version="3.1" impl-version="2.0">

       

       

      <enterprise-beans>

      <message-driven>

      <ejb-name>SolaceHelloWorldQueueMDB</ejb-name>

      <ejb-class>com.barcap.mdb.SolaceHelloWorldQueueMDB</ejb-class>

      <transaction-type>Container</transaction-type>

       

       

      <activation-config>

       

       

      <activation-config-property>

      <activation-config-property-name>sessionTransacted</activation-config-property-name>

      <activation-config-property-value>false</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>destinationType</activation-config-property-name>

      <activation-config-property-value>javax.jms.Topic</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>jndiProperties</activation-config-property-name>

      <activation-config-property-value>${JNDI_PROPERTIES}</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>connectionFactory</activation-config-property-name>

      <activation-config-property-value>${CONNECTION_FACTORY}</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>destination</activation-config-property-name>

      <activation-config-property-value>${DESTINATION}</activation-config-property-value>

      </activation-config-property>

       

       

      </activation-config>

      </message-driven>

       

       

      <message-driven>

      <ejb-name>HelloWorldTopicMDB</ejb-name>

      <ejb-class>com.barcap.mdb.HelloWorldTopicMDB</ejb-class>

      <transaction-type>Container</transaction-type>

       

       

      <activation-config>

       

       

      <activation-config-property>

      <activation-config-property-name>sessionTransacted</activation-config-property-name>

      <activation-config-property-value>false</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>destinationType</activation-config-property-name>

      <activation-config-property-value>javax.jms.Topic</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>jndiProperties</activation-config-property-name>

      <activation-config-property-value>xxx</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>connectionFactory</activation-config-property-name>

      <activation-config-property-value>xxxx</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>destination</activation-config-property-name>

      <activation-config-property-value>xxxx</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>user</activation-config-property-name>

      <activation-config-property-value>xxxx</activation-config-property-value>

      </activation-config-property>

       

       

      <activation-config-property>

      <activation-config-property-name>password</activation-config-property-name>

      <activation-config-property-value>xxxx</activation-config-property-value>

      </activation-config-property>

      </activation-config>

      </message-driven>

       

       

      </enterprise-beans>

       

       

      <assembly-descriptor>

      <container-transaction>

      <method>

      <ejb-name>SolaceHelloWorldQueueMDB</ejb-name>

      <method-name>*</method-name>

      </method>

      <trans-attribute>NotSupported</trans-attribute>

      </container-transaction>

      <container-transaction>

      <method>

      <ejb-name>HelloWorldTopicMDB</ejb-name>

      <method-name>*</method-name>

      </method>

      <trans-attribute>NotSupported</trans-attribute>

      </container-transaction>

       

       

      <d:delivery>

      <ejb-name>SolaceHelloWorldQueueMDB</ejb-name>

      <d:active>false</d:active>

      </d:delivery>

       

       

      </assembly-descriptor>

       

       

      </jboss:ejb-jar>