|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jms.MessageProducerSession com.atomikos.jms.TopicPublisherSession
public class TopicPublisherSession
This is a long-lived topic sender session, representing a self-refreshing JMS session that can be used to send JMS messages in a transactional way. The client code does not have to worry about refreshing or closing JMS objects explicitly: this is all handled in this class. All the client needs to do is indicate when it wants to start or stop using the session.
Note that instances are not meant for concurrent use by different threads: each thread should use a private instance instead.
Important: if you change any properties AFTER sending on the session, then you will need to explicitly stop and restart the session to have the changes take effect!
Topic functionality in this product was sponsored by Webtide.
Constructor Summary | |
---|---|
TopicPublisherSession()
|
Method Summary | |
---|---|
protected String |
getDestinationName()
|
protected String |
getReplyToDestinationName()
|
javax.jms.Topic |
getReplyToTopic()
Gets the topic to reply to. |
javax.jms.Topic |
getTopic()
Gets the topic to send to. |
TopicConnectionFactoryBean |
getTopicConnectionFactoryBean()
Gets the connection factory. |
void |
setReplyToTopic(javax.jms.Topic topic)
Sets the topic to reply to (optional). |
void |
setTopic(javax.jms.Topic topic)
Sets the topic to send to (required). |
void |
setTopicConnectionFactoryBean(TopicConnectionFactoryBean bean)
Sets the connection factory to use (required). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopicPublisherSession()
Method Detail |
---|
public javax.jms.Topic getTopic()
public void setTopic(javax.jms.Topic topic)
topic
- public void setReplyToTopic(javax.jms.Topic topic)
topic
- public javax.jms.Topic getReplyToTopic()
public void setTopicConnectionFactoryBean(TopicConnectionFactoryBean bean)
bean
- public TopicConnectionFactoryBean getTopicConnectionFactoryBean()
protected String getDestinationName()
getDestinationName
in class MessageProducerSession
protected String getReplyToDestinationName()
getReplyToDestinationName
in class MessageProducerSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |