-
1. Re: Errai service scaffolding
jfuerth Jun 20, 2013 4:11 PM (in response to bogdand)Hi Bogdan,
This sounds wrong to me. Can you please file a JIRA for this issue? It would help if you could provide a class with a @Service method that reproduces this issue.
We will investigate!
-Jonathan
-
2. Re: Errai service scaffolding
bogdand Jun 21, 2013 4:49 AM (in response to jfuerth)Hi,
So after a few debug runs, it turned out the second callback (the one coming from the ServiceProcessor) was instantiated due to
the autodiscover property I had set on my servlet context.
If set, the processor creates the callback and adds it to the DeliveryPlan on the bus.
Hope I got it right..
So, how is this property used to have a consistent errai setup?
This behavior is reproduced with any @Service annotated class.
Thanks
Bogdan
-
3. Re: Errai service scaffolding
csa Jun 21, 2013 1:06 PM (in response to bogdand)1 of 1 people found this helpfulHi Bogdan,
Yes, that's exactly the issue. If you're using Errai CDI you don't need the autodiscovery init param. It's only needed for plain bus applications. This default changed on the road to 2.0.* Final:
https://docs.jboss.org/author/display/ERRAI/Upgrading+from+2.0.Beta+to+2.0.*.Final
Cheers,
Christian
-
4. Re: Errai service scaffolding
bogdand Jun 22, 2013 1:39 PM (in response to csa)All clear now.Thanks for the helpful answers.
Cheers,
Bogdan