2 Replies Latest reply on Feb 7, 2019 11:35 AM by Laird Nelson

    From within a Service, how do I get a ServiceRegistry?

    Laird Nelson Expert

      I'm doing some evil things inside a JpaInjectionServices implementation.  I'd like to get the currently configured ExecutorServices.  The only way I can think of to do it is to do something faintly stupid like ((WeldManager)(CDI.current().getBeanManager())).getServices().get(ExecutorServices.class).  Is there a better way?