[ https://issues.apache.org/activemq/browse/CAMEL-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60998#action_60998 ]
Claus Ibsen commented on CAMEL-2752: ------------------------------------ > I have no idea, how we could prevent the users to re-setting the > UuidGenerator on the context. Any suggestions? I dont see this as a big problem. Just add a not about it in the javadoc of the method, that you should only set the generator once > I have no idea, how we could prevent the users to re-setting the > UuidGenerator on the context. Any suggestions? This is done in camel-core-xml component. See the class AbstractCamelContextFactoryBean See for example setting a custom ExecutorServiceStrategy as an example and just do like this. > Pluggable UUID generator > ------------------------ > > Key: CAMEL-2752 > URL: https://issues.apache.org/activemq/browse/CAMEL-2752 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.3.0 > Reporter: Claus Ibsen > Assignee: Christian Mueller > Fix For: 2.5.0 > > Attachments: Camel-2752.patch > > > To allow end users to use a customer ID generator. > We should have out of the box > - JavaUUID (default) > - ActiveMQUUID which uses the same logic as AMQ > - Sequence or something for testing purpose which just use a ID counter. > Makes it easier for testing to *spot* correlated messages in the logs etc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.