tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Secure EJBs testing with Arquillian
Date Thu, 10 Jan 2013 00:12:36 GMT
it basically does the same

maybe you'll need to specify Context.INITAL_CONTEXT_FACTORY (normally no
but depend how you run the test)

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/1/10 Luca Merolla <luca.merolla@gmail.com>

> I was actually trying something similar already, basically the previous
> "login" method  was the following
>
> Properties properties = new Properties();
> properties.put(Context.SECURITY_PRINCIPAL, username);
> properties.put(Context.SECURITY_CREDENTIALS, password);
>
> final Context context = new InitialContext(properties);
>
> but the access was not authorized, then I found the previous example and I
> thought there was a need of having this ArquillianContext class
>
> On Thu, Jan 10, 2013 at 12:44 AM, Romain Manni-Bucau
> <rmannibucau@gmail.com>wrote:
>
> > new InitialContext
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message