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
and then use
background.doMyJob(....) - then i have an entity manager and everything works !
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.