JMS: javax.naming.AuthenticationException

An error occurs when testing connectivity to a QueueConnectionFactory or Queue:
‘The QueueConnectionFactory ‘myQcf’ cannot be found. javax.naming.AuthenticationException: Failed to connect to the management broker due to authentication failure: connection state=1’

To rectify this the java.naming.security.principal and java.naming.security.credentials JNDI Properties must be set to the username and password required for JNDI access. There are two ways of achieving this: NOTE: Any principal or credentials entries in the JNDI Properties table will take precedence over those set as a result of the ‘Use Connection Username and Password…’ option.