Contents

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To enable durable connections in the server, perform the following steps:

  1. Launch the admin studio and open the profile (which by default is FioranoMQ) in the offline mode.
  2. Navigate to FioranoMQ -> Fiorano -> etc -> FMQConfigLoader. In the properties pane, set the AllowDurableConnections property to yes.
  3. Save the configuration.

5.1.1 Enabling Durable Connections for a Client Application

Code Block
// Create the InitialContext Object used for looking up
// JMS administered objects on the Fiorano/EMS
// located on the default host.
//
Hashtable env = new Hashtable(); 
env.put(Context.SECURITY_PRINCIPAL, "anonymous");
env.put(Context.SECURITY_CREDENTIALS, "anonymous");
env.put(Context.PROVIDER_URL, m_url);
env.put(Context.INITIAL_CONTEXT_FACTORY, "fiorano.jms.runtime.naming.FioranoInitialContextFactory");
env.put(FioranoJNDIContext.ALLOW_DURABLE_CONNECTIONS, "true"); 
InitialContext ic = new InitialContext(env);
System.out.println("Created InitialContext :: " + ic);
Adaptavist ThemeBuilder EngineAtlassian Confluence