Secure the Connection from the Gateway to the Message Broker
In this procedure, you will learn how to use service properties to pass in the user name and password for connections made to the back-end message broker.
Before You Begin
This procedure is part of Checklist: Secure Your JMS Configuration, that includes the following steps:
- Secure the Connection from the Gateway to the Message Broker
- Secure the Connection from Each Client to the Gateway
- Configure Auditing Messages Produced by Clients
- Configure the Gateway to Use Encrypted Credentials
To Secure the Connection from the Gateway to the Message Broker
Use the following service properties to securely pass in the user name and password for connections made to the back-end message broker:
connection.security.principal
connection.security.credentials
env.java.naming.security.principal
env.java.naming.security.credentials
<service> . . . <properties> <connection.security.principal> joe </connection.security.principal> <connection.security.credentials> welcome </connection.security.credentials> <env.java.naming.security.principal> joe </env.java.naming.security.principal> <env.java.naming.security.credentials> welcome </env.java.naming.security.credentials> </properties> . . . </service>
Notes
Refer to jms and jms.proxy for more information about the configuration parameters.