All Examples This Package JMS Examples
Class examples.jms.queue.QueueSend
examples.jms.queue.QueueSend
- public class QueueSend
This example shows how to establish a connection to a JMS queue,
and send messages to the queue. The classes in this package
operate on the same JMS queue. Run the classes together to
witness messages being sent and received and to browse the queue for messages.
The class is used to send messages to the queue.
- Author:
- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
-
JMS_FACTORY
-
-
JNDI_FACTORY
-
-
QUEUE
-
-
QueueSend()
-
-
close()
- Close JMS objects.
-
init(Context, String)
- Create all the necessary objects for sending
messages to a JMS queue.
-
main(String[])
-
-
send(String)
- Send a message to a JMS queue.
JNDI_FACTORY
public static final String JNDI_FACTORY
JMS_FACTORY
public static final String JMS_FACTORY
QUEUE
public static final String QUEUE
QueueSend
public QueueSend()
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
All Examples This Package JMS Examples