Dependency injection into ResourceFilter not working?
问题 I have a bunch of JAX-RS resources that provide an API for a new WebService. In order to understand what's happening, I'd like to store information about each request in a data warehouse. In my mind, this is a perfect example for a cross-cutting concern, which could be implemented by a ResourceFilter , right? So I built a DataWarehouseService which is supposed to store stuff in the DB: @Stateless @LocalBean public class DataWarehouseService { public void logApiCall(ContainerRequest cr) { //