On 2010-12-18 22.49, Marc Grue wrote:
Output shows that bakerAccount has wrongly been paid twice (and
butcherAccount never come into play):
BakerAccount:90 ButcherAccount:-90
Right, because the roles in the entities have been injected with the
original context, and this is not "reset".
There are two ways to look at it:
1) One UoW - one interaction (why are you doing two things in one UoW
anyway?). This is still problematic for recursive scenarios though
2) Skip injection and go with the static accessors in Contexts. That
always works.
I would probably go with 2). There's no point in doing injection "just
because", I think.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev