|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.protocol.impl.JMSQueueAdapter
public class JMSQueueAdapter
An implementation of JMSDestination that uses an underlying
Queue.
| Constructor Summary | |
|---|---|
JMSQueueAdapter(javax.jms.QueueConnection theConnection,
javax.jms.Queue theDestination)
|
|
| 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()
|
String |
getName()
|
boolean |
isConnected()
|
javax.jms.Message |
receive()
|
void |
send(javax.jms.Message theMessage)
Sends the given message to the JMS destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSQueueAdapter(javax.jms.QueueConnection theConnection,
javax.jms.Queue theDestination)
theConnection - theDestination - | Method Detail |
|---|
public String getName()
throws javax.jms.JMSException
getName in interface JMSDestinationjavax.jms.JMSExceptionJMSDestination.getName()
public javax.jms.TextMessage createMessage()
throws javax.jms.JMSException
createMessage in interface JMSDestinationjavax.jms.JMSExceptionJMSDestination.createMessage()
public void connect()
throws javax.jms.JMSException
JMSDestination
connect in interface JMSDestinationjavax.jms.JMSExceptionJMSDestination.connect()
public void disconnect()
throws javax.jms.JMSException
JMSDestination
disconnect in interface JMSDestinationjavax.jms.JMSExceptionJMSDestination.disconnect()
public void send(javax.jms.Message theMessage)
throws javax.jms.JMSException
JMSDestination
send in interface JMSDestinationtheMessage - message to send
javax.jms.JMSExceptionJMSDestination.send(javax.jms.Message)
public javax.jms.Message receive()
throws javax.jms.JMSException
receive in interface JMSDestinationjavax.jms.JMSExceptionJMSDestination.receive()public boolean isConnected()
isConnected in interface JMSDestinationJMSDestination.isConnected()public javax.jms.Connection getConnection()
getConnection in interface JMSDestinationJMSDestination.getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||