spring-jms

Does Spring actually start a new transaction with REQUIRES_NEW?

人盡茶涼 提交于 2020-12-29 12:36:21
问题 My spring (4.1.1) application is deployed on a JBoss-6.10-final instance, so it uses the container-based transaction manager and data sources. For messaging, I use TIBCO EMS 8.1 with an XA queue connection factory set up. The Java version is 1.8.0_20. All of this is running on my Ubuntu 14.04 laptop. I need to send a request via JMS and then wait for the reply. The bean I’m calling from has transaction propagation set to Propagation.REQUIRED, so I need to send the request in a new transaction

How can I allow multiple @JmsListener destinations for a single method

扶醉桌前 提交于 2020-07-23 09:49:05
问题 I'm currently working on migrating an IBM Webshere application to Spring Boot. As part of this there is an MDB class which needs to be converted into @JmsListener . This MDB has a single method that is listening to multiple queues. I would like to do the same using @JmsListener with multiple destinations. I saw this thread, but that's not working. This is the current MDB Configuration : Bean 1 <bean id="myAppabcResponseMDB" class="company.myApp.service.mdb.MyAppMessageListenerMDB"/> <bean id=

How can I allow multiple @JmsListener destinations for a single method

孤街醉人 提交于 2020-07-23 09:48:08
问题 I'm currently working on migrating an IBM Webshere application to Spring Boot. As part of this there is an MDB class which needs to be converted into @JmsListener . This MDB has a single method that is listening to multiple queues. I would like to do the same using @JmsListener with multiple destinations. I saw this thread, but that's not working. This is the current MDB Configuration : Bean 1 <bean id="myAppabcResponseMDB" class="company.myApp.service.mdb.MyAppMessageListenerMDB"/> <bean id=

How can I allow multiple @JmsListener destinations for a single method

↘锁芯ラ 提交于 2020-07-23 09:47:05
问题 I'm currently working on migrating an IBM Webshere application to Spring Boot. As part of this there is an MDB class which needs to be converted into @JmsListener . This MDB has a single method that is listening to multiple queues. I would like to do the same using @JmsListener with multiple destinations. I saw this thread, but that's not working. This is the current MDB Configuration : Bean 1 <bean id="myAppabcResponseMDB" class="company.myApp.service.mdb.MyAppMessageListenerMDB"/> <bean id=

Spring JMS : Set ErrorHandler for @JmsListener annotated method

ⅰ亾dé卋堺 提交于 2020-05-26 11:27:54
问题 I am using a @JmsListener annotated method listen to JMS messages as shown below. @JmsListener(destination="exampleQueue") public void fetch(@Payload String message){ process(message); } When this method execution result in an exception, I got a warn log Execution of JMS message listener failed, and no ErrorHandler has been set. How do I set an ErrorHandler to handle the case. I am using spring boot 1.3.3.RELEASE 回答1: While using annotations like @EnableJms , @JmsListener etc to work with

Spring JMS : Set ErrorHandler for @JmsListener annotated method

家住魔仙堡 提交于 2020-05-26 11:27:45
问题 I am using a @JmsListener annotated method listen to JMS messages as shown below. @JmsListener(destination="exampleQueue") public void fetch(@Payload String message){ process(message); } When this method execution result in an exception, I got a warn log Execution of JMS message listener failed, and no ErrorHandler has been set. How do I set an ErrorHandler to handle the case. I am using spring boot 1.3.3.RELEASE 回答1: While using annotations like @EnableJms , @JmsListener etc to work with