6 Replies Latest reply on Feb 28, 2009 11:06 PM by Gregory Nikle

    Component.getInstance(...) problem

    Gregory Nikle Apprentice

      Hi,
      I try to get APLICATION scope component instance from conversation scope another component by:


      Component.getInstance



      Is this possible?


      Here is my STSB


      @Stateful
      @Scope(ScopeType.APPLICATION)
      @Name("sguniNewsAction")



      and conversation bean



      SGUniNewsAction action = (SGUniNewsAction)Component.getInstance(SGUniNewsAction.class, false);
      action.loadHotNews();



      after that I get



      Class cast exception error