Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Custom DataSource and EJB DI

$
0
0
Hello,
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(...);
...
}

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.

Viewing all articles
Browse latest Browse all 4756

Trending Articles