title: Spring JMS config for DefaultDestination
body: <p>I have the following config and all seems well, I do not get any errors.
  However, when I print jmsTemplate.getDefaultDestinationName(), I get null
  Should I see "myQueue"?</p>
  
  <pre><code>    &lt;bean id="jmsQueueTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
      &lt;property name="connectionFactory"&gt;
          &lt;ref bean="mqConnectionFactory"/&gt;
      &lt;/property&gt;
  
      &lt;property name="defaultDestination"&gt;
          &lt;ref bean="destination" /&gt;
      &lt;/property&gt;
  
  &lt;/bean&gt;
  
  
  &lt;bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
      &lt;property name="jndiName" value="myQueue" /&gt;
  
  &lt;/bean&gt;
  </code></pre>