I'm trying to use the scala DSL with a bean but running into an error:
error: too many arguments for method bean: (bean: Any)org.apache.camel.scala.dsl.DSL
[INFO]     bean(classOf[News], "create")

---
import org.apache.camel.scala.dsl.builder.RouteBuilder
class NewsRoute extends RouteBuilder{
  "seda:news" ==> {
    bean(classOf[News], "create")
    to("mock:output")
  }
}

I'm trying to reproduce this java example using the scala DSL:
from("direct:start").bean(EchoBean.class, "echo").to("log:reply");

Does using the scala DSL prevent intermixing with the java methods?

--
@tommychheng

Reply via email to