[jboss-user] [EJB/JBoss] - SessionContext Not Injected in Scoped Class Loader

dipti.patel do-not-reply at jboss.com
Thu Apr 3 07:00:00 EDT 2008


1. I am using scopped class loader for my EAR file. jboss-app.xml configuration is as follows, 


2. I have one ejb.jar file in this My.ear file. This jar contains stateless session bean & uses timer services. 

3. For using timer services, I have injected SessionContext using @Resource annotation like,

protected SessionContext context;

4. Injection works well if I dont use jboss-app.xml. But if use jboss-app.xml, SessionContext is not injected and I get NullPointerException.

Is there any entry that I have to make in application.xml for injecting resources? Or Is there any other way of getting this SessionContext referevce.

Thanks in advace for help

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141276#4141276

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141276

More information about the jboss-user mailing list