|
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.JmsTopicContext
A JmsTopicContext represents a JMS TopicSession, with a JMS TopicPublisher and TopicPublisher pair. The TopicPublisher and TopicSubscriber 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 | |
JmsTopicContext(JmsDestination dest,
javax.jms.TopicConnection connection)
Creates a new JmsTopicContext 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 JmsTopicContext(JmsDestination dest, javax.jms.TopicConnection connection)
dest
- the JmsDestination associated with the instance.connection
- the TopicConnection associated with the instance.Method Detail |
public boolean send(JmsDestination dest, Envelope env) throws java.lang.Exception
JmsContext
JmsConnector.onSend(org.jumpi.spi.Envelope)
.
send
in class JmsContext
dest
- 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
JmsContext
JmsConnector.onRecv(org.jumpi.spi.Envelope)
.
recv
in class JmsContext
dest
- 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 JmsContext
JmsContext.close()
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |