| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JmsConnectionFactory provides an interface for creating new JMS connections via a WebSocket connection to a JMS provider.
Creates a new JmsConnectionFactory to create connections to the target url specified. A WebSocket is used to establish the connection. The url should specify a protocol such as ws: or wss:. For example: ws://localhost:8000/jms
| Constructor Summary | |
JmsConnectionFactory(location, connectionProperties)
JmsConnectionFactory provides an interface for creating new JMS connections via a WebSocket connection to a JMS provider. |
|
| Method Summary | |
ConnectionFuture
|
createConnection(username, password, clientID, callback)
Creates the actual JMS Connection via WebSocket, using the username and password specified as credentials to authenticate with the Gateway, and using the given clientID to distinguish the durable subscribers for this connection from those of other users. |
WebSocketFactory
|
getWebSocketFactory()
get WebSocketFactory instance that is used to create WebSocket Connections. |
void
|
setWebSocketFactory(webSocketFactory)
set WebSocketFactory instance that is used to create WebSocket connections. |
| Constructor Detail |
JmsConnectionFactory(location, connectionProperties)
Creates a new JmsConnectionFactory to create connections to the target url specified. A WebSocket is used to establish the connection. The url should specify a protocol such as ws: or wss:. For example: ws://localhost:8000/jms
String location - The Gateway location to connect to.
JmsConnectionProperties connectionProperties - The connection properties. (Optional)
| Method Detail |
ConnectionFuture createConnection(username, password, clientID, callback)
Once the callback is invoked, client applications should use ConnectionFuture.getValue() to fetch the actual connection.
String username - The username for authentication or null. (Optional)
String password - The password for authentication or null. (Optional)
String clientID - Client identifier. (Optional) Function callback - The callback to invoke when the connection has been created or an exception is thrown.
ConnectionFuture
WebSocketFactory getWebSocketFactory()
WebSocketFactory
void setWebSocketFactory(webSocketFactory)
WebSocketFactory webSocketFactory - The WebSocketFacotry instance to used to create WebSocket connections.
void