Hi there, I am new to security. I am trying to send a message to a JMS secure queue (the queue has a security policy that only allows certain user access). I am wondering how to set up the security context for the send operation? If I don't do anything, then the send will get JMSSecurityException : access denied.

My JMS client needs to send/receive messages from different queues that may require different credentials.

Thanks a lot