This content has been marked as final.
Show 4 replies
-
1. Re: EJB @Resource SessionContext not injected when running SeamTests
asookazian Jul 23, 2009 7:39 PM (in response to jeanluc)So are you saying that the injection is null while testing but not during runtime (non-test classes)?
-
2. Re: EJB @Resource SessionContext not injected when running SeamTests
jeanluc Jul 23, 2009 10:20 PM (in response to jeanluc)
So are you saying that the injection is null while testing but not during runtime (non-test classes)?Exactly.
-
3. Re: EJB @Resource SessionContext not injected when running SeamTests
asookazian Jul 23, 2009 10:44 PM (in response to jeanluc)And there's no stack trace in server.log?
Perhaps this is a bug/problem with JBoss Embedded and/or SeamTest, I assume you're using JBoss embedded as your container for testNG testing, etc.
-
4. Re: EJB @Resource SessionContext not injected when running SeamTests
jeanluc Jul 23, 2009 10:54 PM (in response to jeanluc)no stack trace indeed. I get an NPE when I try to use the injected context, but that stack trace only shows my code's flow, not why the embedded JBoss (which is used for testing, indeed) doesn't inject it.