5 Replies Latest reply: Jun 21, 2011 8:39 AM by jaikiran pai RSS

@Resource SessionContext problem

Atilio Ranzuglia Newbie

Hi, I can't make this work:

private @Resource SessionContext ctx;

System.out.println(ctx); // prints null

I have tried everything, included setters ang getters, @Resource previous and after "private" keyword, I get always a null reference to the session context

I'm using JBoss 4.0.3SP1 on Linux