Hi Claus

Thanks for your interest.
Use case is "Can we use a beaniodataformat depending upon the exchange
filetype or file extension?"

Eg
from("file://filPath")
                                                // do a little logging

                                                // aggregate based on header 
correlation key
                                                // use class 
MyAggregationStrategy for aggregation
                                                // and complete when we have 
aggregated 14 messages
                                                .process(new Processor() {

                                                        @Override
                                                        public void 
process(Exchange exchange) throws Exception {

                                                                
System.out.println("B3");
                                                                final 
DataFormat language = new BeanIODataFormat("CSVMappings.xml",
"languageFile");
                                                                
System.out.println("B2"
                                                                                
+ language.unmarshal(exchange,
exchange.getIn().getBody(InputStream.class))); 

                                                        }
                                                })

The above code does not work and throws runtime exceptions.



--
View this message in context: 
http://camel.465427.n5.nabble.com/BeanIODataFormat-giving-exception-in-OSGI-compliant-Karaf-Server-Camel-tp5765404p5765442.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to