I am using one Producer-Consumer program on Apache ActiveMQ to send and recieve messages from remote JMS-Broker server. I am able to successfully produce the message but not able to consume the response from JMS-Broker Server. Below is my program.
I tested this code locally by using a local consumer-producer program this program works fine but for remote JMS-Broker Server it doesn't.
Please somebody help.
Joined: Apr 15, 2009
Do you get any error?
Did you check that port is opened on remote server?
Nitin D Gaur
Joined: Jul 04, 2008
Yeah Ports are opened,
No error either.
Messages are enqueued in the queue, I could see it in ActiveMQ wed admin.
but I am not able to consume it.
Could this be the prefetch size problem ?
because there are multiple consumers for the queue. Currently prefetch size is 1000.
what should be the value for multiple consumers ?