0 Replies Latest reply on Oct 14, 2016 12:07 PM by Colin Negrow

    Integrating Jboss EAP7 JMS with Spring

    Colin Negrow Newbie

      Hi

       

      I am searching how to integrate Spring with Jboss EAP7 JMS.

       

      Previously I had WeblogicServer and the following JMS configuration:

       

      my.jms.destinationResolver=myJmsDestinationResolver

      my.jms.connection.factory=JMS_QCF

      jms.connectionFactoryBean=myJmsConnectionFactory

      <jms:listener-container container-type="default" container-class="my.SomethingExtendingDefaultMessageListenerContainer" destination-resolver="${jms.destinationResolver}"

            connection-factory="${jms.connectionFactoryBean}" acknowledge="auto" transaction-manager="${transactionManager}" concurrency="${jms.concurrent.count}"

            cache="consumer">

           

            <jms:listener destination="${my.queue.name}" ref="baseMessageListener" method="onMessage" />

       

         <bean id="myJmsJndiTemplate" class="org.springframework.jndi.JndiTemplate" lazy-init="true">

            <property name="environment">

               <props>

                  <prop key="java.naming.factory.initial">${jms.jndi.class}</prop>

                  <prop key="java.naming.provider.url">${jms.server.url}</prop>

                  <prop key="java.naming.security.principal">${jms.jndi.principal}</prop>

                  <prop key="java.naming.security.credentials">${jms.jndi.credentials}</prop>

               </props>

            </property>

         </bean>

       

         <bean id="myJmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true">

            <property name="jndiTemplate" ref="myJmsJndiTemplate" />

            <property name="jndiName" value="${my.jms.connection.factory}" />

         </bean>

       

         <bean id="myJmsDestinationResolver"

            class="org.springframework.jms.support.destination.JndiDestinationResolver" lazy-init="true">

            <property name="jndiTemplate" ref="myJmsJndiTemplate" />

         </bean>

       

      Where can I find any example how to configure all of this using spring and EAP 7? EAP 7 uses ActiveMq right?