> 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
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.