0

I have a tomcat web application. It uses a couple of remote modules. One of the modules publishes some messages (about it states) into queue. I need to read it. how can I do it? As far as I know I need realization of IninialContext to obtain remote queue by name, right? Haven't found any useful materials on the net.

Nick
  • 820
  • 2
  • 14
  • 29

1 Answers1

2

On this link on activemq site: http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html take a look at class Server and Client for help in writing JMS Consumer and Producer.

anubhava
  • 761,203
  • 64
  • 569
  • 643
  • Thanks. It was quite easy: I filled Property object and create InitialContext using it. All the following things was like in examples. – Nick Mar 28 '11 at 10:19