com.caucho.jms
Class Jms

java.lang.Object
  extended by com.caucho.jms.Jms

public class Jms
extends java.lang.Object

JMS facade


Constructor Summary
Jms()
           
 
Method Summary
 Connection createConnection()
           
 Session createListener(Connection conn, Destination queue, MessageListener listener)
          Creates a session and listener.
 Session createSession()
          Creates an auto-ack session.
 TextMessage createTextMessage(java.lang.String msg)
           
 Message receive(Destination dest)
           
 Message receive(Destination dest, long timeout)
           
 Message receiveNoWait(Destination dest)
           
 void send(Destination dest, Message msg)
           
 void send(Destination dest, Message msg, int deliveryMode, int priority, long ttl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jms

public Jms()
Method Detail

send

public void send(Destination dest,
                 Message msg)

send

public void send(Destination dest,
                 Message msg,
                 int deliveryMode,
                 int priority,
                 long ttl)

receive

public Message receive(Destination dest)

receive

public Message receive(Destination dest,
                       long timeout)

receiveNoWait

public Message receiveNoWait(Destination dest)

createSession

public Session createSession()
                      throws JmsRuntimeException
Creates an auto-ack session.

Throws:
JmsRuntimeException

createConnection

public Connection createConnection()

createListener

public Session createListener(Connection conn,
                              Destination queue,
                              MessageListener listener)
                       throws JmsRuntimeException
Creates a session and listener.

Throws:
JmsRuntimeException

createTextMessage

public TextMessage createTextMessage(java.lang.String msg)