2009/1/15 manish_goyal <manishkumar_go...@infosys.com>: > > Hi, > > Can any one tell me how to send a XML message from ActiveMQ queue to JAVA > program. Or in another way how to consume message from ActiveMQ using JAVA > program.
The JMS tutorial might be a good place to start - to understand the JMS API etc http://activemq.apache.org/how-do-i-get-started-with-jms.html alternatively you could try using Apache Camel which hides all the details of the JMS API and lets you produce and consume messages on ActiveMQ very easily by using some annotations on your beans. http://activemq.apache.org/camel/pojo-consuming.html http://activemq.apache.org/camel/pojo-producing.html We could use a better example in Camel of doing messaging with ActiveMQ just using annotations; I've raised a JIRA to track this https://issues.apache.org/activemq/browse/CAMEL-1259 -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/