hi all
I am trying to use springs JndiObjectFactoryBean to get a datasource connection through Jboss connection pool. When ever i do so i get an error java: not bound on starting my application. When i remove the the spring initialization server starts up fine and binds my data source correctly. My thought was spring is loaded before Jboss binds the datasource to a JNDI. Any help would really be appreciated.
Below are some of my configs
jboss-web.xml
<resource-ref>
<description>DB Connection</description>
<res-ref-name>devpfmdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java
evpfmdb</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
web.xml
<resource-ref>
<description>DB Connection</description>
<res-ref-name>devpfmdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Bean config
<bean id="datasource" class ="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java
evpfmdb</value>
</property>
</bean>