What version of JEE are you asking for? In JEE 5, you can only inject into JSF resources, servlets, etc. In JEE 6, things are more flexible. This thread explains it nicely.
Thanks this link really solved my problem..
but I am now facing another one, The hibernate is not working in it now..
I am using JEE 6, hibernate 3.5, struts 2 and EJB3.0 with JBoss 6 application server and MySQL.
for my project.
IS there any tutorial to integrate all these into a single project.
I really fed working out with this