? ? ? JMS is a standard, like EJB, there are many open source, commercial implementation, MS technology corresponds to the specification is jsr914, specification implementation is called JMS provider, common implementation has ACTIVEMQ, JBoss MQ, IBM Websphere MQ and so on. The main advantages: (1) can make 2 systems or modules to achieve loose coupling, module A does not need to directly call module B, only need to send a treaty-like message to the JMS provider, module B receives this message for subsequent business processing (2) JMS mode is asynchronous, means that after module A sends a message, it does not need to wait for the response of Module B or JMS provider, and its business logic can continue?? ? ??? ?? Whether it is the sender or the receiver, the message is followed by the following steps: (1) Querying objects using Jndi JMS connectionfactory and destination (JMS queue/topic)
(2) using the Management object JMS ConnectionFactory to establish a connection connection? (Initialize the environment)
(3) Using connection connection to set up a conversation session?????????? (Initialize the environment)
(4) Create a message producer Messagesender/messagereceiver using session sessions and managing objects destination. (Until this step, a specific session is created for a queuename, and the preceding connection and session are initialized for the entire JMS environment)
(5) Send message/receive information?
Jms:java Message Service (Java Messaging Services)