3 Replies Latest reply on Feb 8, 2006 5:46 AM by blalls asdsd

    Filter on Seam application

    blalls asdsd Novice

      Could you please tell me how can I access my Seam components in a Filter class?
      I have tryed:
      UserLogic userLogic = (UserLogic) Component.getInstance("userLogic",false);
      Which returns null
      and

      InitialContext ctx = new InitialContext();
      UserLogic userLogic = (UserLogic) ctx.lookup("mcipro/UserLogicAction/local");

      which returns ok but trying to access a method of it gives:
      javax.ejb.EJBException: java.lang.NullPointerException
      at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)