title: Basic JMS Query
body: <p>I have a set of parameters that I need to use to access a JMS queue.</p>
  
  <p>Can anyone supply me with a basic example of how I can send a block of XML to an awaiting server using these parameters.  For this initial version I don't mind hardcoding these parameters.</p>
  
  <p>I am currently trying this:</p>
  
  <pre><code>Context ctx = new InitialContext();
  QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup("QueueConnectionFactory");
  Queue queue = (Queue) ctx.lookup("OCP.GET.PRODUCTS.COMSRV");
  QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
  QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
  QueueSender queueSender = queueSession.createSender(queue);
  TextMessage message = queueSession.createTextMessage();
  message.setText(xmlString);
  </code></pre>
  
  <p>But I have no idea how to set the parameters for Host, Port, QueueManager or Channel</p>
  
  <p>The parameters supplied to me are</p>
  
  <ul>
  <li>Manager:     OCP.QMGR </li>
  <li>Channel:     OCP.SVRCONN </li>
  <li>Port:        14234 </li>
  <li>Host:        host.server.com </li>
  <li>sentToQueue: OCP.GET.PRODUCTS.COMSRV </li>
  <li>replyToQueue:COMSRV.GET.PRODUCTS.OCP</li>
  </ul>
  
  <p>I am very new to Java and JMS and am starting to drown with this.</p>