Best practices when writting to a file from Camel

Solution Verified - Updated -

Issue

This is a question as what the best practices are when writing to a file.

I have a route, which reads off ActiveMQ. The ActiveMQ has its concurrent consumers set at 10. This obviously means several consumers could attempt to write to a file.

Is this acceptable? or is it best to use something like a SEDA with concurrent consumers set at 1, so only 1 thread is ever writing to a file at any one time.

Environment

  • Fuse ESB Enterprise 7.1
  • JBoss Fuse 6.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.