Hello,
I tried to use EJB DI in Custom DataSource. It failed. I got null instance.
managmentService is null. Can you prompt how can I use DI in Custom DataSource? I really need it. It works with servlets. I deploy it on Wildfly 8.0.
I tried to use EJB DI in Custom DataSource. It failed. I got null instance.
Code:
public class UsersDS extends BasicDataSource {
@Inject
public IManagementService managmentService;
@Override
public DSResponse executeFetch(DSRequest req) throws Exception {
...
List<Obj> objs= managmentService.getObjs(...);
...
}