Hi All, I am using WSAD 4.0.2. I define a data source in the server jdbc/test that connects to an Oracle DB. What should I do to access this datasource as "java:comp/env/jdbc/test"? What ever I do I get the following error javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:". but the datasource is available if I access it via the jndi name "jdbc/test"
You have to define a resource reference and map that to the jdbc/test JNDI name you defined the datasource under. Read the EJB spec or Richard Monson-Haefel's book for an explanation of resource references. Kyle
Heya, resurfacing this thread: So I saw this and found this info on how to create the resource references in web.xml, but i'm still having problems maybe somebody can help. Global JNDI lookups works as usual but local is still continuing to fail.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
Gift giving made easy with the permaculture playing cards