KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > jms > QueueSession

javax.jms
Interface QueueSession

All Superinterfaces:
Runnable, Session
See Also:
Top Examples, Source Code, QueueConnection.createQueueSession(boolean, int), XAQueueSession.getQueueSession()

public QueueBrowser createBrowser(Queue queue)
                           throws JMSException
See Also:
InvalidDestinationException, Session
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QueueBrowser createBrowser(Queue queue,
                                  String messageSelector)
                           throws JMSException
See Also:
InvalidSelectorException, InvalidDestinationException, Session
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Queue createQueue(String queueName)
                  throws JMSException
See Also:
Session
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QueueReceiver createReceiver(Queue queue)
                             throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QueueReceiver createReceiver(Queue queue,
                                    String messageSelector)
                             throws JMSException
See Also:
InvalidSelectorException, InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QueueSender createSender(Queue queue)
                         throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[224]Create queue session
By Anonymous on 2003/04/13 18:41:28  Rate
QueueConnectionFactory queueConnectionFactory; 
 try  {  
   Context ctx = getInitialContext (  ) ; 
   queueConnectionFactory =  ( QueueConnectionFactory ) ctx.lookup ( queueConnectionFactoryBindingName ) ; 
   queueConnection = queueConnectionFactory.createQueueConnection (  ) ; 
   queueSession = queueConnection.createQueueSession ( false, Session.AUTO_ACKNOWLEDGE ) ; 
   Queue queue =  ( Queue ) ctx.lookup ( queueBindingName ) ; 
   queueSender = queueSession.createSender ( queue ) ; 
   queueConnection.start (  ) ; 
   ctx.close (  ) ; 
  }  
 catch ( Exception ex )   {  
   errorHandler.error ( "Error in activateOptions", ex, ErrorCode.GENERIC_FAILURE ) ; 
  }  
 


public TemporaryQueue createTemporaryQueue()
                                    throws JMSException
See Also:
Session
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags