This discussion is archived
1 Reply Latest reply: May 10, 2012 5:36 AM by gimbal2 RSS

how to configure JMS listener in separate jvm

936426 Newbie
Currently Being Moderated
Hi Guys,
I am new to this forums so please let me know if iam making any mistake.

I have 2 instances of tomcat running on different port numbers. I am using apache ActiveMq as my message broker for sending the jms message using queue. Code for sending the message is present in a servlet. So when I run that servlet message gets sent.

In my other tomcat i retrieve this jms message. But for me issue is this messsage gets retrieved only if i write this code in a servlet and I run that servlet.

Is there any way where i can configure a listener for my class present in tomcat 2. So that when message gets sent that piece of code gets triggered automatically and I can read that message.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points