Package ca.uhn.hl7v2.protocol
Interface JMSDestination
- All Known Implementing Classes:
JMSQueueAdapter,JMSTopicAdapter
public interface JMSDestination
A facade for a JMS Queue or Topic.
- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:38 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Creates a new session, sender/publisher, and receiver/subscriber.javax.jms.TextMessagevoidCloses the JMS session.javax.jms.ConnectiongetName()booleanjavax.jms.Messagereceive()voidsend(javax.jms.Message theMessage) Sends the given message to the JMS destination.
-
Method Details
-
getName
- Returns:
- the name of the Queue or Topic
- Throws:
javax.jms.JMSException
-
createMessage
- Returns:
- a new JMS Message object.
- Throws:
javax.jms.JMSException
-
connect
Creates a new session, sender/publisher, and receiver/subscriber.- Throws:
javax.jms.JMSException
-
disconnect
Closes the JMS session.- Throws:
javax.jms.JMSException
-
isConnected
boolean isConnected()- Returns:
- true if connected.
-
getConnection
javax.jms.Connection getConnection()- Returns:
- the JMS Connection underlying this destination
-
send
Sends the given message to the JMS destination.- Parameters:
theMessage- message to send- Throws:
javax.jms.JMSException
-
receive
- Returns:
- a message received from the JMS destination.
- Throws:
javax.jms.JMSException
-