On 1/5/07, Per Newgro <[EMAIL PROTECTED]> wrote:
Hey Amir,

>                       Context envCtx=(Context)initCtx.lookup("java:comp/env");
>                       DataSource ds = 
(DataSource)envCtx.lookup("jdbc/sampleDB"); // fails
Is initCtx.lookup("java:comp/env/jdbc/sampleDB") working? Thats the way i do
it normally.


No, that doesn't work. Same problem.

And putting this into the web.xml file doesn't help;

<dataSource type="JNDI">
 <property name="DataSource" value= "java:comp/env/jdbc/sampleDB" />
</dataSource>

Perhaps there is a jar file that I need to copy into the lib directory
that is related to pooling?

Amir

Cheers
Per

Reply via email to