Iam trying to implement a simple JMS(traditional not using springs) code in eclipse using ApacheMQ.
I have downloaded the ApacheMQ from apache.org and sample JMS sender from SimpleQueueSender and receiver from SimpleQueueReceiver respectively.
Now how should i execute this code? I have already gone through all related tutorials but couldnot find answers to these questions.
Please suggest solutions on
- What all are the changes to be done regarding classpaths,settings after the activemq is started as below
INFO | jetty-7.1.6.v20100715
INFO | ActiveMQ WebConsole initialized.
INFO | Initializing Spring FrameworkServlet ‘dispatcher’
INFO | ActiveMQ Console at http://0.0.0.0:8161/admin
INFO | ActiveMQ Web Demos at http://0.0.0.0:8161/demo
INFO | RESTful file access application at http://0.0.0.0:8161/fileserver
INFO | Started SelectChannelConnector@0.0.0.0:8161
how to proceed next?
2.Should this server be added in the eclipse as a new server and then the program is run on that server?
3.Can these programs be run from eclipse or should they executed from a separate console?
To ensure that you have included all required jars for ActiveMQ, include default activemq-all.jar in your eclipse Project’s buildpath
ActiveMQ can be started independent of your eclipse environment.
To answer your questions:-
(1) In your JMS application use following properties
you may use IP address or 127.0.0.1 instead of
localhost(2) No need to add mq server(broker) in eclipse.
(3) A simple jms client can run from eclipse run menu given that you have set the Java build path appropriately.