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
 void connect()
          Creates a new session, sender/publisher, and receiver/subscriber.
 javax.jms.TextMessage createMessage()
           
 void disconnect()
          Closes the JMS session.
 javax.jms.Connection getConnection()
           
 java.lang.String getName()
           
 boolean isConnected()
           
 javax.jms.Message receive()
           
 void send(javax.jms.Message theMessage)
          Sends the given message to the JMS destination.
 

Method Detail

getName

java.lang.String getName()
                         throws javax.jms.JMSException
Returns:
the name of the Queue or Topic
Throws:
javax.jms.JMSException

createMessage

javax.jms.TextMessage createMessage()
                                    throws javax.jms.JMSException
Returns:
a new JMS Message object.
Throws:
javax.jms.JMSException

connect

void connect()
             throws javax.jms.JMSException
Creates a new session, sender/publisher, and receiver/subscriber.

Throws:
javax.jms.JMSException

disconnect

void disconnect()
                throws javax.jms.JMSException
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

void send(javax.jms.Message theMessage)
          throws javax.jms.JMSException
Sends the given message to the JMS destination.

Parameters:
theMessage - message to send
Throws:
javax.jms.JMSException

receive

javax.jms.Message receive()
                          throws javax.jms.JMSException
Returns:
a message received from the JMS destination.
Throws:
javax.jms.JMSException


Copyright © 2001-2011 University Health Network. All Rights Reserved.