Scala unmarshal DSL support to take the parameter of data formate.
Did you have chance to try this ?

"direct:test" unmarshal(new GzipDataFormat()) to "direct:end" 

-- 
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang





On Friday, November 16, 2012 at 11:28 AM, Jason Chaffee wrote:

> I am having issues getting the following Java examples to work using the 
> Scala DSL. Any insight is greatly appreciated as I am still trying to make my 
> way with Scala.
> 
> from("direct:test").unmarshal().gzip().split(body().tokenizeXML("offer")).parallelProcessing().streaming().to("mock:test")
> 
> 
> I tried to use partial functions to no avail:
> 
> from("direct:test").unmarshal(_).gzip().split(body(_).tokenizeXML("offer")).parallelProcessing().streaming().to("mock:test")
> 
> Jason 


Reply via email to