I just noticed something when playing with a simple infinispan app.
If I have a form/action that are used to display data (from the cache) to the user, I expect the call flow to be something like:
Validate
ActionListener(s)
Action
Producer(s)
Instead, the flow seems to be
Validate
Producer(s)
ActionListener(s)
Action
Now this causes a problem because my action will populate some data, and the producer returns that data. The bean is session scoped and the producer is request scoped.
Is this in fact accurate behavior?
It largely depends on what producers you have, and what beans use them, and where they are invoked in the lifecycle.
Producers are on-demand
.