WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.jta.jmsjdbc
Class QueueSend

java.lang.Object
  |
  +--examples.jta.jmsjdbc.QueueSend

class QueueSend
extends java.lang.Object

Utility class uses to create JMS objects and send a message to a queue.


Constructor Summary
QueueSend(javax.naming.InitialContext ictx, java.lang.String queueConnFactoryName, java.lang.String queueName)
           
 
Method Summary
 void close()
          Close JMS objects.
 void init()
          Create all the necessary objects for sending messages to a JMS queue.
 void send(java.lang.String message)
          Send a message to a JMS queue.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueSend

public QueueSend(javax.naming.InitialContext ictx,
                 java.lang.String queueConnFactoryName,
                 java.lang.String queueName)
Method Detail

close

public void close()
           throws javax.jms.JMSException
Close JMS objects.
Throws:
javax.jms.JMSException - if JMS fails to close objects due to internal error

init

public void init()
          throws javax.naming.NamingException,
                 javax.jms.JMSException
Create all the necessary objects for sending messages to a JMS queue.
Parameters:
ctx - JNDI initial context.
queueName - Name of queue.
Throws:
javax.naming.NamingException - if operation cannot be performed
javax.jms.JMSException - if JMS fails to initialize due to internal error

send

public void send(java.lang.String message)
          throws javax.jms.JMSException
Send a message to a JMS queue.
Throws:
javax.jms.JMSException - if JMS fails to send message due to internal error

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.