Using the wmjms.properties File to Secure JMS Clients with Basic Authentication
You can also use the wmjms.properties file to configure basic authentication. Specify the properties for basic authentication in the wmjms.properties file as follows:
Specifying the properties for basic authentication in the wmjms.properties file
1. Create a Java properties file named wmjms.properties.
2. Add the following properties to the wmjms.properties file as shown below:
com.webmethods.jms.username="sag"
com.webmethods.jms.password="SoftwareAG123"
3. Add the directory containing the wmjms.properties file to your CLASSPATH.
The webMethods Broker-specific properties are defined in the Javadoc of the WmJMSConfig class; use that information before reconfiguring the property values in your code.