camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Chheng <tommy.chh...@gmail.com>
Subject camel beans using scala dsl
Date Mon, 22 Nov 2010 21:49:41 GMT
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


Mime
View raw message