Can any one provide example on Apache Apollo Queue producer and consumer from JAVA ? Earlier I was using Apache ActiveMQ but now I want to migrate.
2
votes
3 Answers
5
votes
1
votes
1
votes
you will need to get the following jar files: https://people.apache.org/~rgodfrey/qpid-java-amqp-1-0-client-jms.html and the javax.jms one. After that it's pretty simple to use the examples that come with apollo.
I start a listener from the bin folder using: java -cp example/geronimo-jms_1.1_spec-1.1.jar:example/javax.jms-3.1.2.2.jar:example/qpid-amqp-1-0-client-0.22.jar:example/qpid-amqp-1-0-client-jms-0.22.jar:example/qpid-amqp-1-0-common-0.22.jar:. example.Listener topic://event
and similar for the Producer.