Thanks for your reply!
Actually I've followed your example, without any luck.
If possible, could you send me your source code? Or explain how your EJB bean looks like, how InitialContext is configured. I'm suspecting that my InitialContext is set wrong.
I can do that but currently i dont have access to the setup where i had the source files. Alternately, can you explain what exactly is not working in your case. Can you post some code/configurations that you have used. And what are you trying to do, is it lookup of a secure EJB from a standalone client?