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

Send multiple jms messages in a single transaction

Instead of sending single message in a transaction: jmsTemplate.convertAndSend(message); How can I send multiple jms messages in a single transaction? Is there an example I can loot at?
breaktop
  • 1,899
  • 4
  • 37
  • 58
0
votes
0 answers

spring integration with while processing concurrent requests: session closed issue

We are using below mentioned spring integration jms inbound gateway to listen and read message from mq, processing same, and responding back to replyTo mq. However, we have been observing Session Close exceptions while processing concurrent…
0
votes
1 answer

Getting a warning/error when connecting to queue deployed on JBoss EAP 7.1 from Spring-Boot app

I have deployed an activemq queue(QueueA) on JBoss EAP 7.1 server running on my local machine. I have a Spring-Boot app which is also running on the same machine and having a listener for this queue which implements "MessageListener". I have used…
Spartan
  • 45
  • 1
  • 7
0
votes
1 answer

Can I configure Spring JMS to send custom errors to a queue/topic?

I have a Spring JMS project and I need to catch certain types of Exceptions, convert them to an Error object, and then send them to a custom destination. I could use a try/catch as shown below and this should work, but I would like to know if there…
JCB
  • 341
  • 5
  • 18
0
votes
1 answer

Load Balancing Client Sessions

I have a 2 server ActiveMQ Artemis cluster setup with discovery using JGroups working correctly. Then in my applications the ConnectionFactory is created via the ActiveMQJMSClient: final ActiveMQConnectionFactory cf =…
Samyel
  • 139
  • 5
0
votes
0 answers

org.springframework.expression.spel.spelevaluationexception EL1008e property or field ‘queueManager ’can not be found

I am trying to create a MQConnectionFactory using @ Bean annotation which is invoked by SpringBootApplication. Below is the exception stack. `Startup failed ’org.springframework.beans.factory.config.BeanExpressionException’ expression parsing fail…
0
votes
2 answers

Sleuth Brave headers are not compatible with JMS spec

I am using Sleuth in Spring Integration project to pass along tracing headers across JMS messages. IBM MQ is used for Queue Manager. This configuration is working all fine functionally. However, all the Brave header X-B3-* are not compatible with…
CoderTR
  • 500
  • 3
  • 7
  • 19
0
votes
1 answer

Disable automatic reply in Spring JMS

According to Spring reference documentation, method annotated with @JmsListener and have a non-void return type will have the result of the invocation encapsulated in a javax.jms.Message and sent either in the destination specified in the JMSReplyTo…
Marouane Lakhal
  • 774
  • 1
  • 15
  • 42
0
votes
1 answer

java.lang.NoClassDefFoundError when sending to oracle aq

I am getting the following exception in my Spring application: Exception in thread "Thread-0" Exception in thread "Thread-1" java.lang.NoClassDefFoundError: javax/transaction/Transaction at oracle.jms.AQjmsSession.(AQjmsSession.java:364) …
M06H
  • 1,675
  • 3
  • 36
  • 76
0
votes
1 answer

Binders for @JmsListener

I am using a @JmsListener annotated method listen to JMS messages as shown below. @JmsListener(destination = "Queue") public void handleMessage(String message) {//implicit message type conversion System.out.println("received: "+message); } How…
0
votes
1 answer

Spring JMS onException retry

i have a requirement where i need to send a email but if the email server is down or any error occurs while sending a email that need to be retry for a specific number of times below is my bean properties @Bean(destroyMethod = "") public…
user2567005
  • 271
  • 1
  • 13
  • 27
0
votes
0 answers

DefaultMessageListenerContainer not receiving all messages from ActiveMQ queue

ActiveMQ/Spring experts, I am running into a very strange problem with ActiveMQ and DefaultMessageListenerContainer/SimpleMessageListenerContainer combination. We have a web application built using Spring (we are at 4.x). One of the transactions is…
Roger
  • 1
  • 2
0
votes
1 answer

Tomcat failing to communicate with Artemis MQ

I wanted to schedule a message delay using JMS. For that I'm using JMS 2.0 with Artemis MQ and the message is scheduled successfully in compile time but when I deploy it in Tomcat and try to send the message with a delay it…
neaGaze
  • 1,381
  • 22
  • 28
0
votes
0 answers

Apache Artemis - Messages from same group-id are received by multiple consumers

I have two deployed apps, one on my local machine and one on the server. Both apps are communicating through the same Artemis client, which is installed on the server. Artemis version is 1.5.5. The problem occurs when I execute a simple test that…
OGI
  • 179
  • 1
  • 1
  • 9
0
votes
0 answers

Why selector is not working for different jms listeners in spring

I am using spring jms listener to consume messages here is my sample code:
Dharisi Suresh
  • 150
  • 2
  • 14