tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Louis MONTEIRO (JIRA)" <>
Subject [jira] Commented: (OPENEJB-1415) OpenEJB.destroy() should reset previous jaas configuration
Date Thu, 16 Dec 2010 09:48:01 GMT


Jean-Louis MONTEIRO commented on OPENEJB-1415:

IMO, you should use instead the InitialContext to initialize and destroy OpenEJB.
You can set credentials in the initial context properties.
Moreover, if you use the same initial context instance to initialize and to call close, the
surrounding OpenEJB instance we get the same life-cycle.
For that, be careful to set the property openejb.embedded.initialcontext.close=destroy

Can you give it a try and let us know?

> OpenEJB.destroy() should reset previous jaas configuration
> ----------------------------------------------------------
>                 Key: OPENEJB-1415
>                 URL:
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 3.1.4
>            Reporter: Francis De Brabandere
>            Priority: Trivial
> After calling  OpenEJB.destroy() in our unit test @AfterClass we need to call;
to reset jaas configuration done by openejb.
> I would expect OpenEJB.destroy() to not leave any traces that could cause other tests
to fail...
> Am I correct here?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message