It's not a secret anymore!
The moose likes JBoss/WildFly and the fly likes logout event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "logout event" Watch "logout event" New topic

logout event

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342

i am working with jboss4.2
the server expose stateless session bean as facade.
i implement CustomLoginModule.

My question is -
is there a way to listent to logout? for how long the user is login to the system?
I saw that 'AbstractServerLoginModule' has logout function. The question is how jboss now when to call it? Who activate the logout?

I have remote client like this:
Properties properties = new Properties();

// Working for both

String authConf = "C:/work/devenv/mgt-server/third-party/jboss-4.2.0.GA/client/auth.conf";
System.setProperty("", authConf);
AppCallbackHandler handler = new AppCallbackHandler("aaa", "aaaa".toCharArray());
LoginContext lc = new LoginContext("testSecureHttpInvoker", handler);

properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
//properties.put(Context.PROVIDER_URL, "");
properties.put(Context.PROVIDER_URL, "");
(Context.PROVIDER_URL, "");
return new InitialContext(properties);
I agree. Here's the link:
subject: logout event
It's not a secret anymore!