camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Wähner <>
Subject Compile Errors in Apache Camel DSL?
Date Thu, 10 Nov 2011 13:06:08 GMT

I use Scala 2.9, Camel 2.8.2 and IntelliJ IDEA 10.5. All libraries are
imported via Maven. Other Scala stuff works well, thus Scala in IDEA seems
not to be the problem. I also can run a CamelStarter class which starts the
CamelContext successfully.

I created a route:

import org.apache.camel.scala.dsl.builder.RouteBuilder

class FilterRoute extends RouteBuilder {

  "direct:a" when ( == "kai") to("mock")


The "in" symbol cannot be found! (nevertheless code completion of IDEA
offers me "in" and a lot of other methods. Thus, I do not understand this
"==" is also not found.

If I create a class which extends RouteBuilder, but not containing any
route, then I got an error that some methods are not implemented. I went to
RouteBuilder.scala. Some compile error occur. Indeed, several methods are
not found, for example both wiretap-methode are in red color:

  def wireTap(uri: String) =
  def wireTap(uri: String, expression: Exchange => Any) =, expression)

I am no Scala expert, so it is tough for me to follow all these traits,
implicit conversions, etc. in the Scala DSL.

Can anybody assume what is wrong? Do I need another Camel, Scala or IDEA
Is any specific library missing?

Best regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message