|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.jms.ConnectionFactoryHelper
A helper for creating connections from jms connection factories.
| Constructor Summary | |
ConnectionFactoryHelper()
|
|
| Method Summary | |
static javax.jms.QueueConnection |
createQueueConnection(Object factory)
Create a queue connection from the given factory. |
static javax.jms.QueueConnection |
createQueueConnection(Object factory,
String username,
String password)
Create a queue connection from the given factory. |
static javax.jms.TopicConnection |
createTopicConnection(Object factory)
Create a topic connection from the given factory. |
static javax.jms.TopicConnection |
createTopicConnection(Object factory,
String username,
String password)
Create a topic connection from the given factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionFactoryHelper()
| Method Detail |
public static javax.jms.QueueConnection createQueueConnection(Object factory, String username, String password) throws javax.jms.JMSException
factory - An object that implements QueueConnectionFactory,
XAQueueConnectionFactoryusername - The username to use or null for no user.password - The password for the given username or null if no
username was specified.
javax.jms.JMSException - Failed to create connection.
IllegalArgumentException - Factory is null or invalid.public static javax.jms.QueueConnection createQueueConnection(Object factory) throws javax.jms.JMSException
factory - An object that implements QueueConnectionFactory,
XAQueueConnectionFactory
javax.jms.JMSException - Failed to create connection.
IllegalArgumentException - Factory is null or invalid.public static javax.jms.TopicConnection createTopicConnection(Object factory, String username, String password) throws javax.jms.JMSException
factory - An object that implements TopicConnectionFactory,
XATopicConnectionFactoryusername - The username to use or null for no user.password - The password for the given username or null if no
username was specified.
javax.jms.JMSException - Failed to create connection.
IllegalArgumentException - Factory is null or invalid.public static javax.jms.TopicConnection createTopicConnection(Object factory) throws javax.jms.JMSException
factory - An object that implements TopicConnectionFactory,
XATopicConnectionFactory
javax.jms.JMSException - Failed to create connection.
IllegalArgumentException - Factory is null or invalid.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||