First thanks a lot for all this help.
I have near by completed my work.But i have faced another problem.
Do we have to call LoginContext("loginconfig",Handler) each time before calling an EJB or to get the same values in other request.?
I want that if the same user makes the request next time so this time he may need not reauthenticate himsel again and again.
How can i do that..?
Regards,
Gaurav