on 12-27-2007 8:51 AM
Hi everybody
I have developed a JAAS login module for j2ee engine 7.0.
The module behaves properly until login() is executed, but afterwards the whole java module object is discarded(or "killed") by the java runtime. No exception is thrown, it just disappears from the NWDS debugger view.
What's worse, when logout() is executed, the module is re-instanciated and of course re-initialized: as it is a completely new module object, the internal state is lost!
Has anyone ever faced this issue before?
Thanks a lot
Point will be awarded
Vincenzo
Hi Vincenzo,
This is not a problem. It is as per JAAS specification.
The JAAS infrastructure executes login() methods of all the LMs in the stack and then the submit() methods. Depending on LMs result (true|false|exception), the user is logged in or not.
When the procedure is done, the LM instances are free for the Garbage Collector.
When logout() is called, new LM instances are created and logout() is invoked.
Kind regards,
Tsvetomir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.