Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Unfortunally I use BeanManager within Java EE components, which do not provide a way of using CDI. One of them is ExceptionMapper. Actually it is the reason why I need a BeanManager in the first place, I need to have a way to access EJBs Commented Aug 14, 2015 at 14:03
  • I am using wildfly 8.1.0.Final which comes with weld 2.1 and resteasy 3.0.8 and can use @Inject inside ExceptionMapper. Commented Aug 14, 2015 at 14:19
  • 1
    If you're really stuck I suggest to use delta spike Bean Manager Provider: deltaspike.apache.org/documentation/… Commented Aug 14, 2015 at 14:20
  • well I am kinda stuck with Glassfish 3. For me injection to ExceptionMapper does not work there. I am not sure whether I am able to convince my team to use DeltaSpike. But thank you for the hint! Commented Aug 14, 2015 at 16:07