1 / 10

JMS

JMS. Aino Andriessen. Messaging. a-synchrone communicatie Publish-Subscribe Messaging Point-To-Point Messaging. Point to Point. Queue. Publish - Subscribe. Topic (non) durable. JMS. javax.jms verzameling interfaces Connection Session MessageListener MessageConsumer en Producer

Download Presentation

JMS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JMS Aino Andriessen

  2. Messaging • a-synchrone communicatie • Publish-Subscribe Messaging • Point-To-Point Messaging

  3. Point to Point • Queue

  4. Publish - Subscribe • Topic • (non) durable

  5. JMS • javax.jms • verzameling interfaces • Connection • Session • MessageListener • MessageConsumer en Producer • Queue • Topic • Implementatie is dus nodig • IBM MQ,Tibco,Sonic, ActiveMQ, Oracle AQ, ... • Vaak als EJB • Message Driven Bean (MDB)

  6. Architectuur

  7. JMS - Primary features The primary features of JMS are as follows: • Connection Factories are used in JMS to create connections to a specific JMS provider. • In JMS, both Publish-Subscribe Messaging and Point-To-Point are implemented and defined by separate interfaces so that a Provider does not have to support both. • JMS defines the concept of a Topic or a Queue as the target for a Message. Topics are used for Publish-Subscribe Messaging. Queues are used for Point-to-Point Messaging. • The Providers’ code is defined by interfaces in JMS, freeing the implementation from the limitations of subclassing. • JMS provides support for distributed transactions.

  8. Demo Laptop consumer Suse VM Message Listener ActiveMQ (14-318-962:61616) producer jms api TEST.FOO jms api

  9. 'poor man messaging' • java.util.Queue

  10. More info • http://java.sun.com/products/jms/tutorial/ • http://my.execpc.com/~gopalan/jms/jms.html • http://www.javaskyline.com/learnjms.html

More Related