title: JMS template credentials default value
body: <p>Hello everyone I'm trying to work with jboss messaging, does anyone knows the default value for these <code>java.naming.security.principal</code> and <code>java.naming.security.credentials</code> or how can I set them?</p>
  
  <pre><code> &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;org.jnp.interfaces.NamingContextFactory&lt;/prop&gt;
          &lt;prop key="java.naming.provider.url"&gt;jnp://localhost:8080&lt;/prop&gt;
          &lt;prop key="java.naming.factory.url.pkgs"&gt;org.jboss.naming:org.jnp.interfaces&lt;/prop&gt;
          &lt;prop key="java.naming.security.principal"&gt;value&lt;/prop&gt;
          &lt;prop key="java.naming.security.credentials"&gt;value&lt;/prop&gt;
         &lt;/props&gt;
        &lt;/property&gt;
       &lt;/bean&gt;
  </code></pre>
  
  <p>I'm trying to instansiate the <code>&lt;bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;</code> I'm guessing that this is the cause why jboss timeouts when starts</p>