1 Reply Latest reply on May 10, 2012 12:36 PM by gimbal2

    how to configure JMS listener in separate jvm

      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.