I was configuring my beans to look up JNDI resources in JBoss and finally got things to look up properly but with inconsistent ways to look up using JNDI. Some beans required java:/ and others didn't. I don't understand why that is. Can anyone please explain how this is?
Thanks in advanced!
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryB ean">
<property name="jndiName">
<value>java:/DefaultDS</value>
</property>
</bean>
<bean id="queue1" class="org.springframework.jndi.JndiObjectFactoryB ean">
<property name="jndiName">
<value>queue/testQueue</value>
</property>
</bean>
<bean id="queue2" class="org.springframework.jndi.JndiObjectFactoryB ean">
<property name="jndiName">
<value>queue/testQueue1</value>
</property>
</bean>
<bean id="jmsXAConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryB ean">
<property name="jndiName">
<value>java:/JmsXA</value>
</property>
</bean>


Reply With Quote