public class JMSQueueConsumer extends JMSConsumer
RECEIVEMODE_NOWAIT, RECEIVEMODE_WAITJMS_LOGGER, NO_TX, QUEUE, SESSION_TX, TOPIC| Constructor and Description | 
|---|
| JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String selector,
                javax.jms.Session session,
                java.util.Properties env) | 
| JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                int receiveMode,
                long waitTimeOut,
                java.util.Properties env) | 
| JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                int receiveMode,
                long waitTimeOut,
                java.util.Properties env,
                java.lang.String providerUserName,
                java.lang.String providerPassword) | 
| JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                java.util.Properties env) | 
| JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                java.util.Properties env,
                java.lang.String providerUserName,
                java.lang.String providerPassword) | 
| Modifier and Type | Method and Description | 
|---|---|
| JMSClient | createClientInSession()Creates another JMSClient of the same type in this clients Session. | 
| int | deleteAllMessages()Delete all messages from the Queue which matches the selction criterion. | 
| java.util.Map<java.lang.String,java.lang.String> | deleteMessage()Deletes the first message that metaches the selection criterion from the Queue. | 
| java.lang.String | deleteMessage(boolean autocommit)Deletes the first message that metaches the selection criterion from the Queue. | 
close, createClientInSession, createJMSProducerInSession, getMessagecommitTx, getDestinationName, getEnvironment, getProviderPassword, getProviderUserName, getSession, isValid, rollbackTxpublic JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                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.env - The env properties to create an InitialContext.MXExceptionpublic JMSQueueConsumer(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 JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                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.env - The env properties to create an InitialContext.providerUserName - The provider connection user.providerPassword - The provider connection password.MXExceptionpublic JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                int receiveMode,
                long waitTimeOut,
                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.receiveMode - The default receive mode is RECEIVEMODE_NOWAIT.waitTimeOut - The wait timeout in milliseconds.env - The env properties to create an InitialContext.MXExceptionpublic JMSQueueConsumer(java.lang.String destinationName,
                java.lang.String conFactoryName,
                java.lang.String selector,
                int txMode,
                int receiveMode,
                long waitTimeOut,
                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.receiveMode - The default receive mode is RECEIVEMODE_NOWAIT.waitTimeOut - The wait timeout in milliseconds.env - The env properties to create an InitialContext.providerUserName - The provider connection user.providerPassword - The provider connection password.MXExceptionpublic java.util.Map<java.lang.String,java.lang.String> deleteMessage()
                                                               throws MXException
MXExceptionpublic java.lang.String deleteMessage(boolean autocommit)
                               throws MXException
autocommit - if set to true will commit the JMS session transaction if a
 transacted session is on.JMSData.MESSAGE_UNIQUEID of the deleted message.MXExceptionpublic int deleteAllMessages()
                      throws MXException
MXExceptionpublic JMSClient createClientInSession() throws MXException
JMSClientcreateClientInSession in class JMSConsumerMXException