On Aug 3, 2007, at 5:24 AM, Oleg Nitz wrote:

Hello all,

Now I am migrating our system from JBoss to Geronimo, and I met the
following problem. During login we attach some tecnical info about
the current user to the Subject as a public credintial. Then at any
point inside EJB we need to be able to find the active Subject in order
to get the tech info. In JBoss the following code does the trick:

ic = new InitialContext();
jsm = (JaasSecurityManager) ic.lookup("java:/jaas/our-security- domain");
subject = jsm.getActiveSubject();

Is such thing possible in Geronimo? What the correspondent code for Geronimo would look like?

org.apache.geronimo.security.ContextManager.getCurrentSubject() gets the current subject org.apache.geronimo.security.ContextManager.getNextSubject() gets the run-as subject

hope this helps
david jencks


Thanks in advance,
Oleg



Reply via email to