• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

logout event

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

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:
Code:
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("java.security.auth.login.config", authConf);
AppCallbackHandler handler = new AppCallbackHandler("aaa", "aaaa".toCharArray());
LoginContext lc = new LoginContext("testSecureHttpInvoker", handler);
lc.login();

properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
//properties.put(Context.PROVIDER_URL, "https://127.0.0.1:8443/invoker/JNDIFactory");
properties.put(Context.PROVIDER_URL, "https://10.205.102.37:8443/invoker/JNDIFactory");
(Context.PROVIDER_URL, "127.0.0.1:1099");
return new InitialContext(properties);
reply
    Bookmark Topic Watch Topic
  • New Topic