All Examples This Package JMS Examples
Class examples.jms.sessionpool.TopicPool
examples.jms.sessionpool.TopicPool
- public class TopicPool
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 topic that the pool has registered to receive.
- Author:
- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
-
TopicPool()
-
-
close()
- Close JMS objects.
-
getInitialContext(String)
-
-
init(Context, String)
- Create all the necessary objects for sending
messages to a JMS queue.
-
main(String[])
-
-
readAndSend(TopicPool)
-
-
send(String)
- Send a message to a JMS Topic.
TopicPool
public TopicPool()
init
public void init(Context ctx,
String topicName) 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 Topic.
close
public void close() throws JMSException
- Close JMS objects.
main
public static void main(String args[]) throws Exception
readAndSend
protected static void readAndSend(TopicPool lps) throws IOException, JMSException
getInitialContext
protected static InitialContext getInitialContext(String url) throws NamingException
All Examples This Package JMS Examples