Jms:java Message Service (Java Messaging Services)

Source: Internet
Author: User

? ? ? 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.