new ConnectionFactory()
This method is not meant to be used directly.
Creates a ConnectionFactory object that can create new Connection
objects.
Method Summary
- createConnection
- Creates a new Connection.
- createContext
- Creates a new JMSContext.
Method Detail
-
(static) createConnection(serverAddress, jmsConnector, userName, password, listener) → {Connection}
-
Creates a new Connection. If a userName is specified, the connection is created with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection#start method is explicitly called on the Connection object.
Implementation note: due to limitations of JavaScript this method can't return a connection synchronously: the connection will be delivered asynchronously through the ConnectionListener#onConnectionCreated event.Parameters:
Name Type Description serverAddressString the full address of the JMS Extender. jmsConnectorString the name of the JMS Connector. userNameString the optional username to be used for the authentication on the JMS Extender. passwordString the optional password to be used for the authentication on the JMS Extender. listenerConnectionListener the listener that will receive the events related to the connection creation. Returns:
- Type
- Connection
-
(static) createContext(serverAddress, jmsConnector, userName, password, sessionMode, listener) → {JMSContext}
-
Creates a new JMSContext. If a userName is specified, the context is created with the specified user identity.
Implementation note: due to limitations of JavaScript this method can't return a context synchronously: the context will be delivered asynchronously through the JMSContextListener#onContextCreated event.Parameters:
Name Type Description serverAddressString the full address of the JMS Extender. jmsConnectorString the name of the JMS Connector. userNameString the optional username to be used for the authentication on the JMS Extender. passwordString the optional password to be used for the authentication on the JMS Extender. sessionModeString the session mode to be used for the context. listenerJMSContextListener the listener that will receive the events related to the context creation. Returns:
- Type
- JMSContext