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

Move to next recipient and invoke error-channel upon encountering error on one of the recipient-list-router

If any exception is thrown in "firstChannel" flow, either of below two is happening: With ignore-send-failures="true" property, "secondChannel" is invoked and "myErrorChannel" is not invoked. Without ignore-send-failures="true" property,…
0
votes
0 answers

How to configure 2 MDBs in spring

My code is deployed in weblogic 11g, I have already configured 1 MDB using spring. It is deployed and working fine. I have created a JMS server in weblogic and the queue details are in that server . I have only 1 sub deployment for this JMS server.…
0
votes
0 answers

MessageGroups with Spring and Websphere MQ

I am looking options to implement feature like Active MQ message groups in my application. This application is based on Spring and uses Websphere MQ as JMS provider. I cannot change JMS provider to ActiveMQ due to client constraints. Use Case :…
0
votes
2 answers

Spring JMS : Configure Multi Consumer client

I am developing a Spring JMS based client, which connects to an IBM MQ. This part is working fine !! Scenario: The MQ client can get a request from multiple Spring "@Components". Considering, JMSTemplate's "send" and "receive" are completely…
Deep
  • 673
  • 1
  • 10
  • 23
0
votes
0 answers

How to make a Spring JMS listener automatically recover from closed consumers?

In an attempt to mitigate the effect of deadlocks in my application I am considering setting up my ActiveMQ server to abort slow consumers. I can get this working OK, but the problem is that my Spring DefaultMessageListenerContainer never restarts…
Robert Johnson
  • 632
  • 6
  • 25
0
votes
1 answer

On restart of ActiveMQ durable subscriber gets deleted, Need help on auto creation of Durable subscriber in this case

I have created a Durable subscriber for topic in ActiveMQ, But whenever activeMQ server restart I have to restart my java services to make durable subscriber available. Is there any way to make subscriber available automatically whenever activemq…
JayShah
  • 1
  • 1
0
votes
1 answer

Why is onMessage() (JMS Listener) not called during unit tests

From console output below, as far as I could see, my embedded ActiveMQ was initialized correctly and it is answering at 61616 port. When I run the test below, I assume the message is successfully sent because I can debug line-by-line and see both…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
1 answer

JMS CachingConnectionFactory onException method is never called on JMSException

I am using Apache Camel with Spring to send messages from my Java service. I need to reset JMS connection in case of any error occurred at exchange. I am using below code to achieve my objective. try { producerTemplate.sendBody(endPoint,…
0
votes
1 answer

JMS load balancing(1 Queue, 2 Queue Connection Factory and 1 .bindings)

I am using JMS to put messages into the Queue. The Queue is linked with 2 QueueConnection Factories and 2 Queue managers. While sending the messages to the Queue I want to equally distribute/send message to 2 different Queue Managers via 2 different…
Alagammal P
  • 829
  • 5
  • 19
  • 43
0
votes
1 answer

How to subscribe to a Durable TOPIC using Apache camel / Spring-boot?

Whenever i start my subscriber, it is not appearing on my activeMQ under "Active Durable Topic Subscribers" section. Which means it is not a durable topic subscriber yet. How can i make it durable subscriber? JmsComponent jmsComponent =…
user3007165
  • 459
  • 1
  • 5
  • 14
0
votes
0 answers

Spring Session 1.1.x incompatible with Spring-JMS 3.2.x

I am trying to configure spring session 1.1.1 with my spring 3.2.18 based application. Following are dependencies compile group: 'org.springframework', name: 'spring-context', version: 3.2.18 .... compile group: 'org.springframework.integration',…
0
votes
1 answer

Most stable version of Spring 4.x . Upgrade needed from 3.0.5

I want to upgrade my application from spring 3.0.5 version to Spring 4.x version, and I would like to know which one is the most stable(no bugs).. thanks for your help :) I want to know the Major and Minor version we should use for the upgrade…
user2967948
  • 529
  • 2
  • 8
  • 23
0
votes
1 answer

Multiple listeners that are durable. Do they work concurrently?

My configuration: @Bean public ActiveMQConnectionFactory connectionFactory(){ ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); connectionFactory.setBrokerURL(DEFAULT_BROKER_URL); return…
hars
  • 127
  • 4
  • 17
0
votes
1 answer

Concurrent Consumers in JMS publisher/ Subscriber model

I am using pub/sub model with a DefaultMessageListenerContainer. I have configured concurrent consumers to 5. How can I uniquely identify each consumer? I am trying to store each event processed by corresponding listener in a map. This is the part…
hars
  • 127
  • 4
  • 17
0
votes
1 answer

ActiveMQ migration to another server wiath save version

I have activemq which has a huge storeUsage ~100GB, sice it was about to exhaust I cnaged to value of storeUsage and triying to restart again but not activemq server is not staring. What can be issue, nothing more in log in debug mode Can I just…
Arvind
  • 1,207
  • 6
  • 27
  • 55
1 2 3
99
100