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

How to improve message processing with large queues?

I am trying to use Spring JMS and ActiveMQ to process a large number of messages. The context of the problem is the following: Each customer produces a set of messages that are added to the queue. The messages are added to the queue with the…
ljl97114
  • 35
  • 8
0
votes
1 answer

Bean definition example for JndiDestinationResolver using jndi look up

I'm working on sending and receiving messages to/from an IBM MQ queue using JmsTemplate. My application is installed on a WebSphere application server 8.0 and, in order to retrieve the connection, I use a jndi lookup. I have 6 queues from where I…
Nik
  • 5
  • 1
  • 3
0
votes
2 answers

Spring boot JMS Listener - org.springframework.jms.config.JmsListenerEndpointRegistry.isAutoStartup()Z

I have setup a JmsListener to read messages from a sqs queue. Firtsly i created a configuration class like below to setup a ConnectionFactory and JMSTemplate @Configuration @EnableJms public class SQSJmsConfig { private AWSCredentialsProvider…
Anas
  • 173
  • 1
  • 4
  • 20
0
votes
0 answers

Is it possible to do a multipriority consumer in ActiveMQ JMS?

Background I'm running a processing server which uses ActiveMQ to hold a job queue. When running, I'd like to have a worker continue to run jobs same type of job (it's cheap to stay at a type, but expensive to switch), but switch types if jobs of…
RyanD
  • 116
  • 1
  • 4
0
votes
1 answer

Consuming messages from MQ and merging in Spring JMS

I use spring + MQ + Websphere Application server. I want to consume messages from MQ asynchronously and combine the messages to have the List of messages to be easy to persist N number of Entities to Database in every single commit. (without…
0
votes
1 answer

Disable JMS for profile

In Springboot 2 I can do something like this to disable the embedded servlet container: spring: main: web-application-type: none Now I am looking for a similar setting to disable JMS. Currently I am using a profile, something like…
KIC
  • 5,887
  • 7
  • 58
  • 98
0
votes
0 answers

How to run kafka listener and jms listener parallely in spring boot

In my application i have @kafkalistener and @jmslistener in diff class , when i run my program jms listener consuming the data first, i want do run parallely. @KafkaListener(topics = "topicName", groupId = "foo") public void listen(String message)…
tisispa1
  • 203
  • 2
  • 3
  • 16
0
votes
1 answer

JmsTemplate.convertAndSend throws Uncategorized exception - ActiveMQ SpringBoot configuration

I believe that i messed up with configuration but I cannot get where and how to fix it. Here you can find code. org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is…
Ann
  • 57
  • 3
  • 9
0
votes
1 answer

apache active mq the message is dequed but method with @JmsListener is not called

I am facing one problem where the message in Acpache ActiveMQ is dequeued in the console but the consumer method is not called which has @JmsListener, though the number of consumers shows 7. Configuration code: @Configuration @EnableJms public class…
kapil gupta
  • 335
  • 3
  • 19
0
votes
1 answer

Weblogic and Spring JMS configuration throws java.lang.IllegalStateException

Converting EJB MDB application to Spring base JMS service. JMS Queue configuration is in Weblogic server. Have following in configuration in applicationContext XML file.
Smruti
  • 1
  • 2
0
votes
1 answer

TypeMismatchNamingException in spring boot with IBM MQ

I am trying to create a Spring boot project to read messages from a queue and do some processing. I have defined the Jndi ConnectionFactory in application.properties spring.jms.jndi-name=java:/MyConnectionFactory On starting the application I am…
SKR
  • 103
  • 1
  • 10
0
votes
1 answer

Find JMS queue size, using JMSTemplate

I have access to a JMSTemplate on which I am adding and removing items from the queue. But there doesn't seem to be a direct API which tells me what is the number of remaining items in the queue. How can I get the exact number of items that is…
frewper
  • 1,385
  • 6
  • 18
  • 44
0
votes
2 answers

JmsTransactionManager with more connectionFactories

I was wondering if anyone can help me with a large problem, I'm trying to implement more jmsTransactionManagers with Spring 2.5.6, but it isn't working. I got 5 connectionfactories because i have to read and write from 5 different environments. They…
DenMette
  • 73
  • 1
  • 10
0
votes
1 answer

Receiving multiple messages from MQ asynchronously

I use Spring + Hibernate + JPA in my application. I need to read the message from Websphere MQ and insert the message to DB. Sometimes there may be continuous messages available and sometimes very less number of messages and sometimes we can expect…
0
votes
1 answer

Performance Issue using DefaultMessageListenerContainer with CachingConnectionFactory

In our application we are using SingleConnectionFactory with DefaultMessageListenerContainer consuming from IBM MQ server, performance wise the app is doing pretty good, however on MQ end our application is opening too many new connections randomly.…