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

How to implement the JMS Inbound & Outbound configuration in separate spring integration application?

My use case is notification service implementation in our project. We have used spring with jms and its working fine with rest services. Able to send message to queue from one application and receive a message from queue in another application using…
0
votes
1 answer

How to send message to ServiceBus with the use of AmqpTemplate?

I need to send message to ServiceBus with custom message header properties like ContentType, Message ID, etc. I am thinking to use Spring AmqpTemplate for sending message which will provide facility to set message header. I have not found SDK for…
Abhishek Kumar
  • 435
  • 1
  • 6
  • 16
0
votes
1 answer

SimpleMessageConverter converts ConcurrentHashMap to HashMap

I create an integration message with concurrenthashmap payload as following return MessageBuilder.createMessage(emvMessage.getResponse(), headers); where emvMessage.getResponse() method returns public ConcurrentHashMap
0
votes
1 answer

How to set Durable Subscriber in DefaultMessageListenerContainer in spring?

Producer of the message is not sending message as persistent and when i am trying to consume the message through MessageListener, and any exception(runtime) occurs, it retries for specific number of times (default is 6 from AMQ side) and message get…
Neer1009
  • 304
  • 1
  • 5
  • 18
0
votes
1 answer

How to let Spring manage my DLQ JMS connections

I am using a DLQ listener to be invoked every minute via Spring scheduling as follows. @Scheduled(fixedDelay=60000) public void retryQueue() { ConnectionFactory cf = new ActiveMQConnectionFactory(uname, pwd, brokerName); Connection…
station
  • 6,715
  • 14
  • 55
  • 89
0
votes
1 answer

Keeping JMS session always active

We need know how to make Jms queue always active. and whenever the request received to JMS queue should pick the message. if tomcat server is idle some time no request are received on jms queue for specific time or day, then next day or after some…
0
votes
1 answer

How to handle JmsException /How do I set the redeliveryPolicy in ActiveMQ?

Let see one scenario is there when jms send message to consumer and we have to save that to db,but when db is down we cant able to save that to db due to db server is down.So how to acknowledge jms to send message again?
0
votes
1 answer

Spring JMS load balancing with one Producer and one Concumer

I have researched so long regarding JMS load balancing. We can create multiple producer and mulitple consumer for load balancing JMS messages. But I want to understand, how we can load balance JMS messages with one producer and one consumer. I can…
Sarvesh
  • 551
  • 1
  • 10
  • 25
0
votes
1 answer

Spring boot with JMS (ActiveMQ) queue persistence in Mongo DB

How can I configure a Spring boot application to persist the JMS Queue messages in a MongoDB ?
Beto Neto
  • 3,962
  • 7
  • 47
  • 81
0
votes
1 answer

Doesn't work rollback() in SessionAwareMessageListener

Even though the message is received by the MessageListener, I don't want to remove from the Queue, I want to do some processing in onMessage method and based on the result: I want to commit(); for Success - so the message will be completely removed…
makson
  • 1,975
  • 3
  • 23
  • 31
0
votes
2 answers

JMS Unable To Receive Because Send Transaction Not Commited

I have two applications Apple and Pear that uses the above class to listen on a configured JMS queue in WildFly ( 10.1.0 ). The Spring configuration is shown below.
Pete Long
  • 107
  • 2
  • 11
0
votes
1 answer

Why SimpleJmsListenerContainerFactory did NOT provide concurrency config?

We can see SimpleMessageListenerContainer has property named concurrentConsumers, but SimpleJmsListenerContainerFactory did NOT support to config it. What's the root cause? Do not recommend to use concurrency for SimpleMessageListenerContainer ?
Emman Sun
  • 351
  • 3
  • 15
0
votes
1 answer

How to start activemq in Unix at Application startup

I would like to start ActiveMQ when my Unix server gets started. I am using the following the config Broker URI : tcp://localhost:61616 Above ActiveMQ server will get started when I run ActiveMQ start command from UNIX terminal but I want to start…
user9554301
0
votes
0 answers

Using a Connection Name List in a JMS Load Balanced Environment

Our JMS infrastructure is load balanced. As a result of this, I am attempting to use a connectionNameList when configuring the connection factory. The idea here is that any JMS message that arrives on either of the primary or secondary queue manager…
Dan DaLuga
  • 85
  • 2
  • 10
0
votes
1 answer

Setting DeliveryMode for Spring JmsListener

I am using Spring JMS and have a @JmsListener annotated method that handles incoming messages and also responds to them. The issue is that I need to set the delivery mode to NON_PERSISTENT and the default of the used IBM MQ library is PERSISTENT…
chris922
  • 346
  • 3
  • 9