public class Jms
extends java.lang.Object
Constructor and Description |
---|
Jms() |
Modifier and Type | Method and Description |
---|---|
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) |
public void send(Destination dest, Message msg)
public void send(Destination dest, Message msg, int deliveryMode, int priority, long ttl)
public Message receive(Destination dest)
public Message receive(Destination dest, long timeout)
public Message receiveNoWait(Destination dest)
public Session createSession() throws JmsRuntimeException
JmsRuntimeException
public Connection createConnection()
public Session createListener(Connection conn, Destination queue, MessageListener listener) throws JmsRuntimeException
JmsRuntimeException
public TextMessage createTextMessage(java.lang.String msg)