All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bitronix.tm.resource.jms.TopicSubscriberWrapper Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
package bitronix.tm.resource.jms;

import javax.jms.TopicSubscriber;
import javax.jms.Topic;
import javax.jms.JMSException;

/**
 * {@link TopicSubscriber} wrapper that adds XA enlistment semantics.
 * 

© Bitronix Software

* * @author lorban */ public class TopicSubscriberWrapper extends MessageConsumerWrapper implements TopicSubscriber { public TopicSubscriberWrapper(TopicSubscriber topicSubscriber, DualSessionWrapper session, PoolingConnectionFactory poolingConnectionFactory) { super(topicSubscriber, session, poolingConnectionFactory); } public Topic getTopic() throws JMSException { return ((TopicSubscriber) getMessageConsumer()).getTopic(); } public boolean getNoLocal() throws JMSException { return ((TopicSubscriber) getMessageConsumer()).getNoLocal(); } public String toString() { return "a TopicSubscriberWrapper of " + session; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy