{"id":1321,"date":"2016-09-06T08:01:08","date_gmt":"2016-09-06T08:01:08","guid":{"rendered":"http:\/\/www.testingdocs.com\/questions\/?p=1321"},"modified":"2025-03-11T05:15:38","modified_gmt":"2025-03-11T05:15:38","slug":"what-is-jms-api","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/what-is-jms-api\/","title":{"rendered":"What is JMS API?"},"content":{"rendered":"<h1>What is JMS API?<\/h1>\n<p>JMS is a short form for Java Message Service. JMS API allows applications to create, send\/receive, and read messages. Messaging is a method of communication between applications. A messaging client can send messages to, and receive messages from other clients. Messaging enables communication between software applications in a loosely coupled environment.<\/p>\n<p>Furthermore, JMS API is both reliable and asynchronous. It provides support for both point-to-point and <em>publish\/subscribe<\/em> messaging models.<\/p>\n<h2><strong>JMS Architecture<\/strong><\/h2>\n<p>JMS clients are programs that produce or consume messages.<\/p>\n<p>Messages are objects that communicate information between the JMS clients.<\/p>\n<p>JMS provider: is the messaging system that implements JMS specification interfaces and provides administrative features.<\/p>\n<h2><strong>Point-to-point<\/strong><\/h2>\n<p>In point-to-point communication, the sender sends the message to a specific queue. The receiver client extracts the messages from the queue. The queue retains all the messages until the clients consume them or expire.<\/p>\n<p>Each message has only one consumer. The consumer client acknowledges the receipt of the message as shown below picture.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-685\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/JMS-Point-to-Point.jpeg\" alt=\"JMS API Point to point\" width=\"1177\" height=\"604\" title=\"\"><\/p>\n<h2><strong>Publish\/Subscribe<\/strong><\/h2>\n<p>In publish\/ subscribe messaging system, a client subscribes to a topic. The publishing client publishes messages on the topic by creating a subscription. Each message in the system might have many consumers unlike the earlier one. The publishing client can send messages to many subscribers who subscribe to the topic.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-686\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/JMS-Publish-Subscribe.jpeg\" alt=\"JMS Publish Subscribe\" width=\"1175\" height=\"611\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is JMS API? JMS is a short form for Java Message Service. JMS API allows applications to create, send\/receive, and read messages. Messaging is a method of communication between applications. A messaging client can send messages to, and receive messages from other clients. Messaging enables communication between software applications in a loosely coupled environment. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1321","post","type-post","status-publish","format-standard","hentry","category-automation","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1321"}],"version-history":[{"count":11,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1321\/revisions"}],"predecessor-version":[{"id":19794,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1321\/revisions\/19794"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}