new JMSContextListener()
This is a dummy constructor not to be used in any case.
Method Summary
- onContextCreated
- Event handler that is called when the context is created.
- onContextFailed
- Event handler that is called if the context can't be created.
- onLSClient
- Event that will be invoked when the embedded
LightstreamerClientinstance has been created and initialized, but before creating the context.
Method Detail
-
onContextCreated(context)
-
Event handler that is called when the context is created. This method will never be called if a JMSContextListener#onContextFailed event was fired.
Parameters:
Name Type Description contextJMSContext The JMSContext instance representing the current JMS context. -
onContextFailed(errorCode, errorMessage)
-
Event handler that is called if the context can't be created. The following error codes are used for specific error conditions on the JMS Extender:
- -13: the JMS Extender configured hook denied acces to the specified user/password pair.
LightstreamerClientevent ClientListener#onServerError, see for more information.This method will never be called if a JMSContextListener#onContextCreated event was fired.
Parameters:
Name Type Description errorCodeNumber The code of the error. errorMessageString The description of the error as sent by the Server. -
onLSClient(client)
-
Event that will be invoked when the embedded
LightstreamerClientinstance has been created and initialized, but before creating the context.This is the first event to be fired: it offers the possibility to further customize the LightstreamerClient instance before the connection is issued. It can also be used to attach listeners to the given instance. Note that this method is called synchronously inside the factory methods (i.e. it executes before the create*Context method ends).
Parameters:
Name Type Description clientexternal:LightstreamerClient The client instance that will be used to connect to the JMS Extender.