|
Jumpi v1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jumpi.impl.connector.jms10.JmsContext
|
+--org.jumpi.impl.connector.jms10.JmsQueueContext
A JmsQueueContext represents a JMS QueueSession, with a JMS QueueSender and QueueReceiver pair. The QueueSender and QueueReceiver are created lazily on send and receive respectively.
| Field Summary |
| Fields inherited from class org.jumpi.impl.connector.jms10.JmsContext |
dest_, PROPERTY_JMS_CORRELATION_ID, PROPERTY_JMS_RECEIVE_TIMEOUT, PROPERTY_JMS_REPLY_DESTINATION, PROPERTY_JMS_REPLY_WANTED_FLAG, PROPERTY_JMS_TTL |
| Constructor Summary | |
JmsQueueContext(JmsDestination dest,
javax.jms.QueueConnection connection)
Creates a new JmsQueueContext object. |
|
| Method Summary | |
void |
close()
Close the JmsContext, which entails closing any established JMS entities.. |
boolean |
recv(JmsDestination dest,
Envelope env)
Receive an ObjectMessage from the JmsDestination provided. |
boolean |
send(JmsDestination dest,
Envelope env)
Send an ObjectMessage to the JmsDestination provided. |
| Methods inherited from class org.jumpi.impl.connector.jms10.JmsContext |
consolidatedProperties, getCorrelationID, getDestination, getReceiveTimeout, getTTL, isReplyTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JmsQueueContext(JmsDestination dest,
javax.jms.QueueConnection connection)
dest - the JmsDestination associated with the instance.connection - the QueueConnection associated with the instance.| Method Detail |
public boolean send(JmsDestination dest,
Envelope env)
throws java.lang.Exception
JmsContextJmsConnector.onSend(org.jumpi.spi.Envelope).
send in class JmsContextdest - the JmsDestination which may contain a Temporary Destination
to use, instead of the instance's default Destination.env - the Envelope containing the message and customizing
properties.
java.lang.Exception - if any error condition occurs, failing the operation.JmsContext.send(org.jumpi.impl.connector.jms10.JmsDestination, org.jumpi.spi.Envelope)
public boolean recv(JmsDestination dest,
Envelope env)
throws java.lang.Exception
JmsContextJmsConnector.onRecv(org.jumpi.spi.Envelope).
recv in class JmsContextdest - the JmsDestination which may contain a Temporary Destination
to use, instead of the instance's default Destination.env - the Envelope to place the message and containing customizing
properties.
java.lang.Exception - if any error condition occurs, failing the operation.JmsContext.send(org.jumpi.impl.connector.jms10.JmsDestination, org.jumpi.spi.Envelope)public void close()
JmsContext
close in class JmsContextJmsContext.close()
|
Jumpi v1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||