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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

How do I catch all exceptions in Spring Boot?

I want to be sure my team always log exceptions thrown. Is there any way to catch all exceptions (regardless of entry point) in a Spring Boot application? This answer of using @ControllerAdvice (and @...
Stian Jørgensrud's user avatar
0 votes
1 answer
30 views

Spring JMS & ActiveMQ Artemis: manage timeout for synchronous messages

I have a huge application using JMS to communicate. Unfortunately, all the messages are synchronous for now and we use the method JmsTemplate#sendAndReceive. All right, it works ! But.... If we have a ...
Jonathan's user avatar
0 votes
1 answer
51 views

Execution of JMS message listener failed - ClassNotFoundException

I have two applications that are completely independent. One application sends a message to a queue on the ActiveMQ broker (ActiveMQ version 5.18.2) and the other application is supposed to pick up ...
Holland Park's user avatar
0 votes
0 answers
14 views

Spring JMS - DefaultMessageListenerContainer thread name suffix number limit

I am using spring JMS to poll messages from aws sqs. In that JMS configuration I used DefaultMessageListenerContainer with consumer as 2-20. Application is working fine. But in the thread name : ...
Sriram's user avatar
  • 1
1 vote
1 answer
32 views

Is there a scope equivalent RequestScope for JMS

Similar to @RequestScope is there something equivalent for a given JMS Message? Ideally you could specify for a given @JmsListener destination, beans which would be created and autowired, is this ...
Derrops's user avatar
  • 7,671
2 votes
0 answers
32 views

How can I check if Solace replay has completed and rejoined the live data stream

In my previous question, the codebase I am working on uses Solace's JCSMP API to trigger a replay, and uses the Spring JMS Listener annotated method to consume the replayed events. I would like to ask,...
chunkynuggy's user avatar
0 votes
1 answer
41 views

Azure Service Bus JMS Spring Long running Job

I know this question is asked multiple times, but I am not able to find any good answers. So I have a AzureServiceBus, which gets new messages from AzureBlob, whenever a new xml file is uploaded to ...
Yash's user avatar
  • 13
0 votes
1 answer
77 views

No jms trace id in spring boot 3.1.3

I have two similiar projects. One with spring boot 2.7 and sleuth, another with spring boot 3.1.3 and micrometer. Codebase is almost the same, this is just a POC showing that micrometer still doesn't ...
Matti's user avatar
  • 45
0 votes
1 answer
50 views

Setup of JMS message listener fails whenever there is a upgrade to azure servicebus

I get a warning log when servicebus does an upgrade to their system. Setup of JMS message listener invoker failed for destination 'queue-name' - trying to recover. Cause: Local transactions cannot ...
Kenny's user avatar
  • 1
0 votes
0 answers
15 views

Query regarding consumers in Spring JmsListener annotation

I've a query regarding Spring JmsListener annotation. I was reading through the spring documentation and understood that Spring JMSListener receives messages asynchronously. Suppose there are 3 ...
Sandy's user avatar
  • 469
1 vote
1 answer
141 views

Create a custom JMS ConnectionFactory with ActiveMQ Artemis in Spring Boot 3

I am trying to run a Spring Boot app in local profile and looking to have an embedded broker in same JVM. I am setting up a Spring Boot 3 app with the below properties. spring.artemis.mode=embedded ...
Tukaram Bhosale's user avatar
0 votes
0 answers
14 views

Error in Spring bean of JMSPublisher using JMS AMQ topic

I am trying to create Spring bean of JMS with ActiveMQ in following way: <!-- Spring JMS Template --> <bean id="refreshJmsTemplate" class="org.springframework.jms.core....
Scientist's user avatar
  • 1,460
0 votes
0 answers
22 views

Spring's DefaultMessageListenerContainer Not Failing Over to Secondary URL

We have a Spring application that requires a Tibco EMS topic consumer and uses the org.springframework utilities for JMS support and uses the spring-jms-5.2.24.RELEASE.jar version of Spring JMS. We ...
Michael Starkie's user avatar
0 votes
0 answers
52 views

Spring Boot multiple ActiveMQ Artemis broker configuration

I need to connect my Spring Boot 3.1.2 application to multiple different ActiveMQ Artemis brokers. If I try to connect only one in application.yaml it works well. But when I want to create two ...
zamek 42's user avatar
  • 793
1 vote
0 answers
213 views

micrometer-tracing not working in spring boot 3 JMS listener application

I have a spring boot application which uses Spring Boot 3, micro-meter tracing dependency. it is a JMS listener application.it is used to log trace and span id before the migration when it used to use ...
KRK's user avatar
  • 11
1 vote
0 answers
65 views

Method setExceptionListener not permitted after spring-jms update

I am using @JmsListener to consume messages from IBM MQ configured on WAS. I can see the following log on the application startup: DEBUG o.s.j.l.DefaultMessageListenerContainer Could not establish ...
adolzi's user avatar
  • 671
0 votes
0 answers
16 views

Lambda expression inside jmsTemplate.send() not covered in JUnit

I'm trying to write a JUnit test for a piece of code which is given below. jmsTemplate.send(destination, session -> { return getJMSMessage(session, message); }); Since jmsTemplate is an ...
SrigandanS's user avatar
0 votes
0 answers
77 views

How to read GCP pubsub message in Java without @Scheduled

My requirement is to read gcp pubsub message in java. I have implemented it using java scheduler and google-cloud-pubsub maven dependency(https://cloud.google.com/pubsub/docs/pull). Its a Pull ...
stackUser's user avatar
  • 565
0 votes
0 answers
8 views

@Autowired private MessageConverter simpleMessageConverter; throwing exception

I have a requirement to upgrade my service from 2.6.6 to 3.0.0 but below code is resulting in an exception in SB 3.0.0 but the same code is working fine in SB 2.6.6 @Autowired private MessageConverter ...
Bhanu's user avatar
  • 1
0 votes
2 answers
44 views

Spring JMS: replyQosSettings via XML Configuration

I'm using Spring JMS 5.3.6 for an application where I need to set a TimeToLive for my response messages. The application is configured via XML and is using the JMS namespace. When reading the Spring ...
Waldi's user avatar
  • 3
0 votes
1 answer
92 views

ActiveMQ Artemis large message

Is there any way to disable or change minLargeMessageSize on server side? I have ActiveMQ Artemis 2.19 and Camel client with JMS component (ActiveMQJMSConnectionFactory). Setting property ...
Thaideval's user avatar
0 votes
1 answer
68 views

JMSTemplate Bean not found - Autowire doesn't work

It worked fine yesterday and suddenly it doesn't work anymore. I didn't change anything tho. I am new to JMS and followed this tutorial: Tutorial I just want to send and receive Messages with the ...
Theo's user avatar
  • 1
2 votes
1 answer
33 views

Does ConsumerFlowProperties from Solace carryover?

I am reviewing the codebase of a solace application. Here a FlowReceiver is configured with a ConsumerFlowProperties to replay from the start of a queue. Then the FlowReceiver is started and stopped, ...
chunkynuggy's user avatar
0 votes
0 answers
65 views

JMSCC0005: The specified value '0' is not allowed for 'JMSDeliveryMode'. The given value is not allowed for the property specified

while sending message to queue we are getting this exception after upgrading our IBM mq server from 7.5 to 9.3 version , I have also updated ibm mq dependencies from 7.x version to 9.x version. it was ...
prasanth reddy's user avatar
0 votes
1 answer
86 views

Spock test and Artemis Embedded server: How to configure a consumer queue on an address?

I am trying to write a test to make sure my Spring Boot application is able to receive messages from an address after migrating from ActiveMQ "Classic" to ActiveMQ Artemis. As this is a ...
Themikebe's user avatar
  • 361
0 votes
1 answer
252 views

Exception Caused by: java.lang.ClassNotFoundException: jakarta.jms.ConnectionFactory

I want to use a Spring Boot Apache Camel application to get a message on IBM MQ. I am currently setting up the JMS connection, but I receive an error about a class not found. I thought it had ...
Beerus239's user avatar
0 votes
1 answer
72 views

Error creating bean with name 'jmsConfiguration'

I want to use a Springboot Apache Camel application to get a message on IBM MQ. I am currently setting up the JMS connection, but I receive an error about a bean. Not sure what is going on because I ...
Beerus239's user avatar
0 votes
1 answer
17 views

Track specific usages of Spring libraries in my app

Recently, the application we are supporting had just undergone Software Composition Analysis (SCA) scanning and there were some Spring libraries what were found to have vulnerabilities. The problem is,...
lecarpetron dookmarion's user avatar
0 votes
0 answers
618 views

Problems with jms client after switching spring boot from 2.7.x to 3.1.x (IBM MQ)

I've migrated my spring boot app from ver 2.7.8 to 3.1.1 I have switched my client mq-jms-spring-boot-starter from 2.7.5 to 3.1.1 I use: com.ibm.mq:com.ibm.mq.jakarta.client:9.3.3.0; com.ibm.mq:mq-jms-...
Ubizza's user avatar
  • 1
0 votes
1 answer
88 views

Not able to use selectors in JMS selector with ActiveMQ & Spring Boot java.lang.ClassNotFoundException: org.apache.activemq.filter.JAXPXPathEvaluator

I have a JMS listener having selectors and after migration to Spring Boot 3.1.0 I am facing issues when I provide values to selectors in my config file. Below is the listener which I am using: @...
user2158105's user avatar
-1 votes
1 answer
113 views

Spring JMS Baeldung tutorial code cannot connect to ActiveMQ

I have successfully built example code from this repo. However, when I run this testing application I get the following error: ERROR | Could not refresh JMS Connection for destination 'queue-1' - ...
Holland Park's user avatar
0 votes
0 answers
19 views

Spring JMS - Mock send and receive using two different message converters

I have a Spring application that is listening to a service bus topic for a payload of type say ClassA. This service updates the repository and creates a new status update object of type say ClassB and ...
KaushikKas's user avatar
0 votes
1 answer
55 views

Messaging with JMS Spring tutorial not building [https://spring.io/guides/gs/messaging-jms/#scratch]

I pulled this repository https://github.com/spring-guides/gs-messaging-jms to my Windows PC and tried to build using both ./gradlew build and ./mvnw clean package. In both cases I'm getting errors and ...
Holland Park's user avatar
0 votes
1 answer
433 views

JmsTemplate bean missing in springboot 3

After changing my springboot version from 2.7.5 to 3.0.6 I am getting this error Description: Parameter 0 of constructor in com....JmsNotifier required a bean of type 'org.springframework.jms.core....
mahfuj asif's user avatar
  • 1,691
0 votes
0 answers
50 views

JmsListener picks up the first message but ignores subsequent messages until a few minutes later

So I can send a first message, it get consumed just fine. Then I immediately send another message but it doesn't get picked up by listener. I wait around 4 mins then send another message which gets ...
peachish11235's user avatar
1 vote
0 answers
118 views

How to configure JMS container factory to retry with backoff and not retry MessageConversionException

I'm having two problems while using JMS: I created an instance of ExponentialBackOffWithMaxRetries and added to my DefaultJmsListenerContainerFactory in the method .setBackOff but it doesnt seem to ...
Wall-E's user avatar
  • 438
0 votes
1 answer
344 views

What is the alternative for Apache activemq-broker jar which has support for Jakarta as in JDK 17 and Spring 6?

I have an application that is based on Spring 5 and it uses Apache activemq client and broker libraries. We are now migrating to Spring 6 which requires Jakarta namespaces as specified by JDK 17. But, ...
hellokk's user avatar
  • 23
0 votes
1 answer
28 views

jms MessageListenerContainer.stop() called but subscriber count doesn't decrease in amq console

I have a spring-boot app which needs to dynamically subscribe and unsubscribe (non-durable) to an ActiveMQ topic. The subscription all works and so does the unsubscribe (according to the code) but the ...
Col's user avatar
  • 381
0 votes
0 answers
76 views

Exception when multiple Thread Send messages to single ActiveMQ topic

We have been using ActiveMQ to communicate between two services. (Both services are spring boot services) Service B puts message to some topic - example-topic-1 and Service A receives message from ...
Kush Patel's user avatar
  • 1,228
0 votes
0 answers
123 views

Backoff seem to be ignored in a Spring JmsListener

I am writing a Spring JmsListener to an MQ series. I have some problems when I am implementing the backoff strategy. It's seem to be ignored. Below is my JMS config: @Configuration public class ...
Ramzi Gachi's user avatar
0 votes
1 answer
587 views

Cannot convert value of type 'org.apache.activemq.pool.PooledConnectionFactory' to required type 'jakarta.jms.ConnectionFactory'

I'm using Spring(5.3.27) JMS and ActiveMQ(5.16.1) to send a message. Now, I am migrating my project to Spring 6.0.0 and getting the error while running integration tests: Caused by: java.lang....
maverickabhi's user avatar
1 vote
1 answer
43 views

What dependency needed to write spring boot jms listener application?

Need to listen to rabbit mq queue . What dependency needed ? Its a pure listener project. I just keep on listening queue and take some action. Do we need spring.boot.starter.web ? If not , how come ...
Rishi's user avatar
  • 43
0 votes
1 answer
90 views

how to increase the number of threads/task inserting into MQ using JMS caching connection factory?

I have a Kafka consumer with 10 consumer threads consuming from 10 partitions and inserting into MQ using the JMS template caching connection factory (SessionCacheSize(10)). The MQ insertion part is ...
Misubushi's user avatar
-1 votes
2 answers
481 views

How to use Spring's JmsTemplate with a connection pool?

As far as I know Spring's JmsTemplate with the default configuration uses a synchronous approach to send messages which makes the performance really bad. Is there any way to use connection pool here? ...
Misubushi's user avatar
0 votes
1 answer
78 views

How to return the error cause from spring-boot based jms listener so that it is available on DLQ message

I have a spring-boot 2.6 based JMS listener that process messages dropped in an ActiveMQ queue. When an error happened during processing, an uncaught exception is raised which lead to the message ...
Schumi77's user avatar
1 vote
0 answers
77 views

JMS MQ without JNDI

Due to some reason as we cannot use JNDI, can we use below code in spring application context ? Its working fine but need to know if any improvement/optimization is needed. Please note that almost 10 ...
Sanjay's user avatar
  • 165
0 votes
1 answer
211 views

How to migrate the ActiveMQ "Classic" with Spring 5 to Spring 6?

I'm implementing JMS using ActiveMQ "Classic" and Spring 5 to handle requests/responses between distributed components in the application. (Requests send from a Web component to an ActiveMQ ...
HienNg's user avatar
  • 51
1 vote
1 answer
203 views

Is there any way to know if an IBM MQ already has any JMS Listeners attached to it?

I am working on an application which gets a list of queue details from a DB and spins up Spring SimpleJmsListenerEndpoint objects for them. for (final String queueName : queueList) { ...
Ray's user avatar
  • 13
0 votes
0 answers
241 views

SpringBoot 3.x upgrade: AQjmsFactory version compatibility issue with Jakarta namespace

While upgrading to the latest SpringBoot versions from 2.x to 3.x, I have encountered that there is version compatibility issue for Oracle Advance queue "AQjmsFactory" with Jakarta.jms ...
Gajanana Ganjigatti's user avatar
0 votes
0 answers
84 views

Connecting to IBM MQ using topic name instead of topic string

Sample below - The topic name is TEST_TOP. But seems like the following method is for topic string instead of topic name. Wanted to check if i can use topic name instead of topic string? Thanks! ...
user8779054's user avatar

1
2 3 4 5
39