The jetty component is by default in-out.. so there isn't anything special
you need to do to get the response from remoteIP to get sent back to the
calling HTTP client. The real question here is, what does this do? Do you
see your debug statements printing out ("Routing....")? Do you see any
exception stack traces?


On Mon, Sep 2, 2013 at 5:57 AM, yvsandeep <sandeep.venk...@bt.com> wrote:

> Hi,
>
> I am new to Apache Camel.I am trying to create a HTTP ping-pong service
> using Apache Camel.Here is the flow.
>
>  HTTP Client <-> Apache Camel <-> HTTP Webserver
>
> Here are the programs that I am using.
>
> Main pgm
> -----------
> import org.apache.camel.spring.Main;
>
> public class Test
> {
>
>         public static void main(String[] args) throws Exception
>         {
>                 Main start = new Main();
>                 start.enableHangupSupport();
>                 System.out.println("Starting the listener....");
>                 start.run();
>                 System.out.println("Exit");
>         }
>
> }
>
> Routes
> --------
> import org.apache.camel.builder.RouteBuilder;
>
> public class HTTPListener extends RouteBuilder {
>
>         @Override
>     public void configure() throws Exception
>     {
>                 System.out.println("Routing....");
>
> from("jetty:http://0.0.0.0:61000/myapp/myservice";).to("jetty://
> http://remoteIP:61050/Dummy";);
>     }
>
> }
>
> I have posted the message to /myapp/myservice.However,I do not see the
> request being routed to the remote http web server.Also,what should I do to
> get the response from the web server and send it to the http client?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Help-required-with-Camel-for-HTTP-service-tp5738518.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to