Hi Kousik,
Thanks for the reply.I tried and it works fine in servlet.I need to have lookup from filter's init() method which looks like a problem again. It throws javax.naming.NameNotFoundException. Any input on this would be of great help.
Thanks,
Abiya