JBOSS 4 JNDI problem !
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mario_Tigua
Posted On:   Thursday, April 14, 2005 08:49 AM

Hi everbody ! I'm trying to configure a oracle datasource for JBOSS 4. My oracle-xa-ds.xml (specific jboss file) looks like: JdelfosDataSource false oracle.jdbc.xa.client.OracleXADataSource jdbc:oracle:thin:@192.168.124.40:1521:idelfos mario mario and my servlet looks like : javax.sql.DataSource ds =(javax.sql.DataSource) ctx.lookup("java:JdelfosDataSource"); This functions very well. How I can configure oracle-xa-ds.xml (or another file) so that my servlet reference JNDI name like this : javax.sql.DataSource ds =(javax.sql.DataSource) ctx.lookup("java:co   More>>

Hi everbody !

I'm trying to configure a oracle datasource for JBOSS 4.

My oracle-xa-ds.xml (specific jboss file) looks like:

JdelfosDataSource

false
oracle.jdbc.xa.client.OracleXADataSource
jdbc:oracle:thin:@192.168.124.40:1521:idelfos
mario
mario



and my servlet looks like :

javax.sql.DataSource ds =(javax.sql.DataSource)
ctx.lookup("java:JdelfosDataSource");


This functions very well.


How I can configure oracle-xa-ds.xml (or another file) so that my servlet reference JNDI name like this :

javax.sql.DataSource ds =(javax.sql.DataSource)
ctx.lookup("java:comp/env/jdbc/JdelfosDataSource");

?



Thanks.

Mario.

   <<Less
About | Sitemap | Contact