All Examples  This Package  JMS Examples

Class examples.jms.sessionpool.QueuePool

examples.jms.sessionpool.QueuePool

public class QueuePool
This example shows how to establish a pool of server-side message listeners that process incoming messages in parallel. This class establishes the listener pool, and then sends messages to the queue that the pool has registered to receive.

Author:
Copyright (c) 1999 by BEA Systems. All Rights Reserved.

Constructor Index

 o QueuePool()

Method Index

 o close()
Close JMS objects.
 o getInitialContext(String)
 o init(Context, String)
Create all the necessary objects for sending messages to a JMS queue.
 o main(String[])
 o readAndSend(QueuePool)
 o send(String)
Send a message to a JMS Queue.

Constructors

 o QueuePool
 public QueuePool()

Methods

 o init
 public void init(Context ctx,
                  String queueName) throws NamingException, JMSException
Create all the necessary objects for sending messages to a JMS queue.

 o send
 public void send(String message) throws JMSException
Send a message to a JMS Queue.

 o close
 public void close() throws JMSException
Close JMS objects.

 o main
 public static void main(String args[]) throws Exception
 o readAndSend
 protected static void readAndSend(QueuePool qp) throws IOException, JMSException
 o getInitialContext
 protected static InitialContext getInitialContext(String url) throws NamingException

All Examples  This Package  JMS Examples