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

DLQ messages out of order

I have 2 ActiveMQ JMS consumer queues consumer1 and consumer2. Dead letter queues are enabled for both queues mainly for avoiding poison messages continuous retry. Issue is now consumer2 messages should be processed in order. Where as messages going…
Ramden
  • 87
  • 2
  • 10
0
votes
1 answer

Repeat scheduling a message for delivery ActiveMQ using jmsTemplate (Spring JMS)

I am sending message to the queue in the following manner: I want to schedule repeat my message. I mean, whatever message my this line jsmClient.send(identifier); in the controller(shown below) is sending, I want to keep on sending, say for 10 or…
John
  • 1,210
  • 5
  • 23
  • 51
0
votes
1 answer

How to initialise a JmsListener in spring boot based on a flag getting set at app startup

Need to initialise a listener only if it required to, based on a flag which is set at app startup from external source and not from application.properties. class PropertyClass { boolean flag; .. getters setters .. } @Configuration class…
pvjhs
  • 549
  • 1
  • 9
  • 24
0
votes
1 answer

How to filter JMS message using selector in receiver class

I want to consume a message from the queue which is present more than 3 minutes in the queue. Below is my class for consuming. How to define the condition in the selector. @Async @JmsListener(destination = "jms/xyz" ,containerFactory = "xyzfactory",…
ak2020
  • 85
  • 2
  • 10
0
votes
0 answers

Store the message which is received/sent to the queue using JmsListener

Is there any way to put interceptor in jms listener..requirement is to store the request and response while reading and writing to message queue @JmsListener(destination = "${ibm.mq.queueName}", containerFactory = "containerFactory") public void…
hello1693
  • 99
  • 3
  • 12
0
votes
2 answers

In Springboot microservices api, how to call a another server using AMQP queue, get response from the another service queue, send the response

We are writing the micro-services platform. We have a server A written in spring boot which is exposing API to the outside world. We have another spring-boot microservice B which needs to be called from A. Example: We are having an endpoint…
0
votes
0 answers

Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException : Application deployed on weblogic server

I am facing following exception in my project which is deployed on weblogic server Failed to convert property value of type 'javax.naming.Reference' to required type 'javax.jms.ConnectionFactory' for property 'targetConnectionFactory'; nested…
Pawan Patil
  • 1,067
  • 5
  • 20
  • 46
0
votes
1 answer

Spring jmsTemplate.setReceiveTimeout has no effect on jmsTemplate.convertAndSend()

We use JmsTemplate and setting the receiveTimeout has no effect. Need help please. @Bean public JmsTemplate xyz(){ JmsTemplate jmsTemplate = new JmsTemplate(); template.setReceiveTimeout(1); return…
Srikanth
  • 19
  • 3
0
votes
1 answer

Springjmslistner - Max number of Redeliver in CLIENT_ACKNOWLEDGE mode

I would like to understand what is the maximum number of re-deliver in CLIENT_ACKNOWLEDGE if you are not doing the acknowledgment. Do we have any maximum number configured, if so what is that property and can we override it? If we don't have any…
TikTik
  • 347
  • 2
  • 8
  • 22
0
votes
1 answer

JmsItemReader - Does it perform the function of JMSReceiver?

I've defined a JMSReader as part of my Spring Batch Job (spring Boot) and have disabled the automatic job triggering. My requirement is to kick the job off when a message is received. Does the JMSReader bean perform the JMS receiving as well or…
Surya
  • 11
  • 1
0
votes
1 answer

Migration Of Spring Partition Batch Jobs From Spring Batch 2.2 to Spring Batch 4.02

I am migration spring batch partition jobs (XML configuration) from Spring Batch 2.2.7 / Spring 3.2 to Spring Batch 4.0.2 / Spring 5.0.12. The war file is deployed on Wildfly 11 with ActiveMQ Artemis. The overall approach uses x clustered…
0
votes
1 answer

Ways to get maximum size of a queue through JMS

I am using Spring and have 2 MQQueues. I need to check the maximum capacity using only JMS. In other words lets say someone configured 1 MQQueue to have maximum capacity of 4000 message, I need to be able to check that configuration. Is it possible…
linkrok
  • 65
  • 7
0
votes
1 answer

JMSTemplate with multiple brokers. Destination resolving exception

I have problem which I am trying solve all day, without success... I have an application which trying to send/receive messages to/from external system A and external system B. A and B it is WLS based external systems. While my application is coming…
liotur
  • 809
  • 2
  • 17
  • 36
0
votes
1 answer

Spring Access JMS on remote server

I have a Maven Spring 4 application that I run on a local Jetty Server at http://localhost:9292. I also have a JBoss EAP server running at http://localhost:9990, on which I created a JMS topic. But I don't know how to access the JMS elements from my…
Kris
  • 401
  • 2
  • 7
  • 16
0
votes
0 answers

Multiple DefaultMessageListenerContainer for external systems

I have my application that should communicate with two external systems A and B. So I am creating actually 2 containers like this: private DefaultMessageListenerContainer createContainer(Conf conf) { DefaultMessageListenerContainer jmsCnr= new…
liotur
  • 809
  • 2
  • 17
  • 36