public class ClientSAFFactory
extends java.lang.Object
This class is a factory for JMS ClientSAF objects, which can be used to control configuration aspects of the Client SAF (store-and-forward) system.
ClientSAF
Modifier and Type | Method | Description |
---|---|---|
static ClientSAF |
getClientSAF() |
Returns a Client SAF instance.
|
static ClientSAF |
getClientSAF(java.io.File rootDirectory,
java.io.InputStream configuration) |
Returns a client SAF instance.
|
static ClientSAF |
getClientSAF(java.io.InputStream configuration) |
Returns a Client SAF instance.
|
public static ClientSAF getClientSAF() throws ClientSAFDuplicateException, javax.jms.JMSException
ClientSAF.xml
and can be found in the current working directory of
this JVM.ClientSAFDuplicateException
- If this ClientSAF
object already exists and is running for this directory.
The running ClientSAF object can be received using
ClientSAFDuplicateException.getDuplicate()
.
In this case, the input stream has not been reparsed.javax.jms.JMSException
- If this call is attempted on a
WLS server instance. Client SAF can only be used on a client.public static ClientSAF getClientSAF(java.io.InputStream configuration) throws ClientSAFDuplicateException, javax.jms.JMSException
configuration
- An input stream for a configuration that
is well-formed with respect to the weblogic-jmsmd.xsd
schema and which
has a root element of weblogic-client-jms
.ClientSAFDuplicateException
- If this ClientSAF
object already exists and is running for this directory.
The running ClientSAF object can be received using
ClientSAFDuplicateException.getDuplicate()
.
In this case, the input stream has not been reparsed.javax.jms.JMSException
- If this call is attempted on a
WLS server instance. Client SAF can only be used on a client.public static ClientSAF getClientSAF(java.io.File rootDirectory, java.io.InputStream configuration) throws ClientSAFDuplicateException, javax.jms.JMSException
rootDirectory
- The directory that should be considered
the root directory where the Client SAF implementation can
store files and directories. Any relative paths in the
configuration file are relative to this directory (for
example, the store directory).configuration
- An input stream for a configuration that
is well-formed with respect to the weblogic-jmsmd.xsd
schema and which
has a root element of weblogic-client-jms
.ClientSAFDuplicateException
- If this ClientSAF
object already exists and is running for this directory.
The running ClientSAF object can be received using
ClientSAFDuplicateException.getDuplicate()
.
In this case, the input stream has not been reparsed.javax.jms.JMSException
- If this call is attempted on a
WLS server instance. Client SAF can only be used on a client.