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

      public class JobCategoryService {

           IJobCategoryDAO jobCategoryDAO;

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

      Whenever i try to access it the jobCategoryDAO always returns null