Active MQ :- Is a middle-ware framework where messages are handled in reliable manner without any loss of information. Mainly utilized for distributed environment where information from one JVM need to be passed to another JVM. It has two types of mechanism point to point and publish subscribe mechanism.
Step 1) Download latest active mq.
http://activemq.apache.org/activemq-550-release.html
Step 2) Set JAVA_HOME variable till JDK or JRE.
Step 3) Navigate till bin folder 'C:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\bin' and start it
using 'activemq'command for previous versions. In newer versions use 'activemq start'.
Step 4) http://121.0.0.1:8161/admin to access the admin console.
Step 5) Now create a dynamic web application and create sender and receiver classes to produce and consume message.
Sender :- Run sender it will use default broker url and creates a queue with name ''PRACTICEQUEUE" and sends a message.
Step 1) Download latest active mq.
http://activemq.apache.org/activemq-550-release.html
Step 2) Set JAVA_HOME variable till JDK or JRE.
Step 3) Navigate till bin folder 'C:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\bin' and start it
using 'activemq'command for previous versions. In newer versions use 'activemq start'.
Step 4) http://121.0.0.1:8161/admin to access the admin console.
Step 5) Now create a dynamic web application and create sender and receiver classes to produce and consume message.
Sender :- Run sender it will use default broker url and creates a queue with name ''PRACTICEQUEUE" and sends a message.
Receiver :- It receives message from default broker URL("failover://tcp://localhost:61616") and prints out to console.
No comments:
Post a Comment