0 Replies Latest reply on Jan 14, 2009 5:07 PM by liav ezer

    Problem using camel-2.0 API in SMX - How?

    liav ezer Newbie

      Hi,

       

      I have the following problem:

       

      In my Camel DSL routing logic i call a processor which analyzes my exchange.

       

      When i looked at the Exchange API i saw that i can extract the original exchange's end-point.

       

      Please refer to:

      http://activemq.apache.org/camel/maven/camel-core/apidocs/org/apache/camel/Exchange.html#getFromEndpoint()

       

      But this API is new - only in camel-2.0 while SMX works with 1.5 at most.

       

      My questions are:

      1. Can you advise how to get the camel-core 2.0 version via maven?

       

      I tried the following depedency & got this error:

      2.0.0</version>

      </dependency>

      Error:

      -


       

      BUILD ERROR

      -


       

      Failed to resolve artifact.

       

      GroupId: org.apache.camel

      ArtifactId: camel-maven-plugin

      Version: 2.0.0

       

      Reason: Unable to download the artifact from any repository

        org.apache.camel:camel-maven-plugin:pom:2.0.0

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2),

        apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),

        apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)

       

       

      2. Can you please advise how to gain the exchange's 'from' end-point at run time in other way beside using this new API?

       

      Thanks.