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.

Constructor Index

 o TopicPool()

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(TopicPool)
 o send(String)
Send a message to a JMS Topic.

Constructors

 o TopicPool
 public TopicPool()

Methods

 o init
 public void init(Context ctx,
                  String topicName) 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 Topic.

 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(TopicPool lps) throws IOException, JMSException
 o getInitialContext
 protected static InitialContext getInitialContext(String url) throws NamingException

All Examples  This Package  JMS Examples