The JMS resource adapter is fully compliant with the Java Connector Architecture security contract, as described in Java™ EE Connector Architecture Specification, version 1.7 at https://download.oracle.com/otndocs/jcp/connector_architecture-1_7-mrel-spec/.
For outbound communication, you can specify the authentication-mechanism-type, credential-interface, and reauthentication-support elements in the ra.xml file.
For example:
. . .
<outbound-resourceadapter>
. . .
<authentication-mechanism>
<authentication-mechanism-type>
BasicPassword
</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>false</reauthentication-support>
. . .
</outbound-resourceadapter>
. . .