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

JMS Queues: Re-inserting a message vs Rolling Back

I have a JMS consumer that processes transactions against a third-party service. When there is an exception calling this third party service e.g a java.net.ConnectException. I would like this message to be redelivered by the queue. Redelivering can…
F.O.O
  • 4,730
  • 4
  • 24
  • 34
0
votes
1 answer

Spring integration recipient-list-router issue

I am using a recipient-list-router in my application to send message to different JMS outbound adapters as shown here: queue -> recipient-list-router -> queue1 -> JMS outbound adapter 1 -> queue2 -> JMS outbound…
0
votes
1 answer

Spring Boot JTA with Artemis Issue

I am trying to use XA Connection of Apache ActiveMQ Artemis for JMS with Spring Boot. My relevant config looks like this: spring: artemis: host: localhost mode: native jta: bitronix: tm: serverId: spring-btm …
samyem
  • 437
  • 5
  • 16
0
votes
1 answer

Spring JMS: how intercept the result JSON transformation when a Java object is sent and received?

I have a Spring App working with JMS (ActiveMQ) and sending two types of messages. Java objects that implements Serializable json About the latter messaging approach, the sender/receiver work with a MessageConverter configured for json Until…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
0
votes
1 answer

Spring jms. How to not cache connection. Failover test

I need to do some failover test in my app that uses spring JMS. I want to simulate broken TCP connection. Spring framework has two implementations of ConnectionFactory interface (SingleConnectionFactory and CachingConnectionFactory) and both of them…
0
votes
0 answers

Spring guide example for messaging with JMS failing

I have implemented the example for messaging with JMS using Spring's JMSTemplate as it is. https://github.com/spring-guides/gs-messaging-jms/tree/master/complete But getting following error. Please clarify. pom.xml
Omkar Shetkar
  • 3,488
  • 5
  • 35
  • 50
0
votes
2 answers

Spring JMSTemplate, unsent messages when connection refused

I facing problems with my JMS environment. I created a JMSTemplate, and it uses a ActiveMQSslConnectionFactory (for security purposes). Sometimes my server can be offline, or the host can be unreachable. In this cases my JMSTemplate cannot connect…
Beto Neto
  • 3,962
  • 7
  • 47
  • 81
0
votes
0 answers

JMS1.x subscribers/clients in a Websphere clustered environment picking the same TOPIC

Multiple instances of my subscriber/client application are running in a clustered environment and all of them start picking up the same TOPIC. Is there a way to restrict the subscribers to stop picking the TOPIC which has already been picked by some…
user3007165
  • 459
  • 1
  • 5
  • 14
0
votes
0 answers

Spring-boot No thread-bound request found when throw exception on JMS queue listener

I am trying to consume an AWS queue using Spring boot with JMS, and I am having a problem throwing exceptions in my consumer method. Every time I try to throw a custom exception in my consumer method, to log into an Aspect, the following message is…
Bruno César
  • 81
  • 1
  • 13
0
votes
1 answer

Spring Messaging JMS reply interceptor

I have a @JmsListener method that receives a parameter and returns an object instance, all of that working with XML and the JAXB marshalling. @JmsListener( containerFactory = ..., destination = ..., selector = ... ) public…
0
votes
1 answer

Spring Boot JMS MarshallingMessageConverter in replies

I've a JMS listener similar to the one done here: Synchronous Message send and receive using JMS template and Spring Boot It receives a XML payload. But different from that one, I want to also return a reply. If I return a String, it works ok, but…
0
votes
1 answer

Is it possible to get the delivery status of a specific message in ActiveMQ?

I want to be able to know the status of all messages that I sent. Is that possible in ActiveMQ? If so, how can I get a sent message by its ID and check whether it was received or not?
Ouissal
  • 1,519
  • 2
  • 18
  • 36
0
votes
1 answer

Spring Integration JMS assured message delivery using DSL

I am trying to create a flow(1) in which message is received from TCP adapter which can be client or server and it sends the message to ActiveMQ broker. My another flow(2) pick the message from required queue and send to the…
0
votes
1 answer

Jaxb2Marshaller how it holds JAXBContext

I use MarshallingMessageConverter as implementation of MessageConverter bean. I'm using Jaxb2Marshaller as an implementation of org.springframework.oxm.Marshallerclass. I set classes to be bound in this way: marshaller.setClassesToBeBound(new…
Abzelhan
  • 510
  • 1
  • 7
  • 26
0
votes
1 answer

Deferred consumption of message queue

Sorry this might sound naive to JMS gurus, but still. I have a requirement where a Spring based application is not able to connect synchronously to a SAP back-end (via their web-service interface) because the response from SAP is way too slow. We…
Dchucks
  • 1,189
  • 5
  • 22
  • 48