Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-M1
-
None
Description
See CAMEL-1641 that is a bug reported about the FTP producer not being thread safe for concurrent usage.
To address this we should consider supporting Producers to implement IsSingleton and return false to indicate that a producer should not be cached in the ProducerCache.
We should also introduce a ProducerCallback to allow safely usages of a producer and letting Camel handle the correct resource management to
- find the producer (singletons)
- add to cache if needed
- or create it
- start it
- invoke the callback
- stop it for non singletons
etc.
In the future we can support a pool of non singleton producers as well and with this callback users of this producer can safely use it without worrying how to get it from a pool and how to safely return it back without leaking.
Attachments
Issue Links
- is depended upon by
-
CAMEL-1647 Producer Pool - Add a producer pool for connection pooling capabilities
- Closed
1.
|
camel-ftp is not thread safe | Closed | Claus Ibsen |