Announcement Announcement Module
No announcement yet.
<bean id="id" ... scope="flow"> Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • <bean id="id" ... scope="flow">

    Is it possible to declare a bean through an application context and then have it bound to a flow (like <bean id="id" ... scope="flow">).

    For example I have a JSF bean that needs to hold a DataModel during life time of a flow. This bean requires references to services to populate the DataModel from the database. So it would receive dependency injected references to some other spring managed beans like services etc. And as soon the flow terminates, the DataModel holding my data would be released too.

    The SWF flow definition allows to declare flow local beans through the <var> element but this seems to support simple instantiation only.