|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cactus.internal.client.jms.JmsClientHelper
public class JmsClientHelper
Helper class to send a JMS message.
| Constructor Summary | |
|---|---|
JmsClientHelper()
|
|
| Method Summary | |
|---|---|
protected static javax.jms.QueueConnection |
createQueueConnection()
Create a JMS Queue Connection to be able to send messages later on. |
static javax.jms.QueueSender |
createQueueSender(java.lang.String theQueueName)
Creates a Queue Sender to send JMS messages. |
static javax.naming.InitialContext |
getInitialContext()
|
static javax.jms.Queue |
getQueue(java.lang.String theQueueName)
Lookup a queue in JNDI. |
static javax.jms.QueueConnectionFactory |
getQueueConnnectionFactory()
|
static javax.jms.QueueSession |
getQueueSession()
Return the Queue session that we will use to send all JMS messages (the Session is created if it is the first time this method is called). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JmsClientHelper()
| Method Detail |
|---|
protected static javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
javax.jms.JMSException - if an error occurredpublic static javax.jms.QueueSession getQueueSession()
public static javax.naming.InitialContext getInitialContext()
public static javax.jms.QueueConnectionFactory getQueueConnnectionFactory()
public static javax.jms.Queue getQueue(java.lang.String theQueueName)
theQueueName - the JNDI name of the queue to look up
public static javax.jms.QueueSender createQueueSender(java.lang.String theQueueName)
theQueueName - the JNDI name of the queue to use to send messages
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||