Hi,

I think you may need to recompile the route instead of just change the class 
path when you move to use Camel 2.12.1.  

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, November 11, 2013 at 5:39 AM, Agostino Calamita wrote:

> Hi,
> I'm trying to use transacted route with Camel 2.12.1.
>  
> This is just a little example to test transacted() method:
>  
> public static void main(String args[]) throws Exception {
> // create CamelContext
> CamelContext context = new DefaultCamelContext();
>  
> // add our route to the CamelContext
> context.addRoutes(new RouteBuilder() {
> public void configure() {
> from("activemq:topic:example_queue")
> .transacted()
> .to("log:mediationrouter?level=DEBUG");
>  
> }
>  
> });
>  
> This route is only an example.
>  
> If I use this code with Camel 2.12.1, it throws a strange Exception:
>  
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.camel.model.RouteDefinition.transacted()Lorg/apache/camel/model/PolicyDefinition;
>  
>  
> but, if I user Camel 2.11.0 it works !
>  
> I read in 2.12.1 Release Notes that something changed in transaction
> setting, but I didn't find any example or document.
>  
> Can somebody help me ?
>  
> Thanks.  


Reply via email to