Thanks for the detailed explanation of the underlying issue. Now, I'm second guessing myself.
What is the recommended way to use a Java SE client with Glassfish with container managed security for EJBs and a non-default security realm? The ProgrammaticLogin doesn't appear to have been coded for this scenario. So are there other ways of doing this?
[Message sent by forum member 'r_sudh' (r_sudh)]
http://forums.java.net/jive/thread.jspa?messageID=245075