[ 
https://issues.apache.org/activemq/browse/CAMEL-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60815#action_60815
 ] 

Claus Ibsen commented on CAMEL-2752:
------------------------------------

My comments on top of Hadrians

- UuidGenerator interface should be in {{org.apache.camel.spi}} package
- Yeah its hard to decide whether it should be UUID or Uuid. The JDK uses UUID. 
But the convention is most likely Uuid. 

And we should also make it easy to set a custom uuid generator using 
camel-spring.  
See this page
http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html

See the camel-core-xml component where the logic should be added. Basically 
lookup in the registry for 1 bean of type 
{{org.apache.camel.spi.UuidGenerator}} and use it if found. Just like some of 
the other code does.

And then add an unit test for it in camel-spring module.

> 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.

Reply via email to