To enable auto-revalidation, perform the following steps:
- Launch the admin studio and open the profile (by default is FioranoMQ) in the offline mode.
- Navigate to FioranoMQ > Fiorano > etc > FMQConfigLoader. In the properties pane, set the EnableAutoRevaildation property to 'yes'.
- Save the configuration.
Note |
---|
Auto-revalidation is automatically turned on if Durable Connection is enabled. If auto-revalidation is enabled or durable connection is disconnected by the server (using WMT or Studio), the disconnection will not persist for a long duration. This is because, by definition, properties (EnableAutoRevalidation, AllowDurableConnections) dictate that the client should re-establish connection with the server. Therefore, a connection can only be disconnected when a client closes the connection. |
Enabling Auto-Revalidation for a Client Application
Code Block |
---|
// 1. Create the InitialContext Object used for looking up // JMS administered objects on the FioranoMQ 9 // 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, url); env.put(Context.INITIAL_CONTEXT_FACTORY, "fiorano.jms.runtime.naming.FioranoInitialContextFactory"); env.put(FioranoJNDIContext.ENABLE_AUTO_REVALIDATION, "true"); InitialContext ic = new InitialContext(env); System.out.println("Created InitialContext :: " + ic) |
Overview
Content Tools
ThemeBuilder