2 Replies Latest reply on Mar 26, 2007 3:03 PM by fers

    Background thread

      I am using background thread with Seam (for sending emails).

      I read documentation but not finding what I was looking for.
      The background thread wakes up every few minutes and I want to select something from database (hibernate).

      I want to use something similar to ContextFilter, but allow calling from my code.

      At this time I am using Lifecycle.beginCall(); but it is not working at all.


      How should I do that?

        • 1. Re: Background thread
          gavin.king

          Use an asychronous method, with an interval

          • 2. Re: Background thread

            But there is problem with persistency. I think I can't use asynchronous method, because I need the thread to be spanned after start of the application (and I need it to be running only one at a time).

            Anyway thank you Gavin.