This content has been marked as final.
Show 2 replies
-
1. Re: Nested Asynchronous Tasks
jhollerer Jan 15, 2010 10:59 PM (in response to jhollerer)What i found out was that if i make a new BackgorundTask().doMyJob(@Intervall....) then it does not work !
If i instead use in the BackgroundMainTask an
@In
BackgroundThread backgroundand then use
background.doMyJob(....) - then i have an entity manager and everything works !
-
2. Re: Nested Asynchronous Tasks
kapitanpetko Jan 16, 2010 4:45 AM (in response to jhollerer)Right, for injection to work, your component has to be created by Seam, using new doesn't work. So you should use @In(create=true) or Component.getInstance(
backgroundTask
). Also be aware that calls to the same component are not intercepted.HTH