title: How to access secure MQ queue from stand-alone Java application
body: <p>I need to access a secure MQ queue from a stand-alone java application.  </p>
  
  <p>What different mechanisms are available to do so?  Where can I find details of the different ways it can be achieved?   Any code snippets or document links are appreciated. </p>
  
  <p>Thank you </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks Shashi.</p>
  
  <p>I am not too familiar with MQ. I am on java side, so I asked our MQ admin to help me explain.  This is what they told me, we have.</p>
  
  <pre><code>    We have a “secure” qmgr MGR1. We are attempting to secure all of the objects.
  
      We use two (or more) types of security.
  
      Object Level security and Channel Authorization records.
  
      Using Channel Authorization records, we can control who can use a channel 
      from where (userid / IP Address) – block everyone else.
  
      Object level security, controls who can access a specific object and what 
      they are allowed to do:
  
      UID1 has connect authority to the qmgr. Read authority on PV.** queues.
  </code></pre>
  
  <p>Is this what you are asking?</p>