title: Does anyone know exactly what javax.jms.InvalidDestinationException: Not allowed to create destination means?
body: <p>I am try to connect to a Tibco Ems Topic using Spring when I recieve this error.</p>
  
  <p>Here is the config:</p>
  
  <pre><code>    &lt;jms:listener-container connection-factory="Tcf"    acknowledge="auto" &gt;
      &lt;jms:listener id="ListenerContainer" destination="######" ref="MessageListener" /&gt;
  &lt;/jms:listener-container&gt;
  
  &lt;bean id="MessageListener" class="com.dcc.jms.listeners.TestListener"&gt;&lt;/bean&gt;
  
  
  &lt;!-- JNDI Template --&gt; 
  &lt;bean id="JndiTemplate" class="org.springframework.jndi.JndiTemplate"&gt;
      &lt;property name="environment"&gt;
          &lt;props&gt;
              &lt;prop key="java.naming.provider.url"&gt;#&lt;/prop&gt;
              &lt;prop key="java.naming.factory.url.pkgs"&gt;com.sun.jndi.ldap &lt;/prop&gt;
              &lt;prop key="java.naming.factory.initial"&gt;com.sun.jndi.ldap.LdapCtxFactory&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;!-- CONNECTION FACTORY --&gt;
  &lt;bean id="Tcf"
      class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"&gt;
      &lt;property name="username" value="" /&gt;
      &lt;property name="password" value="" /&gt;
      &lt;property name="targetConnectionFactory"&gt;
          &lt;bean class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
              &lt;property name="jndiTemplate" ref="JndiTemplate" /&gt;
              &lt;property name="jndiName" value="#" /&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>What exactly does this mean? Are my details or my config wrong?</p>