title: nested exception is javax.jms.InvalidDestinationException: Unknown destination type - $Proxy115
body: <p>I get this exception when i try to send a message to queue. My jms properties are set via spring application-context.Please find the applicationContext.xml properties set for the jms.</p>
  
  <pre><code>        &lt;bean id="jmsQueueConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
      &lt;property name="jndiTemplate"&gt;
          &lt;ref bean="jndiTemplate" /&gt;
      &lt;/property&gt;
      &lt;property name="lookupOnStartup" value="false"/&gt;
      &lt;property name="jndiName"&gt;
          &lt;value&gt;${jmsQueueConnectionFactory.jndiName}&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="proxyInterface" value="javax.jms.ConnectionFactory"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"&gt;
      &lt;property name="environment"&gt;
          &lt;props&gt;
              &lt;prop key="java.naming.factory.initial"&gt;
                  ${jndiTemplate.naming.factory}
              &lt;/prop&gt;
              &lt;prop key="com.sonicsw.jndi.mfcontext.domain"&gt;
                  ${jndiTemplate.domain}
              &lt;/prop&gt;
              &lt;prop key="java.naming.provider.url"&gt;
                  ${jndiTemplate.provider.url}
              &lt;/prop&gt;
              &lt;prop key="java.naming.security.principal"&gt;${jndiTemplate.security.principal}&lt;/prop&gt;
              &lt;prop key="java.naming.security.credentials"&gt;${jndiTemplate.security.credentials}&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="requestsQueue" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
      &lt;property name="jndiTemplate"&gt;
          &lt;ref bean="jndiTemplate" /&gt;
      &lt;/property&gt;
      &lt;property name="lookupOnStartup" value="false"/&gt;
      &lt;property name="jndiName"&gt;
          &lt;value&gt;${requestsQueue.jndiName}&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="proxyInterface" value="javax.jms.Destination"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Am getting the exception as below:</p>
  
  <pre><code>   org.springframework.jms.InvalidDestinationException: Unknown destination type - $Proxy115; nested exception is javax.jms.InvalidDestinationException: Unknown destination type - $Proxy115
  </code></pre>