Hi,
I am able to perform JNDI lookup using the following code in my servlet,
DataSource ds = null;
Context ctx = null;
try {
String strDSName = "java:jboss/datasources/Test";
ctx = new InitialContext();
ds = (javax.sql.DataSource) ctx.lookup(strDSName);
} catch (Exception e) {
}
I need to have lookup from servlet and filter's init() method which looks like a problem. It throws javax.naming.NameNotFoundException. Any input on this would be of great help.
Thanks,
Abiya