camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chaffee (JIRA)" <>
Subject [jira] [Commented] (CAMEL-5795) Scala DSL Examples
Date Fri, 16 Nov 2012 08:28:13 GMT


Jason Chaffee commented on CAMEL-5795:

Here is one example,

Java Example:


To accomplish the same thing in Scala it is not easy to figure out and it is quite different.

Scala Example,

import org.apache.camel.model.dataformat.GzipDataFormat

from("direct:a").unmarshal(new GzipDataFormat()).to("mock:a");

Normally, you would expect to use this class:

import org.apache.camel.impl.GzipDataFormat

It is very confusing and there is no documentation on this.  

> Scala DSL Examples
> ------------------
>                 Key: CAMEL-5795
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
> There are very few Scala DSL examples for the components, only Java.  However, in many
cases the Java DSL is very different than the Scala DSL and it is not easy to figure out how
to accomplish the same thing in Scala.  
> Therefore, I feel there should always be a Java example, a xml example, and a Scala exaample.
> I can add examples of differences between Java and Scala if needed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message