Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 3.1.2, 3.2-M1
-
Fix Version/s: 3.1.3 (EE only), 3.2.0
-
Component/s: Core: Components
-
Labels:None
-
User impact:Medium
-
Similar Issues:None
Description
Because components are singletons in spring this causes huge issues with the same component instance being used in multiple flows. Different FlowConstuct get injected from multiple flows in same object and all flows propagate lifecycle meaning if one flow is stopped the component is stopped for all others too.
This affects us via both <processor ref=""/> and <flow-ref name=""/>
Issue Links
- relates to
-
MULE-5747
Sub-flows (and processors defined in them) don't get muleContext injected or lifecycle when used via flow-ref
-
Silly question, can the components have a reference count and only pay attention to the propagated flow life cycle if the count is 1 or something like that?
Regardless of the implementation, this is confusing and no easy to explain to users.