title: How do I publish to a solace temp queue created in another process
body: <p>I have a Java application that consumes messages from a queue.  I also have a test client that runs as a separate Java application and publishes messages to that queue.</p>
  
  <p>To test the listener application locally, I have it create a temp queue and listen to that queue. Following is the listener code that I used for Tibco:</p>
  
  <pre><code>session = connection.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
  
  Queue queue;
  if (useTemporaryRequestQueue) {
      queue = session.createTemporaryQueue();
      requestQueueName = queue.getQueueName();  // $TMP$.server.UID
  } else {
      queue = session.createQueue(requestQueueName);
  }
  
  receiver = session.createReceiver(queue);
  receiver.setMessageListener(this);
  </code></pre>
  
  <p>In my test client, I was then able to use the following code to connect to the Tibco request queue:</p>
  
  <pre><code>session = connection.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
  requestQueue = session.createQueue(requestQueueName); // $TMP$.server.UID
  responseQueue = session.createTemporaryQueue();
  </code></pre>
  
  <p>When I try this createQueue call with the Solace temp queue name, it fails:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Non-durable endpoints are not allowed as an argument to provision
  at com.solacesystems.jcsmp.impl.JCSMPBasicSession.provision(JCSMPBasicSession.java:1183)
  at com.solacesystems.jms.SolSession.createQueue(SolSession.java:492)
  </code></pre>
  
  <p>Is there another way to connect to the temp queue from my test client?</p>