camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Created: (CAMEL-1093) camel-jetty - Exchange failures should not be returned as 200
Date Sat, 15 Nov 2008 11:03:05 GMT
camel-jetty - Exchange failures should not be returned as 200

                 Key: CAMEL-1093
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-jetty
    Affects Versions: 1.5.0
            Reporter: Claus Ibsen
             Fix For: 1.5.1, 2.0.0

The code below:

    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            public void configure() throws Exception {
                from("jetty:http://localhost:8080/myapp/myservice").process(new MyBookService());

    public class MyBookService implements Processor {
        public void process(Exchange exchange) throws Exception {
            throw new IllegalArgumentException("Damm");

Will return http response code 200. We should let end users easily set what response code
they want and in case of route failures we should probably return 500 and return the stracktrace
in the body

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message