Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS: Problem with Consumer Program

 
Nitin D Gaur
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi Forum,

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.

Thanks,
Nitin
 
Michael Rootman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Do you get any error?
Did you check that port is opened on remote server?

Regards,
 
Nitin D Gaur
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

ciao

Nitin
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic