public class JMSQueueBrowser extends JMSClient
JMS_LOGGER, NO_TX, QUEUE, SESSION_TX, TOPIC| Constructor and Description | 
|---|
| JMSQueueBrowser(java.lang.String destinationName,
               java.lang.String selector,
               javax.jms.Session session,
               java.util.Properties env) | 
| JMSQueueBrowser(java.lang.String destinationName,
               java.lang.String conFactoryName,
               java.lang.String selector,
               java.util.Properties env) | 
| JMSQueueBrowser(java.lang.String destinationName,
               java.lang.String conFactoryName,
               java.lang.String selector,
               java.util.Properties env,
               java.lang.String providerUserName,
               java.lang.String providerPassword) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Releses all resources that is cached by the client like JMS Session and
 Connection. | 
| JMSClient | createClientInSession()Creates another JMSClient of the same type in this clients Session. | 
| JMSClient | createClientInSession(java.lang.String destinationName,
                     java.util.Properties env)Creates another JMSClient of the same type in this clients Session. | 
| java.util.List<JMSData> | getAllMessages() | 
| java.util.List<JMSData> | getMessages(int n) | 
| boolean | isMessageInQueue() | 
| void | waitTillMessageInQueue(long sleepFrequency)This call blocks for  MAX_ITERATIONS*sleepFrequencyfor the 
 message in the Queue. | 
commitTx, getDestinationName, getEnvironment, getProviderPassword, getProviderUserName, getSession, isValid, rollbackTxpublic JMSQueueBrowser(java.lang.String destinationName,
                       java.lang.String conFactoryName,
                       java.lang.String selector,
                       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.env - The env properties to create an InitialContext.MXExceptionpublic JMSQueueBrowser(java.lang.String destinationName,
                       java.lang.String conFactoryName,
                       java.lang.String selector,
                       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.env - The env properties to create an InitialContext.providerUserName - The provider connection user.providerPassword - The provider connection password.MXExceptionpublic JMSQueueBrowser(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 void close()
JMSClientpublic void waitTillMessageInQueue(long sleepFrequency)
MAX_ITERATIONS*sleepFrequency for the 
 message in the Queue.sleepFrequency - the check frequesncy in millis.public boolean isMessageInQueue()
public java.util.List<JMSData> getAllMessages()
selector.public java.util.List<JMSData> getMessages(int n)
public JMSClient createClientInSession() throws MXException
JMSClientcreateClientInSession in class JMSClientMXExceptionpublic JMSClient createClientInSession(java.lang.String destinationName, java.util.Properties env) throws MXException
JMSClientcreateClientInSession in class JMSClientMXException