|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.jms.WmJMSFactory
public class WmJMSFactory
This factory class provides access to connection factories and destinations without the need for JNDI.
Method Summary | |
---|---|
static WmConnectionFactory |
getConnectionFactory()
Get a new instance of a WmConnectionFactory . |
static WmQueue |
getQueue()
Get a new instance of a WmQueue . |
static WmQueue |
getQueue(java.lang.String queueName)
Get a new instance of a WmQueue . |
static WmQueueConnectionFactory |
getQueueConnectionFactory()
Get a new instance of a WmQueueConnectionFactory . |
static javax.jms.TemporaryQueue |
getTemporaryQueue(java.lang.String queueName)
Get a new instance of a TemporaryQueue . |
static javax.jms.TemporaryTopic |
getTemporaryTopic(java.lang.String topicName)
Get a new instance of a TemporaryTopic . |
static WmTopic |
getTopic()
Get a new instance of a WmTopic . |
static WmTopic |
getTopic(java.lang.String topicName)
Get a new instance of a WmTopic . |
static WmTopicConnectionFactory |
getTopicConnectionFactory()
Get a new instance of a WmTopicConnectionFactory . |
static WmConnectionFactory |
getXAConnectionFactory()
Get a new instance of a WmConnectionFactory that implements the XAConnectionFactory interface. |
static WmQueueConnectionFactory |
getXAQueueConnectionFactory()
Get a new instance of a WmQueueConnectionFactory that implements the XAQueueConnectionFactory interface. |
static WmTopicConnectionFactory |
getXATopicConnectionFactory()
Get a new instance of a WmTopicConnectionFactory that implements the XATopicConnectionFactory interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WmConnectionFactory getConnectionFactory() throws javax.jms.JMSException
WmConnectionFactory
. The returned ConnectionFactory will by default connect to the default Broker on the local host.
javax.jms.JMSException
- if the ConnectionFactory could not be instantiated.public static WmQueueConnectionFactory getQueueConnectionFactory() throws javax.jms.JMSException
WmQueueConnectionFactory
. The returned QueueConnectionFactory will by default connect to the default Broker on the local
host.
javax.jms.JMSException
- if the QueueConnectionFactory could not be instantiated.public static WmTopicConnectionFactory getTopicConnectionFactory() throws javax.jms.JMSException
WmTopicConnectionFactory
. The returned TopicConnectionFactory will by default connect to the default Broker on the local
host.
javax.jms.JMSException
- if the TopicConnectionFactory could not be instantiated.public static WmConnectionFactory getXAConnectionFactory() throws javax.jms.JMSException
WmConnectionFactory
that implements the XAConnectionFactory interface. The returned XAConnectionFactory will by default
connect to the default Broker on the local host.
javax.jms.JMSException
- if the XAConnectionFactory could not be instantiated.public static WmQueueConnectionFactory getXAQueueConnectionFactory() throws javax.jms.JMSException
WmQueueConnectionFactory
that implements the XAQueueConnectionFactory interface. The returned XAQueueConnectionFactory
will by default connect to the default Broker on the local host.
javax.jms.JMSException
- if the XAQueueConnectionFactory could not be instantiated.public static WmTopicConnectionFactory getXATopicConnectionFactory() throws javax.jms.JMSException
WmTopicConnectionFactory
that implements the XATopicConnectionFactory interface. The returned XATopicConnectionFactory
will by default connect to the default Broker on the local host.
javax.jms.JMSException
- if the XATopicConnectionFactory could not be instantiated.public static WmQueue getQueue(java.lang.String queueName) throws javax.jms.JMSException
WmQueue
.
queueName
- the name of the queue
javax.jms.JMSException
- if the WmQueue could not be instantiated.public static WmQueue getQueue() throws javax.jms.JMSException
WmQueue
.
A queue must have a name. Any attempt to use this queue before setting its name with WmDestination.setName(java.lang.String)
will result in an error. It is recommended
that the getQueue(String)
method be used.
javax.jms.JMSException
- if the WmQueue could not be instantiated.public static WmTopic getTopic(java.lang.String topicName) throws javax.jms.JMSException
WmTopic
.
topicName
- the name of the topic
javax.jms.JMSException
- if the WmTopic could not be instantiated.public static WmTopic getTopic() throws javax.jms.JMSException
WmTopic
.
A topic must have a name. Any attempt to use this topic before setting its name with WmDestination.setName(java.lang.String)
will result in an error. It is recommended
that the getQueue(String)
method be used.
javax.jms.JMSException
- if the WmTopic could not be instantiated.public static javax.jms.TemporaryQueue getTemporaryQueue(java.lang.String queueName) throws javax.jms.JMSException
TemporaryQueue
.
This method is primarily useful for inbound marshaling methods. If a JMSReplyTo destination is a TemporaryQueue, this method can be used to instantiate an instance of that TemporaryQueue so the recipient can use the destination for replies.
javax.jms.JMSException
- if the TemporaryQueue could not be instantiated.public static javax.jms.TemporaryTopic getTemporaryTopic(java.lang.String topicName) throws javax.jms.JMSException
TemporaryTopic
.
This method is primarily useful for inbound marshaling methods. If a JMSReplyTo destination is a TemporaryTopic, this method can be used to instantiate an instance of that TemporaryTopic so the recipient can use the destination for replies.
javax.jms.JMSException
- if the TemporaryTopic could not be instantiated.
|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |