When the jboss container will call the logout from the customized module?
Can the logout be called within the application
Are you doing a programatic login using the custom login module or is it container managed? Programatically, LoginContext object has a logout method which you can call from your application.