tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>
Subject Re: JtaEntityManager GC
Date Tue, 20 Feb 2018 10:01:25 GMT
sorry i misread the question.  you should still be able to @Inject into 
a @Stateless without a @RequestContext?
for my timer classes i used this example
http://tomee.apache.org/examples-trunk/schedule-expression/README.html
an @EJB @Singleton initialised with TimerConfig

On 19/02/2018 21:43, cocorossello wrote:
> Thx Chongma, but one question.
>
> Let's say I also want to use that MyRepo1 from a @Stateless @Scheduled (so
> no request context). How can I produce that same entityManager?
>
>
>
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html


Mime
View raw message