[jboss-user] [JCA/JBoss] - Re: Problem in acessing Oracle data Source from JBoss 4

vickyk do-not-reply at jboss.com
Fri May 18 04:14:12 EDT 2007


anonymous wrote : javax.naming.NameNotFoundException: oracleDS not bound
Can you write a new jsp with the following code snippet 
  |         InitialContext ctx = new InitialContext();
  | 	DataSource ds = (DataSource)ctx.lookup("java:oracleDS");		
  | 	Connection con = ds.getConnection();
This should work ...
I am not sure how you are trying to get the DS in your web application , looks like the you are binding it in the resource ref tag of the web.xml .

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046724#4046724

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046724



More information about the jboss-user mailing list