2 Replies Latest reply on Mar 23, 2009 5:46 PM by Jubril Adisa

    Injected Bean is Null

    Jubril Adisa Novice

      I defined a Bean in the component.xml File

      <component name="jobCategoryDAO" class="com.brefftjobs.dao.JobCategoryDAO" auto-create="true"></component>


      and I am injecting it into a Class that i have defined as a Application Scoped Component



      @Name("jobCategoryService")
      @Scope(ScopeType.APPLICATION)
      public class JobCategoryService {

      @In("#{jobCategoryDAO}")
           IJobCategoryDAO jobCategoryDAO;


      @Create
      public void load(){
      System.out.println("$$$$$$$$$$$$$$$$$$$$Load Executed");//Injected jobcategoryDAO is null



      Whenever i try to access it the jobCategoryDAO always returns null