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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content