public interface ClientSAF
The JMS Client SAF (store-and-forward) feature enables JMS clients to enqueue messages on a local file system. These messages will then be forwarded to a back-end destination when the client becomes connected.
This interface allows client code to start and stop the Client SAF feature.
ClientSAFFactory| Modifier and Type | Method and Description | 
|---|---|
| void | close()Stops the Client SAF system. | 
| Context | getContext()A helper method that clients can use to get the naming context
 to use when looking up objects defined in the configuration file. | 
| boolean | isOpen()Returns true if the Client SAF system is currently started. | 
| void | open(char[] password)Starts the Client SAF system associated with this configuration. | 
void open(char[] password) throws JMSException
password - The password to use as the key to decrypt the passwords
 encrypted in the configuration.JMSException - If there was an error starting the Client SAF
 system or if the Client SAF system has already been started.void close()
boolean isOpen()
Context getContext() throws JMSException
 This naming context can also be determined by using
 javax.naming.InitialContext. In the hashtable provided
 to the constructor, the user must provide:
 
java.naming.provider.url -- An URL to the configuration file.java.naming.security.credentials -- The password key
 to unlock the passwords found in the configuration file.JMSException - If the context could not be created or the
 Client SAF system is not currently started.