Hi
How do i set up connection Pooling with JNDi context I browsed the
archives and did all that were suggested
but still it doesn't work . What i need to do to work this Connection
Pooling !!
<%
try {
InitialContext ctext = new InitialContext();
System.out.println("inside INit ");
javax.naming.Context env = (Context)ctext.lookup("java:comp/env");
// use the greetings message
%>
<p> Before lookup </p>
<%
OracleDataSource oc = (OracleDataSource)env.lookup("jdbc/cnamsbld");
%>
<p> After lookup </p>
<%
Connection connection = oc.getConnection();
System.out.println(" connection " + connection);
}
catch(Exception e) {
out.println(e);
}
Iam running this scriplet but iam getting
javax.naming.NameNotFoundException: Name java:comp is not bound of this
context
Thanks
Mouli