Questions tagged [spring-jms]

Spring provides a JMS integration framework that simplifies the use of the JMS API much like Spring's integration does for the JDBC API.

JMS can be roughly divided into two areas of functionality, namely the production and consumption of messages. The JmsTemplate class is used for message production and synchronous message reception. For asynchronous reception similar to Java EE’s message-driven bean style, Spring provides a number of message listener containers that are used to create Message-Driven POJOs (MDPs).

A getting started guide is available to help understand how these concepts work with a practical example.

Useful links:

1908 questions
0
votes
1 answer

Atomikos transaction issue with JMS listener and Oracle datasource - XID raised -4: the supplied XID is invalid for this XA resource

I have a web application gathering data from MQ and persist in database. Using spring JMS listener container for reading messages from MQ, and using hibernate template to persist those messages on a XA Oracle datasource. I am englobing transactions…
Özgün
  • 318
  • 3
  • 11
0
votes
0 answers

Log flood with Artemis Topic and WildFly

I have a Spring application deployed on WildFly 12, with a JMS listener: @Component public class Service { @JmsListener(destination = "my-topic") public void myTopicListener(Message myTopicMessage) { } } which works okay: whenever I…
Giovanni Lovato
  • 2,183
  • 2
  • 29
  • 53
0
votes
1 answer

How to mock connection factory in spring integration

I would like to mock the JMS connection factory to do integration testing. when (?) we use websphere server, and for intyegration testing need to use tomcat. Spring…
Kris Swat
  • 788
  • 1
  • 10
  • 39
0
votes
1 answer

Spring integration JMS IBM mq configuration to read message from one queue and send it to six different queue

Hi I am new to Spring integration. I want to write code from scratch to read message from one JMS queue and send it to seven different queue. I need to use IBM Mq. Can anyone share the sample code with me. I have written below xml. I have created…
Prashant T
  • 1
  • 1
  • 3
0
votes
2 answers

How to stop HornetQ from attempting re-delivery

I have a java client that processes messages from HornetQ. The processing may fail due to temporary network problems, which I handle by throwing an exception and configuring the queue to attempt re-delivery. However, processing may fail due to other…
BillyBadBoy
  • 552
  • 3
  • 18
0
votes
1 answer

Create a JMS message as JSON

Is there a way I can build the JMS message as JSON type. I need to create a JSON message for testing. There are a lot of attributes so i don't want to set them individually and create object and then convert it to JSON. Any other way (say) I read…
Megan
  • 876
  • 2
  • 10
  • 20
0
votes
1 answer

Solace - Spring integration slowness

We are using solace as message bus between modules and subsystems. Our application is built on Spring Boot and Spring integrations(message-driven-channel-adapter, DefaultMessageListenerContainer, CachingConnectionFactory). We are observing random…
0
votes
0 answers

Spring integration jms:message-driven-channel-adapter message is not deleted from Qpid queue

I have a spring integration project. Which reads message from the qpid queue and starts some processing. To mu understanding once message is read it should be cleared from the queue. But Even after the processing is complete. The message stays in…
0
votes
1 answer

Spring Boot + Atomikos: Exception thrown in a transactional JMS listener inside try-catch immediately causes rollback

I'm using Spring Boot 1.5.3 and Atomikos 4.0.6. I have a DefaultMessageListenerContainer setup to listen a JMS queue and handle incoming messages in a transaction using the Spring JTATransactionManager configured to use Atomikos. The message handler…
0
votes
1 answer

Spring JMSTemplate UncategorizedJmsException with ArtemisMQ

It works normal long time before. this error just happens when I try to loop 10000 items and send one-by-one to jms queue. I am getting the following error when trying to send message to my JMS…
m.nguyencntt
  • 935
  • 13
  • 19
0
votes
2 answers

Solace JMS Consumer stopped after reconnect

I use solace as a JMS provider in my project. I use spring CachingConnectionFactory to retrieve Connection. On that connection I create new session. I have thread with one Consumer created on that session. @Autowired CachingConnectionFactory…
0
votes
1 answer

How to send and receive data model object through Spring Integration message payload?

I am trying to send a data model Java object to a Spring Integration Message Channel. I have a jms outbound channel adapter. Here is my Java code. But it does not work. @Autowired MessageChannel outputChannel; @Override public void…
0
votes
1 answer

spring jms global ErrorHandler not working

MyProjectJmsListenerContainerFactory class: @Configuration public class MyProjectJmsListenerContainerFactory { @Bean public JmsListenerContainerFactory myFactory( ConnectionFactory connectionFactory, …
Vasu
  • 21,832
  • 11
  • 51
  • 67
0
votes
1 answer

Spring JMS - activemq - individualDLQ not used

I'm trying to set up spring JMS for activemq, and I'd like individual DLQs for easier monitoring rather than everything being lumped on one DLQ. However my bean for this doesn't seem to be picked up. Could anyone point me out what I'm doing wrong as…
Kristof Plennings
  • 469
  • 1
  • 6
  • 17
0
votes
1 answer

spring integration with multiple defaultmessagelistenercontainer (with transactionManager) and multiple and

I have a spring integration application with a requirement of 2 DefaultMessageListenerContainer (with transactionManager) and 2 jms:outbound-channel-adapter. I have configured each listener container with "property name="connectionFactory"…