Package ca.uhn.hl7v2.protocol.impl
Class JMSQueueAdapter
java.lang.Object
ca.uhn.hl7v2.protocol.impl.JMSQueueAdapter
- All Implemented Interfaces:
JMSDestination
An implementation of
JMSDestination that uses an underlying
Queue.- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Constructor Summary
ConstructorsConstructorDescriptionJMSQueueAdapter(javax.jms.QueueConnection theConnection, javax.jms.Queue theDestination) -
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.
-
Constructor Details
-
JMSQueueAdapter
- Parameters:
theConnection-theDestination-
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceJMSDestination- Returns:
- the name of the Queue or Topic
- Throws:
javax.jms.JMSException- See Also:
-
createMessage
- Specified by:
createMessagein interfaceJMSDestination- Returns:
- a new JMS Message object.
- Throws:
javax.jms.JMSException- See Also:
-
connect
Description copied from interface:JMSDestinationCreates a new session, sender/publisher, and receiver/subscriber.- Specified by:
connectin interfaceJMSDestination- Throws:
javax.jms.JMSException- See Also:
-
disconnect
Description copied from interface:JMSDestinationCloses the JMS session.- Specified by:
disconnectin interfaceJMSDestination- Throws:
javax.jms.JMSException- See Also:
-
send
Description copied from interface:JMSDestinationSends the given message to the JMS destination.- Specified by:
sendin interfaceJMSDestination- Parameters:
theMessage- message to send- Throws:
javax.jms.JMSException- See Also:
-
receive
- Specified by:
receivein interfaceJMSDestination- Returns:
- a message received from the JMS destination.
- Throws:
javax.jms.JMSException- See Also:
-
isConnected
- Specified by:
isConnectedin interfaceJMSDestination- Returns:
- true if connected.
- See Also:
-
getConnection
- Specified by:
getConnectionin interfaceJMSDestination- Returns:
- the JMS Connection underlying this destination
- See Also:
-