1 Reply Latest reply on May 6, 2015 12:24 AM by lylewang

    JBOSS 6.4 JMS MDB Query

    sharmamanish3

      All,

      We are migrating our current application from Glassfish to JBOSS (6.4).

      I was looking in admin console to see if there is provision to set-up connection factories / Queues but couldn't find one.

      Anyone with any idea how to set this up?

       

      Below is our ejb-jar.xml file used in glassfish

      --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

      <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

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

        <display-name>TES App</display-name>

        <enterprise-beans>

          <message-driven>

              <display-name>TES</display-name>

              <ejb-name>TES_MDB</ejb-name>

              <ejb-class>com.tesprocess.TFInterfaceMessageListener</ejb-class>

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

              <message-destination-type>

              javax.jms.Queue

            </message-destination-type>

          </message-driven>

        </enterprise-beans>

        <assembly-descriptor>

          <container-transaction>

              <method>

                <ejb-name>TES_MDB</ejb-name>  

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

              </method>

                <trans-attribute>Required</trans-attribute>

            </container-transaction>

        </assembly-descriptor>

      </ejb-jar>

      --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Below is sun-ejb-jar.xml file used in glassfish

      -----------------

      <sun-ejb-jar>

        <enterprise-beans>

          <ejb>

            <ejb-name>TES_MDB</ejb-name>

            <jndi-name>MY_ResponseQueue</jndi-name>

            <mdb-connection-factory>

                <jndi-name>TES_Connection_Factory</jndi-name>

            </mdb-connection-factory>

          </ejb>

        </enterprise-beans>

      </sun-ejb-jar>

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       

      Also - I would like to know

      - Different ways to set this up?

      - Is it must to use Hornet Q for setting up Queues/Topics in JBOSS or can it be done without it?

      Which one is the best way to implement?

       

      Many thanks in advance