| java.lang.Object org.jboss.jms.ConnectionFactoryHelper
ConnectionFactoryHelper | public class ConnectionFactoryHelper (Code) | | A helper for creating connections from jms connection factories.
author: Jason Dillon author: Adrian Brock version: $Revision: 57209 $ |
createConnection | public static Connection createConnection(Object factory, String username, String password) throws JMSException(Code) | | Create a connection from the given factory. An XA connection will
be created if possible.
Parameters: factory - An object that implements ConnectionFactory,XAQConnectionFactory Parameters: username - The username to use or null for no user. Parameters: password - The password for the given username or null if nousername was specified. A queue connection. throws: JMSException - Failed to create connection. throws: IllegalArgumentException - Factory is null or invalid. |
createConnection | public static Connection createConnection(Object factory) throws JMSException(Code) | | Create a connection from the given factory. An XA connection will
be created if possible.
Parameters: factory - An object that implements QueueConnectionFactory,XAQueueConnectionFactory A queue connection. throws: JMSException - Failed to create connection. throws: IllegalArgumentException - Factory is null or invalid. |
createQueueConnection | public static QueueConnection createQueueConnection(Object factory, String username, String password) throws JMSException(Code) | | Create a queue connection from the given factory. An XA connection will
be created if possible.
Parameters: factory - An object that implements QueueConnectionFactory,XAQueueConnectionFactory Parameters: username - The username to use or null for no user. Parameters: password - The password for the given username or null if nousername was specified. A queue connection. throws: JMSException - Failed to create connection. throws: IllegalArgumentException - Factory is null or invalid. |
createQueueConnection | public static QueueConnection createQueueConnection(Object factory) throws JMSException(Code) | | Create a queue connection from the given factory. An XA connection will
be created if possible.
Parameters: factory - An object that implements QueueConnectionFactory,XAQueueConnectionFactory A queue connection. throws: JMSException - Failed to create connection. throws: IllegalArgumentException - Factory is null or invalid. |
createTopicConnection | public static TopicConnection createTopicConnection(Object factory, String username, String password) throws JMSException(Code) | | Create a topic connection from the given factory. An XA connection will
be created if possible.
Parameters: factory - An object that implements TopicConnectionFactory,XATopicConnectionFactory Parameters: username - The username to use or null for no user. Parameters: password - The password for the given username or null if nousername was specified. A topic connection. throws: JMSException - Failed to create connection. throws: IllegalArgumentException - Factory is null or invalid. |
createTopicConnection | public static TopicConnection createTopicConnection(Object factory) throws JMSException(Code) | | Create a topic connection from the given factory. An XA connection will
be created if possible.
Parameters: factory - An object that implements TopicConnectionFactory,XATopicConnectionFactory A topic connection. throws: JMSException - Failed to create connection. throws: IllegalArgumentException - Factory is null or invalid. |
|
|