Package ca.uhn.hl7v2.protocol.impl
Class JMSTopicTransport
java.lang.Object
ca.uhn.hl7v2.protocol.impl.AbstractTransport
ca.uhn.hl7v2.protocol.impl.AbstractJMSTransport
ca.uhn.hl7v2.protocol.impl.JMSTopicTransport
- All Implemented Interfaces:
TransportLayer
A
TransportLayer that uses a JMS Topic.- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.protocol.impl.AbstractJMSTransport
CLIENT_ID_KEY, CONNECTION_METADATA_KEY, DESTINATION_NAME_KEY -
Constructor Summary
ConstructorsConstructorDescriptionJMSTopicTransport(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination) JMSTopicTransport(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination, String theMessageSelector) -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms connection as described in TransportLayer.connect().voidPerforms disconnection as described in TransportLayer.disconnect().javax.jms.Connectionprotected Stringprotected javax.jms.Messageprotected javax.jms.Messageprotected voidsendJMS(javax.jms.Message theMessage) Sends a message to the underlying DestinationMethods inherited from class ca.uhn.hl7v2.protocol.impl.AbstractJMSTransport
doReceive, doSend, getCommonMetadata, toMessage, toTransportableMethods inherited from class ca.uhn.hl7v2.protocol.impl.AbstractTransport
connect, disconnect, isConnected, receive, sendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.protocol.TransportLayer
connect, disconnect, isConnected, receive, send
-
Constructor Details
-
JMSTopicTransport
- Parameters:
theConnection- the connection over which messages are written and readtheDestination- the destination to/from which messages are written/read
-
JMSTopicTransport
public JMSTopicTransport(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination, String theMessageSelector) - Parameters:
theConnection- the connection over which messages are written and readtheDestination- the destination to/from which messages are written/readtheMessageSelector- a JMS message selector which restricts the inbound messages that are received (se JMS docs)
-
-
Method Details
-
getDestinationName
- Specified by:
getDestinationNamein classAbstractJMSTransport- Returns:
- the name of the destination at which messages are written and read
- Throws:
javax.jms.JMSException- See Also:
-
getConnection
- Specified by:
getConnectionin classAbstractJMSTransport- Returns:
- the QueueConnection or TopicConnection over which messages are transported
- See Also:
-
getMessage
- Specified by:
getMessagein classAbstractJMSTransport- Returns:
- a new JMS Message created on the sending Session.
- Throws:
javax.jms.JMSException- See Also:
-
sendJMS
Description copied from class:AbstractJMSTransportSends a message to the underlying Destination- Specified by:
sendJMSin classAbstractJMSTransport- Throws:
javax.jms.JMSException- See Also:
-
receiveJMS
- Specified by:
receiveJMSin classAbstractJMSTransport- Returns:
- the next available message from the underlying Destination
- Throws:
javax.jms.JMSException- See Also:
-
doConnect
Description copied from class:AbstractTransportPerforms connection as described in TransportLayer.connect(). The connect() method of this class delegates to doConnect() after some internal housekeeping.- Specified by:
doConnectin classAbstractTransport- Throws:
TransportException
-
doDisconnect
Description copied from class:AbstractTransportPerforms disconnection as described in TransportLayer.disconnect(). The disconnect() method of this class delegates to doDisconnect() after some internal housekeeping.- Specified by:
doDisconnectin classAbstractTransport- Throws:
TransportException- See Also:
-