users@glassfish.java.net

How to force logout?

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Nov 2009 10:24:44 PST

Hi,

I have an application that uses a stateful session bean and a java application client. I would like to be able to change users from my java client application. What is the best way to do this?

Is there a way to force a logout?

I tried adding a method annotated with @Remove in my EJB and a @PreDestroy annotated routine with just a println statement. The @PreDestroy routine gets executed after calling the @Remove annotated method, but when I do the next EJB transaction the container does not ask for a password again.

I would think this would be a common task, but I cannot find anything on the web.

Thanks,

Alex
[Message sent by forum member 'thedudeabides' (smith_at_physics.umn.edu)]

http://forums.java.net/jive/thread.jspa?messageID=371450