Hi!
> Putting all those beans into the same jar file worked, but now another
> problem manifests itself.
>
> ctx.getCallerPrincipal() returns null, even though in the client I:
>
> String _initContextOverride = ...;
> String _url = ...;
> String _username = ...;
> String _password = ...;
>
> Properties h = new Properties();
> h.put(Context.INITIAL_CONTEXT_FACTORY, _initContextOverride);
> h.put(Context.PROVIDER_URL, _url);
> h.put(Context.SECURITY_PRINCIPAL, _username);
> h.put(Context.SECURITY_CREDENTIALS, _password);
> ctx = new InitialContext(h);
The JNDI security and the EJB security are completely separate (and we don'r
even implement JNDI security).
Check the threads for the last couple of days for info on how to set up and
use EJB security properly.
/Rickard
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]