All Examples  This Package  JMS Examples

Class examples.jms.topic.TopicReceive

examples.jms.topic.TopicReceive

public class TopicReceive
The classes in this package work together to show how to establish a connection to a JMS Topic and receive messages from a Topic. This class is used to receive messages from the Topic.
Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Variable Index

 o JMS_FACTORY
 o JNDI_FACTORY
 o TOPIC

Constructor Index

 o TopicReceive()

Method Index

 o close()
Close JMS objects.
 o init(Context, String)
Create all the necessary objects for sending messages to a JMS queue.
 o main(String[])
 o onMessage(Message)

Variables

 o JNDI_FACTORY
 public static final String JNDI_FACTORY
 o JMS_FACTORY
 public static final String JMS_FACTORY
 o TOPIC
 public static final String TOPIC

Constructors

 o TopicReceive
 public TopicReceive()

Methods

 o onMessage
 public void onMessage(Message msg)
 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 close
 public void close() throws JMSException
Close JMS objects.

 o main
 public static void main(String args[]) throws Exception

All Examples  This Package  JMS Examples