How do I reset the security context when invoking EJBs from a remote client?

Solution Verified - Updated -

Issue

  • A standalone process that calls a secured ejb then a non secured ejb. On the second call, a security context that was initialised during the first call gets propagated. Would like the second call to be made without a security context, in exactly the same way as if the non-secured call was done first. What is the recommended way of resetting the security context so it is not propagated?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.