Richard Searle's Blog

Thoughts about software

akka, camel and UuidGenerator surprises

Posted by eggsearle on December 7, 2010

A test using Akka 1.0 to implement a request-response JMS interaction failed with a missing class:org.apache.camel.util.UuidGenerator

The Camel documentation does not really explain why this occurs since it references other classes and indicates UuidGenerator is not the default. The source of the error thus remains a mystery.

The solution is fortunately straightforward, using the following code to explicitly specify the generator

CamelContextManager.mandatoryContext.
setUuidGenerator(new org.apache.camel.impl.SimpleUuidGenerator)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: