You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tommy Chheng <to...@gmail.com> on 2010/11/22 22:49:41 UTC

camel beans using scala dsl

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


Re: camel beans using scala dsl

Posted by Richard Kettelerij <ri...@gmail.com>.
FWIW, note that the Scala DSL doesn't support every construct available in
the Java DSL, work is underway to improve this:
https://issues.apache.org/activemq/browse/CAMEL-463
-- 
View this message in context: http://camel.465427.n5.nabble.com/camel-beans-using-scala-dsl-tp3276082p3276116.html
Sent from the Camel - Users mailing list archive at Nabble.com.