Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

@EJB & @Resource problem Please Help  RSS feed

Manolescu Sebastian
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've got a problem whit the @EJB injection, the EJBis null and I can't find the problem.

first class:

public class ServiceMixter extends XGen {
private static final String some = "xType";

@Resource(lookup = "java:/jca/jcrJCA")
private Rep rep;
private SessionC c;

//rest of the class

and I try to test the class but when I call:
ServiceMixter serviceMixter;

public void mx(){

System.out.println(serviceMixter); //return null;


The problem is from the @Resource? How can I incude the @Resource in the test.
Please help.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!