|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | 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 Connection (src) |
createConnection(java.lang.Object factory)
Create a connection from the given factory. |
static Connection (src) |
createConnection(java.lang.Object factory,
java.lang.String username,
java.lang.String password)
Create a connection from the given factory. |
static QueueConnection (src) |
createQueueConnection(java.lang.Object factory)
Create a queue connection from the given factory. |
static QueueConnection (src) |
createQueueConnection(java.lang.Object factory,
java.lang.String username,
java.lang.String password)
Create a queue connection from the given factory. |
static TopicConnection (src) |
createTopicConnection(java.lang.Object factory)
Create a topic connection from the given factory. |
static TopicConnection (src) |
createTopicConnection(java.lang.Object factory,
java.lang.String username,
java.lang.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 Connection (src) createConnection(java.lang.Object factory,
java.lang.String username,
java.lang.String password)
throws JMSException (src)
factory - An object that implements ConnectionFactory,
XAQConnectionFactoryusername - The username to use or null for no user.password - The password for the given username or null if no
username was specified.
JMSException (src) - Failed to create connection.
java.lang.IllegalArgumentException - Factory is null or invalid.
public static Connection (src) createConnection(java.lang.Object factory)
throws JMSException (src)
factory - An object that implements QueueConnectionFactory,
XAQueueConnectionFactory
JMSException (src) - Failed to create connection.
java.lang.IllegalArgumentException - Factory is null or invalid.
public static QueueConnection (src) createQueueConnection(java.lang.Object factory,
java.lang.String username,
java.lang.String password)
throws JMSException (src)
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.
JMSException (src) - Failed to create connection.
java.lang.IllegalArgumentException - Factory is null or invalid.
public static QueueConnection (src) createQueueConnection(java.lang.Object factory)
throws JMSException (src)
factory - An object that implements QueueConnectionFactory,
XAQueueConnectionFactory
JMSException (src) - Failed to create connection.
java.lang.IllegalArgumentException - Factory is null or invalid.
public static TopicConnection (src) createTopicConnection(java.lang.Object factory,
java.lang.String username,
java.lang.String password)
throws JMSException (src)
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.
JMSException (src) - Failed to create connection.
java.lang.IllegalArgumentException - Factory is null or invalid.
public static TopicConnection (src) createTopicConnection(java.lang.Object factory)
throws JMSException (src)
factory - An object that implements TopicConnectionFactory,
XATopicConnectionFactory
JMSException (src) - Failed to create connection.
java.lang.IllegalArgumentException - Factory is null or invalid.
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||