public class JMSTopicSubscriber extends JMSConsumer
consumer, receiveMode, RECEIVEMODE_NOWAIT, RECEIVEMODE_WAIT, selector, subscriptionName, waitTimeOutconFactoryName, conn, destinationHandle, destinationName, destinationType, env, isExternalSession, JMS_LOGGER, jmsLogger, NO_TX, providerPassword, providerUserName, QUEUE, session, SESSION_TX, TOPIC, txMode, valid| Constructor and Description |
|---|
JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String selector,
javax.jms.Session session,
java.util.Properties env) |
JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String selector,
javax.jms.Session session,
java.lang.String subscriptionName,
java.util.Properties env) |
JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String conFactoryName,
java.lang.String selector,
int txMode,
java.util.Properties env) |
JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String conFactoryName,
java.lang.String selector,
int txMode,
java.lang.String subscriptionName,
java.util.Properties env) |
JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String conFactoryName,
java.lang.String selector,
int txMode,
java.lang.String subscriptionName,
java.util.Properties env,
java.lang.String providerUserName,
java.lang.String providerPassword) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createClient()
Internal method to create the MessageConsumer from the JMS Session.
|
JMSClient |
createClientInSession()
Creates another JMSClient of the same type in this clients Session.
|
void |
unsubscribe()
Unsubscribe the durable subscription
subscriptionName. |
close, createClientInSession, createJMSProducerInSession, getJMSMessage, getMessagecommitTx, createConnection, createSession, getDestinationName, getEnvironment, getProviderPassword, getProviderUserName, getSession, invalidate, isValid, rollbackTx, setDestinationpublic JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String conFactoryName,
java.lang.String selector,
int txMode,
java.lang.String subscriptionName,
java.util.Properties env)
throws MXException
destinationName - the JNDI name of the Destination.conFactoryName - the JNDI name of the ConnectionFactory.selector - The message selector for the MessageConsumer.txMode - The transaction mode for the JMS client Session.subscriptionName - The subscription name in case of subscribing to a Topic.env - The env properties to create an InitialContext.MXExceptionpublic JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String selector,
javax.jms.Session session,
java.lang.String subscriptionName,
java.util.Properties env)
throws MXException
destinationName - the JNDI name of the Destination.selector - The message selector for the MessageConsumer.session - the JMS session from which the client should be created.subscriptionName - The subscription name in case of subscribing to a Topic.env - The env properties to create an InitialContext.MXExceptionpublic JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String conFactoryName,
java.lang.String selector,
int txMode,
java.util.Properties env)
throws java.lang.Exception
destinationName - the JNDI name of the Destination.conFactoryName - the JNDI name of the ConnectionFactory.selector - The message selector for the MessageConsumer.txMode - The transaction mode for the JMS client Session.env - The env properties to create an InitialContext.java.lang.Exceptionpublic JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String selector,
javax.jms.Session session,
java.util.Properties env)
throws MXException
destinationName - the JNDI name of the Destination.selector - The message selector for the MessageConsumer.session - the JMS session from which the client should be created.env - The env properties to create an InitialContext.MXExceptionpublic JMSTopicSubscriber(java.lang.String destinationName,
java.lang.String conFactoryName,
java.lang.String selector,
int txMode,
java.lang.String subscriptionName,
java.util.Properties env,
java.lang.String providerUserName,
java.lang.String providerPassword)
throws MXException
destinationName - the JNDI name of the Destination.conFactoryName - the JNDI name of the ConnectionFactory.selector - The message selector for the MessageConsumer.txMode - The transaction mode for the JMS client Session.subscriptionName - The subscription name in case of subscribing to a Topic.env - The env properties to create an InitialContext.providerUserName - The provider connection user.providerPassword - The provider connection password.MXExceptionprotected void createClient()
throws MXException
JMSClientcreateClient in class JMSConsumerMXExceptionpublic void unsubscribe()
throws java.lang.Exception
subscriptionName.java.lang.Exceptionpublic JMSClient createClientInSession() throws MXException
JMSClientcreateClientInSession in class JMSConsumerMXException