[
https://issues.apache.org/jira/browse/OPENEJB-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972024#action_12972024
]
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: https://issues.apache.org/jira/browse/OPENEJB-1415
> 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
> javax.security.auth.login.Configuration.setConfiguration(null); 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.