Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Transports and Interfaces: Siebel Enterprise Application Integration > EAI JMS Transport > About the JMS Publish-and-Subscribe ModelThe traditional message model, where a message is sent to a queue and later removed by a single receiver, is called point-to-point messaging. In addition to this familiar model, JMS also supports the publish-and-subscribe messaging model. Here, messages are published to topics, rather than sent to queues. Interested receivers subscribe to individual topics and receive a copy of each message published to the topic. To subscribe, a subscriber registers with the topic, providing a unique identifier. For more information about the JMS publish-and-subscribe model, see: http://www.oracle.com/technetwork/java/jms/index.html JMS queues and topics are identified by their JNDI names. A JNDI naming service is required to use the JMS Transport. The JNDI naming service contains entries for the JMS queues (implementers of javax.jms.Queue) and topics (implementers of javax.jms.Topic) used, as well as the necessary JMS connection factories (implementers of either javax.jms.QueueFactory or javax.jms.Topic). All methods that receive messages automatically time out if no message is available. The timeout length is three seconds by default and can be specified by the ReceiveTimeout argument. A value of zero for this argument disables the timeout, causing the method to wait indefinitely for a message to arrive. Whether a call to Receive or Subscribe timed out is provided as the TimedOut property of the output property set. Subscriptions to JMS topics are always durable subscriptions. The term dispatch is used to refer to the operation of calling a business service or workflow, passing as input, the content of a newly received message. |
![]() |
![]() ![]() |
Transports and Interfaces: Siebel Enterprise Application Integration | Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |