Questions tagged [jmstemplate]

Spring helper class that simplifies synchronous JMS access code

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.

The JmsTemplate class is the central class in the JMS core package. It simplifies the use of JMS since it handles the creation and release of resources when sending or synchronously receiving messages.

Code that uses the JmsTemplate only needs to implement callback interfaces giving them a clearly defined high level contract. The MessageCreator callback interface creates a message given a Session provided by the calling code in JmsTemplate. In order to allow for more complex usage of the JMS API, the callback SessionCallback provides the user with the JMS session and the callback ProducerCallback exposes a Session and MessageProducer pair.

206 questions
1
vote
0 answers

WebSphere Application Server 7 and WebSphere MQ 7, SELECTOR_NOT_SUPPORTED exception

I have an application that take JMS messages from WMQ queue. If the app is deployed on Tomcat then no problem. But if the app is deployed on WAS7 then the following exception is raised: org.springframework.jms.UncategorizedJmsException:…
Askar
  • 544
  • 1
  • 6
  • 17
1
vote
0 answers

how to set jmsTemplate send timeout?

I'm using JmsTemplate as producer to send messages to hornetQ; I'm using singleConnectionFactory If set wrong port (which is open on the server side, such as one other HornetQ port), the producer is blocked How could I set 'send timeout' ???
Glass
  • 91
  • 7
1
vote
0 answers

ActiveMQ Failover Transport -

I am using the active mq failover configuration in my Spring Web based application. There are 4 production active mq boxes and my connection URL for a message producer looks like this…
user1166031
  • 258
  • 6
  • 14
1
vote
2 answers

ActiveMQ : Message listener not processing all entries in queue

We have a requirement where in I'll be deploying an application on n number of servers, say S1, S2 ,....Sn.There is an activeMQ queue defined on one of the servers , say S1.I have configured my servers to produce messages and place them in the same…
1
vote
2 answers

IncompatibleClassChangeError in TransactionSynchronization.afterCompletion

Every time i sent a message with JmsTemplate the exception will be thrown. (I used Spring 3.0.5.RELEASE). I cant find the incompatible classes! Spring jars in my class path: The error…
Arya
  • 2,809
  • 5
  • 34
  • 56
1
vote
1 answer

Spring JMSTemplate - lost messages

We are using Spring JMSTemplate 3.0.1RELEASE to send JMS messages to an ActiveMQ cluster. I am using useAsynSend=true to be able to send Asynchronous requests as these are all Fire and Forget. However they are still persistent and I can confirm they…
Soumya
  • 1,054
  • 2
  • 16
  • 31
1
vote
1 answer

Cannot find the JBoss ConnectionFactory with a JNDI lookup in Spring annotation configuration

Despite what seems to be a successful binding of the JBoss (AS 7.1.1.Final) connection factory: [org.jboss.as.messaging] (MSC service thread 1-9) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory The ConnectionFactory in the…
chrisjleu
  • 4,329
  • 7
  • 42
  • 55
1
vote
1 answer

JMS encoded message selector not matching when using special characters

I have 2 applications (client and server) using a request-reply pattern. The client sends a request to the server the message ID is set to something like this: ID=Hostname-52991-1357677886768-3:1:2:1:1. Now the client has to listen to a message with…
siebz0r
  • 18,867
  • 14
  • 64
  • 107
1
vote
1 answer

Issue or confusion with JMS/spring/AMQ not processing messages asynchronously

We have a situation where we set up a component to run batch jobs using spring batch remotely. We send a JMS message with the job xml path, name, parameters, etc. and we wait on the calling batch client for a response from the server. The server…
1
vote
0 answers

Send JMS Message with Spring JmsTemplate

I have a server that needs to send messages to a separate application. I'm using Spring JmsTemplate, however, I'm having some issues with getting the configuration up and running. Right now, I'm getting the following exception: Error creating bean…
Michelle
  • 2,830
  • 26
  • 33
1
vote
1 answer

How to delay a JMS message from reaching the queue using Spring JmsTemplate

I don't want to block the message consumer with a receiver timeout, because as I understand it this "ties up" a thread in the queue server pool (and we have multiple queues configured). So how can I delay the message from being sent without a custom…
user4903
0
votes
1 answer

JMS message not getting added

I am facing a strange situation while using HornetQ. My application architecture - JMS provider : HornetQ (Standalone server, not used for anything else. I've created 2 queues on this server, say Q1 and Q2). Producer : A web application deployed…
divesh premdeep
  • 1,070
  • 3
  • 16
  • 28
0
votes
2 answers

How to send SMS in my application with Spring?

I wanna send SMS with JMS and Spring ,How can I do this ? Could you give me tutorial or sample ,may be?
Cetin Imre
  • 331
  • 1
  • 8
  • 15
0
votes
0 answers

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 autowired field I have mocked it in the test. Because of…
SrigandanS
  • 45
  • 9
0
votes
0 answers

Unable to connect to Enterprise MQ Server - Unauthorized Error

I am trying to connect to a remote Enterprise MQ server using JMS in Spring boot. When I try to connect to a local MQ, I am able to make the connection and send messages, but the same code doesnt work for the remote MQ. Below are the error details…