title: How to setup JMS configuration in Spring's applicationContext?
body: <p>How can I setup application for given below java code?</p>
  
  <pre><code>Hashtable&lt;String, String&gt; properties = new Hashtable&lt;String, String&gt;();
              properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.test.factory");
              properties.put("com.domain", "DevelopmentDomain");
  //            properties.put(Context.PROVIDER_URL, "tcp://test:0506");
              properties.put(Context.PROVIDER_URL, "tcp://10.00.0.00:0506");
  
  
              properties.put(Context.SECURITY_PRINCIPAL, "aaa");
              properties.put(Context.SECURITY_CREDENTIALS, "aaa");
  
              javax.naming.Context context = new javax.naming.InitialContext(properties);
              ConnectionFactory factory = (ConnectionFactory) context.lookup("ImpactPocQueueConnectionFactory");
  
              Connection connection = factory.createConnection();
  
              connection.start();
  
              Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  
              Destination queue = session.createQueue("test.producer");
  </code></pre>
  
  <p>I saw many examples here and there but none of them give complete picture.</p>