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

Complete Async web service communication - sender and receiver are not available same time

Two systems are talking to each other through integration(Using apache-camel). Let say system A needs to submit a request to System B which has exposed a web service to receive data and integration is transforming data as per system B web…
Gajendra Kumar
  • 908
  • 2
  • 12
  • 28
0
votes
1 answer

Is it possible purge specific jms message from queue spring integration?

The use case is that, if I have a payment request message to activemq queue, how can I purge the specific message if it not consumed (in case payment is reversed)?
omexIT
  • 111
  • 8
0
votes
1 answer

External Messaging in Spring Integration

I would like to ask, why amqp / jms is implemented as Inbound and Outbound Channel Adapters. They role is same as Message Channel, so if they would be implemented as MessageChannel, then it could be easily used in different components e.g. directly…
Dariss
  • 1,258
  • 1
  • 12
  • 27
0
votes
1 answer

active-mq artemis springboot clustered topic load balancing (round robin) issue

After spending a lot of time in configuring and trying a lot of solutions to make Artemis work in a cluster mode like the local mode in a publish-subscribe (topic). So, I 've prepared 3 consumers on different nodes and a producer that publish…
0
votes
1 answer

Register endpoints with transactional

using Spring 5 on Java 1.9 Using a configuration that implements the JmsListenerConfigurer to register endpoints: @Configuraiton public class Endpointer implements JmsListenerConfigurer { @Override public void…
Matthew Campbell
  • 1,864
  • 3
  • 24
  • 51
0
votes
0 answers

Spring JMS message converters with extended messages classes

Using Spring boot 1.5.9 and JMS 2.0.1 with Java 9.0..... Talking with IBM's MQ (version 9) with their MQQueueConnectionFactory which delivers to an @JmsListener an com.ibm.jms.JMSMessage that extends the javax.jms.Message class. This means the…
Matthew Campbell
  • 1,864
  • 3
  • 24
  • 51
0
votes
1 answer

Throttle @JmsListener in spring (prevent TaskRejectedException)

I currently have a JMSListener configured with the following threadpool: ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(5); executor.setMaxPoolSize(10); executor.initialize(); The queue I'm…
BillMan
  • 9,434
  • 9
  • 32
  • 52
0
votes
1 answer

IBM MQ and Spring boot

I am using JMS via IBM MQ. My sender code: @Autowired private JmsTemplate jmsTemplate; public void sendPHRq(String msg) { jmsTemplate.send(AntiFraudRq, session -> { Message message = session.createTextMessage(msg); …
ttt
  • 401
  • 2
  • 4
  • 17
0
votes
1 answer

Spring-boot app connect with Apache Artemis cluster

Spring-Boot can auto-configure a Connection Factory when it get that Artemis is available on the classpath. But how we can configure spring-boot application to native Artemis cluster (multiple nodes)
Baba
  • 311
  • 1
  • 2
  • 12
0
votes
2 answers

Recording "Access Logs" from JMS via Spring Integration

I've got a project that uses Spring Integration to read messages off of a JMS Queue, process them and call a third party system with the results. If it fails, it then rolls the messages back on to the JMS Queue to be retried later. This all works…
Graham
  • 4,095
  • 4
  • 29
  • 37
0
votes
0 answers

Apache Artemis unable to bind message successfully with Spring bases Artemis consumer

Artemis Message producer java program : initialContext = new InitialContext(); // Step 2. Look-up the JMS topic Topic topic = (Topic) initialContext.lookup("topic/exampleTopic"); // Step 3. Look-up the JMS connection…
Baba
  • 311
  • 1
  • 2
  • 12
0
votes
1 answer

Closing Sessions in Spring Boot JMS CachingConnectionFactory

I have my JMS configuration like below (Spring boot 1.3.8); @Configuration @EnableJms public class JmsConfig { @Autowired private AppProperties properties; @Bean TopicConnectionFactory topicConnectionFactory() throws…
Rajkishan Swami
  • 3,569
  • 10
  • 48
  • 68
0
votes
1 answer

Jms Java: Deploy with version in weblogic throw javax.management.InstanceAlreadyExistsException

I have a Jms war deployed in weblogic server. If I update this war with a new version, until the first version going to retreat I have 2 war that are using the same broker tcp://0.0.0.0:61616. It throw…
N. Var
  • 3
  • 1
  • 5
0
votes
1 answer

Are there any benefits in using the "failover:" protocol with the "vm:" transport in ActiveMQ?

According to this answer, there are benefits from using the "failover" protocol with a "tcp" transport, even with a single address. In addition to this, the ActiveMQ documentation, the following applies (emphasis mine): If a JMS broker goes down,…
nwinkler
  • 52,665
  • 21
  • 154
  • 168
0
votes
0 answers

Spring retroactive topic jms listener to fetch only latest message after restart

Requirements: In one project I need to fetch messages from topic. When my app will be restarted or started after the publisher already sent some messages the app should re-fetch but only the last message put on topic. What I did: I have created a…