Quantcast
Channel: How to get dependency injection to work in Liberty Profile - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Erik_A for How to get dependency injection to work in Liberty Profile

Another solution would be to add a beans.xml file to the web project and configure beans.xml with bean-discovery-mode="all".See also this explanation:...

View Article



Answer by Gas for How to get dependency injection to work in Liberty Profile

Rest resources are not CDI enabled by default. Add the following to your HelloResource class @RequestScoped after @ParthThen this will work: @Resource(lookup="concurrent/execSvc") ExecutorService...

View Article

How to get dependency injection to work in Liberty Profile

I cannot get dependency injection to work in Liberty Profile. Here's what I have tried: server.xml excerpts:...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images