Class: QueueConnectionFactory

QueueConnectionFactory

A QueueConnectionFactory object can be used used to create a connection with a JMS broker through an embedded JMS Extender client connection.

new QueueConnectionFactory()

This method is not meant to be used directly. Creates a QueueConnectionFactory object that can create new QueueConnection objects.

Extends

Method Summary

createContext
Creates a new JMSContext.
createQueueConnection
Creates a new QueueConnection.

Method Detail

(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
serverAddress String the full address of the JMS Extender.
jmsConnector String the name of the JMS Connector.
userName String the optional username to be used for the authentication on the JMS Extender.
password String the optional password to be used for the authentication on the JMS Extender.
sessionMode String the session mode to be used for the context.
listener JMSContextListener the listener that will receive the events related to the context creation.
Returns:
Type
JMSContext

(static) createQueueConnection(serverAddress, jmsConnector, userName, password, listener) → {QueueConnection}

Creates a new QueueConnection. 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 QueueConnection#start method is explicitly called on the QueueConnection object.
Implementation note: due to limitations of Javascript this method can't return a connection synchronously, the connection will be delivered asynchronously through the specified callback.
Parameters:
Name Type Description
serverAddress String the full address of the JMS Extender.
jmsConnector String the name of the JMS Connector.
userName String the optional username to be used for the authentication on the JMS Extender.
password String the optional password to be used for the authentication on the JMS Extender.
listener ConnectionListener the listener that will receive the events related to the connection creation.
Returns:
Type
QueueConnection