0 Replies Latest reply on Aug 8, 2008 7:26 AM by hamtho2

    Injecting SessionBean into Thread

      Hi,

      is there any chance to inject a SessionBean directly into a Thread via an annotation instead of using a JNDI-Lookup?

      I´ve got the case, that I use a TimerBean that starts an own Thread for every file it finds in a hotfolder. Later on this Thread should access a SessionBean through it´s local interface. As the Thread is no SessionBean I couldn´t think of any solution to simply inject the ejb but maybe I overlooked something.

      Does anyone know of a solution to this problem?

      Thanks in advance
      Thomas