users@glassfish.java.net

Re: How to create a ejb reference from client with Security Credentials?

From: <glassfish_at_javadesktop.org>
Date: Thu, 19 Apr 2007 23:14:52 PDT

Sorry,

I forgot to mention that when using ProgrammaticLogin you also have to set the JAAS Config. So please add the following as JVM parameter to your Unit Tests:
-Djava.security.auth.login.config=<%AS_INSTALL%>\lib\appclient\appclientlogin.conf
(Replace AS_INSTALL with your glassfish DIR)

That should do it.

-Daniel
[Message sent by forum member 'barz26' (barz26)]

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