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
8
votes
3 answers

Start and Stop JMS Listener using Spring

So question is how to temporary stop and start a jms listener created using spring using the fallowing way :
jNayden
  • 1,592
  • 2
  • 17
  • 29
7
votes
1 answer

How to simulate message redelivery in AUTO_ACKNOWLEDGE JMS Session Scenario?

In the following test I'm trying to simulate the following scenario: A message queue is started. A consumer designed to fail during message processing is started. A message is produced. The consumer starts processing the message. During processing…
Vladimir Tsvetkov
  • 2,983
  • 3
  • 26
  • 36
7
votes
1 answer

Slow message consumption using AmazonSQSClient

So, i used concurrency in spring jms 50-100, allowing max connections upto 200. Everything is working as expected but if i try to retrieve 100k messages from queue, i mean there are 100k messages on my sqs and i reading them through the spring jms…
Tilak Raj
  • 1,369
  • 5
  • 31
  • 64
7
votes
0 answers

Failed to shut down 1 bean with phase value 2147483647 within timeout of 30000: [org.springframework.jms.config.internalJmsListenerEndpointRegistry]

I'm trying to shutdown a Java application which has 1 @JmsListener running. It doesn't matter how long I wait, but it will never stop. It eternally hangs on the doShutdown of DefaultMessageListenerContainer. The threadump…
Pieter
  • 3,339
  • 5
  • 30
  • 63
7
votes
1 answer

Listen to multiple IBM MQ using single spring boot application

I need to listen to multiple queues (exists in same Queue Manager). I have the working spring boot application code for listening to single queue. But is there any way I can connect to multiple queues from the single spring boot application? Also is…
Tarun Shedhani
  • 101
  • 2
  • 7
7
votes
3 answers

How to set ActiveMQ port in Spring Boot?

I have two Spring Boot applications running on one server. Both use embedded ActiveMQ JMS. I want to have separate JMS instance for each application. How could I set the port for each of them? Is there any property like spring.activemq.port? When I…
Igorock
  • 2,691
  • 6
  • 28
  • 39
7
votes
3 answers

How to disable transport.failover.FailoverTransport Successfully connected to tcp://localhost:61616 message

While subscribing message using DefaultJmsListenerContainerFactory in spring and camel using failover activemq transport I am continuously getting below INFO messages. 2016-08-25 15:00:07,235 [ActiveMQ Task-1] INFO …
bvyas
  • 384
  • 3
  • 10
7
votes
1 answer

What does a high Spring JMS DefaultMessageListenerContainer.receiveTimeout parameter mean?

I am getting into a project that implemented an IBM MQ listening Spring JMS application and I have troubles understanding the "receiveTimeout" in the DefaultMessageListenerContainer. Compared to sources from the internet I think my project is kind…
Invest
  • 545
  • 6
  • 9
7
votes
1 answer

Microservice Event driven Design with multiple Instances

At the Moment we design and plan to transform our system to a microservice architecture pattern. To loose coupling we think about an event driven design with an JMS Topic. This looks great. But i don't now how we can solve the problem with multiple…
Matthias
  • 1,378
  • 10
  • 23
7
votes
1 answer

Does Spring actually start a new transaction with REQUIRES_NEW?

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…
Johan
  • 73
  • 5
7
votes
2 answers

Spring JMS - Exponential message re-delivery policy is ignored

We're trying to set a re-delivery policy for ActiveMQ using spring jms. We've set an exponential back-off for the re-deliveries, but it seems to be ignored - the intervals between the message re-deliveries are fixed instead of exponentially…
Ayelet
  • 1,713
  • 9
  • 29
  • 43
7
votes
1 answer

DefaultMessageListenerContainer not receiving messages

I have a DefaultMessageListenerContainer configured as follows: DefaultMessageListenerContainer container = new…
Colin M
  • 13,010
  • 3
  • 38
  • 58
7
votes
4 answers

Spring JMS and Websphere MQ

hi I am new to Spring JMS and websphere MQ. Can Any one give me step by step processs or example how to receive message from websphere MQ and be able to print that message in console thanks u very much for your help
nepJava
  • 81
  • 1
  • 1
  • 4
7
votes
1 answer

DefaultMessageListenerContainer not scaling

I have a DefaultMessageListenerContainer, which is (in my opinion) not scaling up. The Container is defined to listen on a queue, where 100 messages are located in. I would expect, that the Container is going to any lengths, that the messages would…
maxstreifeneder
  • 625
  • 1
  • 8
  • 19
6
votes
2 answers

Activemq vs rabbitmq

I have read a few discussions and forums but still fail to understand which one is better rabbitmq vs activemq. I have heard the delay in rabbitmq is more because all traffic is first diverted to a central node. It would be good if someone can point…
sirajnadwar
  • 237
  • 2
  • 6
  • 13