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

Martin Krasser commented on CAMEL-3140:
---------------------------------------

Will add something like the following to {{DefaultCamelContext}}

{code:java|title=DefaultCamelContext.java}
    // ...
    private UuidGenerator uuidGenerator = createDefaultUuidGenerator();
    // ...
    private static UuidGenerator createDefaultUuidGenerator() {
        if (System.getProperty("com.google.appengine.runtime.environment") != 
null) {
            // either "Production" (on GAE) or "Development" (on local 
development server)
            return new JavaUuidGenerator();
        } else {
            return new ActiveMQUuidGenerator();
        }
    }
{code}

Then we can also revert the changes made to {{GaeDefaultCamelContext}} and 
{{GaeSpringCamelContext}}. Still need to test it on GAE, then I'll commit.

> Document required usage of JavaUUIDGenerator when running Camel on GAE
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3140
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3140
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-gae
>    Affects Versions: 2.4.0
>            Reporter: Martin Krasser
>            Assignee: Martin Krasser
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> JavaUUIDGenerator won't be the default one in Camel 2.5 and Camel GAE apps 
> will need to configure the JavaUUIDGenerator explicitly. The former 
> ActiveMQUUIDGenerator uses APIs that are not on the GAE JDK whitelist.

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