JBoss Community

Re: Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: comp not bound

created by Srinivasan Purushothaman in Datasource Configuration - View the full discussion

One more info....

 

I try to utilize this connection in my application from Spring applicationContext file as below

 

4. applicationContextr.xml

 

     <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">

         <property name="jndiName" value="java:comp/env/my_ds"/> 

    </bean>

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community