In this post, I will explain how to use JMS api with simple example. Note: I will be using JMS 2.0 api for this and future examples. Below is the complete main code Main Class 1 package package1; 2 3 import java.util.Properties; 4 5 import javax.jms.ConnectionFactory; 6 import javax.jms.Destination; 7 import javax.jms.JMSException; 8 import javax.naming.Context;…… Continue reading JMS 2.0 Simple Example