This content has been marked as final.
Show 1 reply
-
1. Re: How to start transaction in custom login module?
petertje Jun 19, 2003 11:15 AM (in response to nish_dce)> Actually, I need to perform some direct Database
> updation before each EJB method call,so I want to put
> it in the "CustomLoginModule" itself,as it would be
> executed per EJB method call.
This won't work, as the login module is not called for each ejb request (the security manager caches this info).
> The issue is that I want to rollback any changes I do
> during LoginModule;if my actual EJB method call
> fails.
So put this direct database update in a sessionbean and put them together in one (ejb) transaction. I pretty sure it is impossible to combine ejb transactions with transactions started in a login module, because these are two completely separated tasks.
Hth
Peter.