Re: unmarshaling and tokenizing in Scala DSL

2012-11-16 Thread Henryk Konsek
> Did you have chance to try this ? > "direct:test" unmarshal(new GzipDataFormat()) to "direct:end" Why don't just stick to the following? from("direct:test") unmarshal() gzip() to("mock:test") -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: unmarshaling and tokenizing in Scala DSL

2012-11-15 Thread Jason Chaffee
I got the unmarshal working by using the GzipDataFormat that extends DataFormatDefinition. The normal GzipDataFormat doesn't work. Any thoughts on the splitter? On Nov 15, 2012, at 10:11 PM, "Willem jiang" wrote: > Scala unmarshal DSL support to take the parameter of data formate. > Did you h

Re: unmarshaling and tokenizing in Scala DSL

2012-11-15 Thread Willem jiang
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:/

unmarshaling and tokenizing in Scala DSL

2012-11-15 Thread Jason Chaffee
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")