spring - Can JBoss EAP7 consume Weblogic 12 JMS queues? -


this question 2 things:

1) possible have jboss eap7 webapplication listeners consuming weblogic 12 queue? weblogic server in same network jboss eap7 server

2) distributed transactions work in such envrionment? example when there error while consuming queue, message shoul return weblogic, error queue. operations should made in distributed transaction 2 weblogic servers 1 has queue exposed , second 1 has consumer.

3) how , if connection factory should defined in standalone.xml file?

i use spring define queue consumers, see have wlinitialcontextfactory in jnditemplate properties. worked in weblogic-weblogic enviroment. today want change 1 of serversto jboss eap, server consumes weblogic queues.

<?xml version="1.0" encoding="utf-8"?> <!doctype beans public "-//spring//dtd bean//en" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans>  <bean id="invoicelistener" class="jms.invoicemdb" />  <bean id="jnditemplate" class="org.springframework.jndi.jnditemplate"> <property name="environment">  <props>    <prop key="java.naming.factory.initial">weblogic.jndi.wlinitialcontextfactory</prop>    <prop key="java.naming.provider.url">t3://localhost:7001</prop>  </props> </property> </bean>  <bean id="queueconnectionfactory" class="org.springframework.jndi.jndiobjectfactorybean"> <property name="jnditemplate">  <ref bean="jnditemplate" /> </property> <property name="jndiname">  <value>jms/connectionfactory</value> </property> </bean>  <bean id="jmsdestinationresolver" class="org.springframework.jms.support.destination.jndidestinationresolver"> <property name="jnditemplate">  <ref bean="jnditemplate" /> </property> <property name="cache">  <value>true</value> </property> </bean>  <bean id="invoicequeuetemplate" class="org.springframework.jms.core.jmstemplate"> <property name="connectionfactory">  <ref bean="queueconnectionfactory" /> </property> <property name="destinationresolver">  <ref bean="jmsdestinationresolver" /> </property> </bean>  <bean id="jmsinvoicesender" class="jms.invoicequeuesender"> <property name="jmstemplate">  <ref bean="invoicequeuetemplate" /> </property>  </bean>  <bean id="invoicequeue" class="org.springframework.jndi.jndiobjectfactorybean">  <property name="jnditemplate">    <ref bean="jnditemplate" />  </property>  <property name="jndiname">    <value>jms/testqueue</value>  </property> </bean> <bean id="invoicelistener" class="org.springframework.jms.listener.defaultmessagelistenercontainer">     <property name="concurrentconsumers" value="5" />     <property name="connectionfactory" ref="queueconnectionfactory" />     <property name="destination" ref="invoicequeue" />     <property name="messagelistener" ref="invoicelistener" />   </bean> </beans> 


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -