[
https://issues.apache.org/activemq/browse/SM-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41838#action_41838
]
Ron Gavlin commented on SM-1292:
--------------------------------
Hi Guillaume,
Writing to the same file in append mode is another use case that I wasn't
explicitly thinking about, but it is definitely a valid scenario.
In my use case, I have a follow-on system that expects an incrementing counter
embedded in the filename that works across the cluster. The example described
above seems to only handle the incrementing counter within a single vm. OpenESB
supports using a control file whose contents is the current value of the
counter. In order to implement such a facility, a distributed locking mechanism
would be required as well as a convenient facility for storing the counter
state across the cluster. If a control file was used for the distributed
locking scheme, it would seem a convenient location to store the counter. This
does however couple the locking facility with the state management. What are
your thoughts?
> Handle clustering of outbound endpoints using "persisted sequence numbering"
> ----------------------------------------------------------------------------
>
> Key: SM-1292
> URL: https://issues.apache.org/activemq/browse/SM-1292
> Project: ServiceMix
> Issue Type: New Feature
> Components: servicemix-file
> Affects Versions: 3.2.1
> Reporter: Ron Gavlin
>
> The user should be able to configure the output file name as a pattern
> including a "sequence number" (%{<seq_name>}) in the name, such that each
> output file when written out to the target folder has a unique file name that
> embeds the sequence number. The "persisted sequence number" is shared across
> the cluster. See the "Persisted Sequence Number" section of document
> http://wiki.open-esb.java.net/Wiki.jsp?page=FileBindingComponentClusteringSupportImplementation
> for a description of how Sun's OpenESB File Binding Component supports this
> requirement using a control file in the target directory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.