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

Use case scenario of durable listeners/consumers

So I am creating concurrent consumers to a topic i.e. multiple listeners. I am configuring them to be durable. @Bean public DefaultMessageListenerContainer listenerContainers() { DefaultMessageListenerContainer container = new…
africandrogba
  • 334
  • 1
  • 3
  • 21
0
votes
1 answer

JMS Connection not throwing JMSSecurityException on sending message to unauthorized route

I am using Apache Camel with Spring to send messages from my Java service. I need to handle/trigger certain events in case of any error occurred at exchange. I am using below code to achieve my objective. try { …
0
votes
1 answer

Can multiple listeners work on same code?

I plan to have a broker topic and have multiple default message listeners or simple message listeners. All the listeners execute the same code. Is each listener code execution independent of another. What I am trying to ask is, if there will be a…
africandrogba
  • 334
  • 1
  • 3
  • 21
0
votes
0 answers

Spring JMS IBM MQ Integration - getting error JMSWMQ2008 MQRC_NOT_AUTHORIZED error

I am trying to add a jms listener to IBM mq, for replacing an MDB..I am getting below error. I have attached my spring config xml. I am able to send messages to queue with springconfiguration, but not able to receive!! I am able to get messages via…
Jugunu
  • 141
  • 3
  • 14
0
votes
0 answers

Spring Boot JMS error - No qualifying bean of type [org.springframework.jms.config.JmsListenerEndpointRegistry] found for dependency

I am trying to migrate existing spring web application (Spring version 4.1.X) to Spring boot (version 1.3), I have followed spring documentation Convert an existing application to Spring Boot from…
sriman
  • 41
  • 1
  • 6
0
votes
0 answers

Spring: Still waiting for shutdown of 1 message listener invokers

I have a Spring Boot app which programatically starts a few JMS listeners. From config: @Override public void configureJmsListeners(final JmsListenerEndpointRegistrar registrar) { final List allQueueNames = getAllQueueNames(); for…
Lawrence Tierney
  • 856
  • 1
  • 12
  • 30
0
votes
1 answer

Spring Cloud Contract producer cannot send message

I'm trying to incorporate Spring Cloud Contract into an existing project. I've had some success with REST but I'm struggling to set up the messaging side. Thus far I've set up a contract on the producer, which does produce a test in…
0
votes
2 answers

Java seems to accept certificate with ANY CN

This question is NOT a duplicate of question pointed to. There is NOWHERE in mentioned question anything about fact that TLS does not perform hostname verification by itself. I have ActiveMQ instance and client in Java. Client uses JMSTemplate…
Jędrzej Dudkiewicz
  • 1,053
  • 8
  • 21
0
votes
1 answer

Not Receiving Pending Message in JMS

I am working with ActiveMQ and JMS I have created a ObjectMessage in queue. I am not able to recieve it. Take a look at message already available at Queue. My code for Receiving message is public class RecieveObjectQueue { public static void…
Akhil Jain
  • 13,872
  • 15
  • 57
  • 93
0
votes
1 answer

How to ensure publishing a message into a topic occurs within a transaction?

So here is the requirement. The process of publishing messages into a topic should occur within a transaction If the transaction succeeds then we return 0 If the transaction fails then we return 1 I know how to publish messages into a topic. I am…
africandrogba
  • 334
  • 1
  • 3
  • 21
0
votes
2 answers

I need to check the status of the activemq broker before the messages sent

actually my usecase is i need to handle the broker not available situation. So i need to know the status of the broker before send the messsages? I tried with below sendtimeout property, but still not success.
0
votes
1 answer

Spring-jms. How to customize broker url for rabbitmq?

All examples I read related with activeMq and spring-boot has especial property to change the url of broker: spring.activemq.broker-url= By default it uses default settings: default url and default port. But I use rabbirMq and I want to…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

Performance of JMS Queue connections

In my spring batch, i'm using Oracle DB and IBM WMQ and implemented Atomikos Transaction management and Spring Partitioning. Requirement is, need to read 2 million records from database and after processing, post the same messages(1 message…
user99637
  • 1
  • 2
0
votes
1 answer

Different JMS connection factories instantiation via driver name and URL

Spring JDBC allows to specify in properties file for PROD: jdbc.driverClassName = oracle.jdbc.OracleDriver jdbc.url = jdbc:oracle:thin:@... and for tests jdbc.driverClassName = org.h2.Driver jdbc.url = jdbc:h2:mem:test;INIT=... Thus it's possible…
Andriy Kryvtsun
  • 3,220
  • 3
  • 27
  • 41
0
votes
2 answers

Receiver doesn't receive messages from topic

I have two different apps for sender and receiver. sender: @SpringBootApplication public class RabbitJmsApplication implements CommandLineRunner { public static void main(String[] args) { …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1 2 3
99
100