7 Replies Latest reply on Aug 7, 2009 11:55 AM by Leo van den berg

    QueueSession is null when scheduler runs

    Vassilis Petropoulos Newbie

      Recall from old forum:


      my stateless bean injects QueueSession, QueueSender.

      @In QueueSender qSender;

      @In QueueSession qSession;

      I setup components.xml according to section 18.2.1 (Messaging in Seam) and everything works fine. The problem is that when my bean is been calling asynchronously (eg from a cron scheduled job) injection is lost and qSession, qSender are null.


      pete.muir@jboss.org wrote:

      surely you need @In(create true) on those?

      Unfortunately, it didn't work.