This content has been marked as final.
Show 2 replies
-
1. Re: simulate request with weld
mkouba Aug 22, 2013 4:00 AM (in response to alberto_souza)Hi Alberto,
BoundRequestContext should work - I used it once in a small open source lib to integrate Quartz scheduler [1] with no problems. Could you describe your "remaining problems" more thoroughly? Anyway you could also try DeltaSpike's ContextControl feature [2]. I don't know of any trick that could help here.
Martin
[1]
[2]
http://deltaspike.apache.org/container-control.html#contextcontrol-usage
-
2. Re: simulate request with weld
alberto_souza Aug 22, 2013 3:06 PM (in response to mkouba)The only problem was that we were trying to use a sessionscoped object inside the job and jetty was throwing NPE about its SessionManager. In my opinion, maybe, weld could provide a way to full eager initialization object... The Lazy initialization is a problem for cases like that...
Thanks again!!!