java - JMS with One Copy Per Application in Spring Boot -
i'm porting ws application weblogic springboot. finished, there's last issue solve. need update information using jms. created jms-context.xml , placed configuration , it's working if use different clientid each topic app listening. jms server still runs on weblogic, app run stand alone.
in weblogic version, used ejb-jar.xml file , config looks like:
<message-driven> <ejb-name>customerlistener</ejb-name> <ejb-class>com.mycompany.listeners.customerlistener</ejb-class> <message-destination-type>javax.jms.topic</message-destination-type> <activation-config> <activation-config-property> <activation-config-property-name>topicmessagesdistributionmode</activation-config-property-name> <activation-config-property-value>one-copy-per-application</activation-config-property-value> </activation-config-property> </activation-config> </message-driven> i can't find need add "activation-config" in new jms-context.xml. below follows relevant sessions jms-context.xml. please note have jms working , can receive updates, single instance (id restricted, in weblogic version when set 1 copy per application sets connection unrestricted automatically).
<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://server_ip:7001</prop> </props> </property> </bean> <bean id="customerlistener" class="com.mycompany.listeners.customerlistener"/> <bean class="org.springframework.jms.listener.simplemessagelistenercontainer"> <property name="pubsubdomain" value="true" /> <property name="clientid" value="someid"/> <property name="connectionfactory" ref="connectionfactory"/> <property name="destination" ref="destinationtimezone"/> <property name="messagelistener" ref="customerlistener"/> </bean> how can set listeners 1copy per app?
Comments
Post a Comment