[
https://issues.apache.org/activemq/browse/CAMEL-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61062#action_61062
]
Christian Mueller commented on CAMEL-2752:
------------------------------------------
Hello Claus,
I got it. But after updating the
'org.apache.camel.core.xml.AbstractCamelContextFactoryBean' afterPropertiesSet
method with
{code}
public void afterPropertiesSet() throws Exception { // line 125
...
UuidGenerator uuidGenerator = getBeanForType(UuidGenerator.class);
if (uuidGenerator != null) {
LOG.info("Using custom UuidGenerator: " + uuidGenerator);
getContext().setUuidGenerator(uuidGenerator);
}
}
{code}
I got
{code}
christian-muellers-macbook-pro:camel-core-xml muellerc$ mvn -Psourcecheck clean
install
...
[INFO] Starting audit...
/Users/muellerc/workspaceApache/camel/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java:125:5:
Executable statement count is 101 (max allowed is 100).
Audit done.
{code}
Any idea how I can fix this? I think this method has to many instructions...
Thanks,
Christian
> 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.