GlassFish offers a ProgrammaticLogin class to do a login within your application. See http://docs.sun.com/app/docs/doc/819-3659/6n5s6m58q?a=view for more information. But be aware that this solution is GlassFish specific and not portable.
regards
Daniel
[Message sent by forum member 'barz26' (barz26)]