camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unludo <unl...@gmail.com>
Subject defaultEndpoint must be specified with seda request/reply
Date Fri, 30 Mar 2012 13:42:21 GMT
When running this program I get the message 'defaultEndpoint must be
specified'. Could you help me understand why?
Thank you!

    public static void main(String args[]) throws Exception
    {
        // create CamelContext
        CamelContext context = new DefaultCamelContext();

        // add our route to the CamelContext
        context.addRoutes(new RouteBuilder()
        {
            public void configure()
            {
                   
from("seda:backend").inOut("http4://10.11.144.78:8080/pvaa-backend/rest/v1/users/json");
            }
        }

        );

        // start the route and let it do its work
        context.start();
        ProducerTemplate template = context.createProducerTemplate();

        Object result = template.requestBody("seda:backend");

        Thread.sleep(30000);

        context.stop();
    }


--
View this message in context: http://camel.465427.n5.nabble.com/defaultEndpoint-must-be-specified-with-seda-request-reply-tp5606712p5606712.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message