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
9
votes
2 answers

Spring JMS listener acknowledging even when exception

I am using JMS to send/receive messages to my SQS queue, however i am unable to redeliver the message when there is an exception even while using client_acknowledge. How to achieve this? I tried a simple test, @JmsListener(destination =…
Bhargav
  • 697
  • 3
  • 11
  • 29
9
votes
2 answers

How to migrate Spring Boot JMS from ActiveMQ to Oracle Advanced Queueing

I'm studying the Spring Boot and JMS example and yes, I'm rather new on this Since we work with Oracle, I would like to migrate the Spring Boot & JMS example from ActiveMQ to Oracle Advanced Queueing. However I really find very little information on…
dhmc
  • 193
  • 1
  • 15
9
votes
2 answers

How to handle Activemq's max frame size exception with failover transport

I am developing an application that uses activemq to exchange messages, some so big that I want to cancel then. We work with the activemq failover transport with two ActiveMQ instances (master/slave). The broker itself has the 100mb framesize limit…
Raphael do Vale
  • 931
  • 2
  • 11
  • 28
9
votes
2 answers

What is a JmsTemplate callback in Spring JMS?

this is my first time with Spring JMS (and with JMS in general) and I have some doubts related the concept of the JmsTemplate callback. I know that the JmsTemplate is a class provided from Spring to: Reduces boilerplate code. Manages resources…
Java Surfer
  • 613
  • 3
  • 9
  • 13
9
votes
1 answer

Spring as Broker Relay by using an external Message Broker

I would like to use Spring Messaging to create a real time notification system for logged users for my webapp. I defined a AbstractWebSocketMessageBrokerConfigurer as follows: @Override public void registerStompEndpoints(StompEndpointRegistry…
vdenotaris
  • 13,297
  • 26
  • 81
  • 132
9
votes
2 answers

Consumer is not receiving messages from ActiveMQ

We are facing a random issue with ActiveMQ and its consumers. We observe that, few consumers are not receiving messages, even though they are connected to ActiveMQ queue. But it works fine after the consumer restart. We have a queue named testQueue…
Manohar
  • 653
  • 1
  • 10
  • 15
8
votes
1 answer

Does annotating a bean @DependsOn mean the dependent bean will be instantiated or initialized?

I am using Spring 3.0.2. I have two relatively simple bean definitions. One has a @PostConstruct (bean 'A') which triggers a chain of events that the @DependsOn bean (bean 'B') needs to be prepared for. However, it seems even though that I stated…
user130532
8
votes
1 answer

SpringBoot JMS Listener: Could not refresh JMS Connection for destination

I have Spring Boot application which listen IBM MQ Queue via @JmsListener annotation as below from component class. The MQ properties (hostname, channel, port, etc) are set from yaml file. @JmsListener(destination = "") public void…
8
votes
3 answers

Not able to get response from IBM MQ using JMS application

We communicate with the third party using IBM MQ in request/reply fashion. We send them request and they give us reply. Current we both have a simple java based native IBM MQ application. We are planning to rewrite our code using spring jms. But we…
Dev Shenoy
  • 81
  • 1
  • 4
8
votes
1 answer

How to send header message in JmsTemplate?

I am trying to insert message header into amq. There is no specific method in JMSTemplate for setting header in amq. when I set like this it will save in StringProperty instead of header. For saving into header how to pass data …
sudar
  • 1,446
  • 2
  • 14
  • 26
8
votes
1 answer

DefaultJmsListenerContainerFactory vs DefaultMessageListenerContainer

What are the advantages of using DefaultJmsListenerContainerFactory over DefaultMessageListenerContainer ? If i configure DMLC directly , i do get a handle to check the status by calling isRunning(). Also i do get a facility to start and stop the…
user3534483
  • 2,133
  • 5
  • 22
  • 19
8
votes
1 answer

Transaction Management in Spring JMS listener

I have a spring JMS listener which is listening to queue . Once the message arrives at the input queue , it does certain processing on the message and puts the messages to multiple other queues for further processing (we may call these other queues…
KBR
  • 464
  • 1
  • 7
  • 24
8
votes
1 answer

Spring 4 CachingConnectionFactory with JMS 2.0 doesn't properly cache Producers

We just upgraded to Spring 4 and JMS 2.0. We are using a CachingConnectionFactory and a JmsTemplate to publish messages and noticed that when publishing to a destination, the first attempt works and then further attempts to publish to the same…
cshannon
  • 296
  • 1
  • 9
8
votes
3 answers

How to add multiple JMS MessageListners in a single MessageListenerContainer for Spring Java Config

I had the following xml code in my spring-config.xml
Sandhu Santhakumar
  • 1,678
  • 1
  • 13
  • 24
8
votes
4 answers

Setup of JMS message listener invoker failed for destination trying to recover

While running integration tests in my application, I get below error messages in the failsafe test report for one of my integration test: listener.DefaultMessageListenerContainer,WARN,Setup of JMS message listener invoker failed for destination…
EmeraldTablet
  • 812
  • 3
  • 12
  • 30