Hi,

I have been able to resolve my issue. The object
java.security.auth.login.Configuration
(responsible to load the file containing the loginModules / realm) is
created one time / java or maven session.

Even if you change the System property "java.security.auth.login.config",
the file loaded for the first JAAS Authentication will be reused all the
time.

To resolve the problem in a project containing several Junit tests, I have
defined all the login Modules within only ONE common file "my-jaas.cfg
file".

Regards,


On Fri, May 6, 2016 at 6:11 AM, yogu13 <yog...@gmail.com> wrote:

> Hi,
>
> Rather than init can you set this as part of the systemPropertyVariables in
> maven-surefire-plugin
> <
> https://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html
> >
>
> Regards,
> -Yogesh
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Netty4-HTTP-JAAS-issue-tp5782122p5782257.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to