It is not needed, you are running the whole thing in a privilidged block, and this code has the required permissions anyway.

Sent from my iPhone

On 31/10/2013, at 9:29, Scott Marlow <notifications@github.com> wrote:

> In jpa/core/src/main/java/org/jboss/as/jpa/service/PersistenceUnitServiceImpl.java:
> 
> > @@ -119,6 +119,9 @@ public void run() {
> >                              @Override
> >                              public Void run() {
> >  
> Could you use WildFlySecurityManager to get/set the TCCL?
> 
> —
> Reply to this email directly or view it on GitHub.