Hi,
I am using @Resource annotation for injecting the data source as below:
@Resource(name="OracleDS")
| private DataSource dataSource;
But, I get a Null Pointer Exception.
If i do a JNDI look up like this it works
DataSource dataSource = (DataSource) context.lookup("java:/OracleDS");
What am i doing wrong with injecting the data source?
Thanks,
Srikanth.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194183#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...