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-2000 by BEA Systems, Inc. All Rights Reserved.
-
QueuePool()
-
-
close()
- Close JMS objects.
-
getInitialContext(String)
-
-
init(Context, String)
- Create all the necessary objects for sending
messages to a JMS queue.
-
main(String[])
-
-
readAndSend(QueuePool)
-
-
send(String)
- Send a message to a JMS Queue.
QueuePool
public QueuePool()
init
public void init(Context ctx,
String queueName) throws NamingException, JMSException
- Create all the necessary objects for sending
messages to a JMS queue.
send
public void send(String message) throws JMSException
- Send a message to a JMS Queue.
close
public void close() throws JMSException
- Close JMS objects.
main
public static void main(String args[]) throws Exception
readAndSend
protected static void readAndSend(QueuePool qp) throws IOException, JMSException
getInitialContext
protected static InitialContext getInitialContext(String url) throws NamingException
All Examples This Package JMS Examples