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 send messages back from ServiceActivator to Queue in Spring integration

Hi i have a requirement to launch the spring batch job when there is a message in to the queue and once processing done i need to return some message back to Queue . I am using Spring integration and in Service activator i am able to receive the…
user5771310
0
votes
1 answer

In Spring Boot, How do I declare that my JMS server is embedded?

The Spring Boot documentation has this very brief illustration of an embedded JMS server: "Two beans that you don’t see defined are JmsTemplate and ConnectionFactory. These are created automatically by Spring Boot. In this case, the ActiveMQ broker…
MiguelMunoz
  • 4,548
  • 3
  • 34
  • 51
0
votes
1 answer

How to build and deploy Spring Boot no-web app to TomEE?

I have a simple Spring Boot JMS app like this. It have no web-layer and I don't want to add web layer to that app. It should be just one JMS microservice, hidden from web. But I want to run it inside TomEE (as EJB or something). How can I do it?
Ivan Zelenskyy
  • 659
  • 9
  • 26
0
votes
1 answer

ActiveMQ broker redelivery and DLQ not woking

I have setting configuration in conf/activemq.xml about Redelivery and DLQ handling like this https://activemq.apache.org/message-redelivery-and-dlq-handling.html But when I try to throw exception to see that will it work. It not work even send to…
Tanakorn C.
  • 19
  • 1
  • 1
  • 5
0
votes
0 answers

multiple Spring integration task executors picking up same message from JMS queue

I am using spring integration to process multiple files from a queue. Following is my configuration:
Vrishank
  • 302
  • 4
  • 22
0
votes
1 answer

JMS Commit between the routes - I want to commit the transaction between the routes in Camel

I am using JMS Transaction in camel I have two routes from("jms:queue:test).process(new Processor(Exchange exchange){ //place the message to hdfs //using hadoop fs api }).to("direct:ssh") from("direct:ssh").to(sshCommand) what I want is…
Aman
  • 226
  • 1
  • 4
  • 17
0
votes
1 answer

how to define two different connection factory in a single configuration

i have a use case where i need to use either rabbitmq or ibm mq middlewares based on some routing rules, i am using Java based configuration. Here is my rabbitmq beans, how do i define similar for IBM MQ? @Bean @ServiceActivator(inputChannel =…
0
votes
1 answer

Acknowledge AMQ from Camel after HTTP request

I am using Apache camel for routing between ActiveMQ and camel HTTP endpoints. The route is defined in such a way that take data from camel-cxf webservice to the ActiveMQ and post these data to a tomcat which is a HTTP endpoint then once the http…
Gautam
  • 238
  • 6
  • 17
0
votes
1 answer

Spring integration multithreading

Referring to my earlier question at URL - Spring integration multithreading requirement - I think I may have figured out the root cause of the issue. My requirement in brief - Poll the database after a fixed delay of 1 sec and then publish very…
0
votes
1 answer

Spring integration error:- org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel while connecting to MQ

I am trying to use Spring integration to connect to JMS client , but i am getting :- [WARN ] 2018-08-22 10:57:20.378 [DispatchThread: [com.ibm.mq.jmqi.remote.impl.RemoteSession[connectionId=414D514353414D5030303144202020206CF77A5B9E4A5E21]]]…
user5771310
0
votes
0 answers

Delay in send Message method in JMSTemplate at createMessage

I am newbie to MQ, We are usgin spring boot with JMS + IBM MQ Framework. We are facing a very random issue where there is 5 - 15 min delay to execute send method of jmsQueueTemplate as below. Random delay is Between //POINT 1 and //POINT 2 try { …
sunil
  • 177
  • 2
  • 12
0
votes
1 answer

Auditing dead letter queue messages use Apache camel or not

I have been reading on JMS, ActiveMQ and Camel. From my understanding, if we need to integrate multiple system where integration involves only routing of messages in same format, activeMQ is sufficient else we can opt for camel. Now incase of…
Gautam Tadigoppula
  • 932
  • 11
  • 13
0
votes
1 answer

JMSTemplate doesn't receive the String I sent right before?

I have a JMSTemplate jmsT. To test it out, my only two lines of code are: jmsT.convertAndSend("Location", "Message"); jmsT.receiveAndConvert("Location"); The code stalls at receiveAndConvert, waiting forever to receive a message as if it doesn't…
adisplayname
  • 117
  • 1
  • 10
0
votes
1 answer

org.springframework.messaging.converter.MessageConversionException: Cannot convert

We have an application using Spring Boot and Tibco EMS JMS implementations. When I create the war and deploy on my local Tomcat, I can send and receive the messages with no issues. However, if I run the application from main()…
blueSky
  • 649
  • 5
  • 13
  • 31
0
votes
0 answers

JAVA Spring batch - JmsItemReader

I am working on a Spring Batch application, I have to receive a JMS file and read it (the JMS queue contains a JSON message), then convert the message into a POJO arrayList . I want to use the JmsItemReader with a MappingJackson2MessageConverter,…