Reputation: 57
I am trying to find an example of how to use Apache ActiveMQ on an asp.net (C#) website. As far as I have been able to figure out, you have to use REST webservices, but as I am a newbie with regards to both ActiveMQ and REST webservices, I could really use an example on how to do it.
What I need to do is set up a queue on a broker and create a message producer and consumer that can communicate using the broker queue.
I have searched long and hard on the internet, but I have only been able to find examples on how to do this using either command line commands or WinForms.
Does anyone have a link to a good and thorough example of using ActiveMQ on a asp.net website??
Thanks in advance.
Upvotes: 4
Views: 18093
Reputation: 3913
you do not have to use REST. here is examples of how to do it with tcp, with NMS (.NET client for ActiveMQ) . to not copy paste here code available i gave you direct links to code, do not hesitate
http://activemq.apache.org/nms/examples.html
http://activemq.apache.org/nms/nms-simple-asynchronous-consumer-example.html
full example https://code.msdn.microsoft.com/windowsapps/ActiveMQ-in-NET-Sample-9406441a
http://www.wi1.uni-muenster.de/pi/lehre/ss11/EAI/tutorials/tutorial_jms_net.html https://remark.wordpress.com/articles/messaging-with-net-and-activemq/
Upvotes: 5