public class JMSTopicTransport extends AbstractJMSTransport
TransportLayer
that uses a JMS Topic.CLIENT_ID_KEY, CONNECTION_METADATA_KEY, DESTINATION_NAME_KEY
Constructor and Description |
---|
JMSTopicTransport(javax.jms.TopicConnection theConnection,
javax.jms.Topic theDestination) |
JMSTopicTransport(javax.jms.TopicConnection theConnection,
javax.jms.Topic theDestination,
String theMessageSelector) |
Modifier and Type | Method and Description |
---|---|
void |
doConnect()
Performs connection as described in TransportLayer.connect().
|
void |
doDisconnect()
Performs disconnection as described in TransportLayer.disconnect().
|
javax.jms.Connection |
getConnection() |
protected String |
getDestinationName() |
protected javax.jms.Message |
getMessage() |
protected javax.jms.Message |
receiveJMS() |
protected void |
sendJMS(javax.jms.Message theMessage)
Sends a message to the underlying Destination
|
doReceive, doSend, getCommonMetadata, toMessage, toTransportable
connect, disconnect, isConnected, receive, send
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, disconnect, isConnected, receive, send
public JMSTopicTransport(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination)
theConnection
- the connection over which messages are written and readtheDestination
- the destination to/from which messages are written/readpublic JMSTopicTransport(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination, String theMessageSelector)
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)protected String getDestinationName() throws javax.jms.JMSException
getDestinationName
in class AbstractJMSTransport
javax.jms.JMSException
AbstractJMSTransport.getDestinationName()
public javax.jms.Connection getConnection()
getConnection
in class AbstractJMSTransport
AbstractJMSTransport.getConnection()
protected javax.jms.Message getMessage() throws javax.jms.JMSException
getMessage
in class AbstractJMSTransport
javax.jms.JMSException
AbstractJMSTransport.getMessage()
protected void sendJMS(javax.jms.Message theMessage) throws javax.jms.JMSException
AbstractJMSTransport
sendJMS
in class AbstractJMSTransport
javax.jms.JMSException
ca.uhn.hl7v2.protocol.impl.AbstractJMSTransport#send(javax.jms.Message)
protected javax.jms.Message receiveJMS() throws javax.jms.JMSException
receiveJMS
in class AbstractJMSTransport
javax.jms.JMSException
AbstractTransport.receive()
public void doConnect() throws TransportException
AbstractTransport
doConnect
in class AbstractTransport
TransportException
ca.uhn.hl7v2.protocol.AbstractJMSTransport#doConnect()
public void doDisconnect() throws TransportException
AbstractTransport
doDisconnect
in class AbstractTransport
TransportException
AbstractTransport.doDisconnect()
Copyright © 2001–2017 University Health Network. All rights reserved.