camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Genadii Ganebnyi" <genadii.ganeb...@gmail.com>
Subject Flow stops at cxf call
Date Mon, 04 Aug 2008 20:36:34 GMT
Hi All,
I have the following flow:
        from("activemq:vasea")
        .process(new Processor() {
		
			public void process(Exchange ex) throws Exception {
				
				System.out.println(">>>>>>"+ex.getIn().getBody().getClass());
				//ex.getIn().setBody(ex.getIn().getBody(String.class));
				JAXBContext ctx = JAXBContext.newInstance(new Class[]
{InputReportIncident.class});
		        Unmarshaller um = ctx.createUnmarshaller();
		        InputReportIncident report = (InputReportIncident)
um.unmarshal(new StringReader(ex.getIn().getBody(String.class)));
		
		        ArrayList<InputReportIncident> list = new
ArrayList<InputReportIncident>();
		        list.add(report);
		        ex.getIn().setBody(list);
				ex.getIn().setHeader(CxfConstants.OPERATION_NAME, "ReportIncident");
		
			}
		})
        .pipeline("cxf:bean:serviceEndpoint")
        .to("activemq:petea")
        ;
It stops at the point where cxf is called. Can anybody help with this issue?

Mime
View raw message