geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weberjn <>
Subject Re: API for nested subjects?
Date Thu, 19 Jul 2012 14:24:37 GMT
OK, let's put it diffently:

How can I call the EJB below from a standalone Java Client with three
different Users (let's say round-robin), but without having to open a new
InitialContext for each call?


public class PrincipalEJB
    private EJBContext context;

    public String info() 
    	String s = context.getCallerPrincipal().getName();
        return s;

View this message in context:
Sent from the Users mailing list archive at

View raw message