Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7838843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:13:54+00:00 2026-06-02T15:13:54+00:00

I have a restful webservice build on CXF framework. the requirement is that when

  • 0

I have a restful webservice build on CXF framework. the requirement is that when someone hits this server i have to fetch some data from content providers like google, bing etc according to the parameters received and have to give back the same to the client. now calling service provider and getting its result is to be done using Camel Framework.
i have identified that using simple routes from(“direct:start”).to(“http://google.com.bean)(ffoo|bar) can let me talk to the service provider and do whatever i want with the result. but the problem is what should be in the place of “direct:start” so that this route starts from my service method which is being hit by the client. i read a bit about POJO producing but i could not understand how does it works and whether it will solve my problem.

Also i have a query .. that in this syntax.. from().to() … to is the consmer and from is the producer or vice versa?? because in my logs it says route is consuming from the direct:start…
Would prefer a spring configuration type of answer

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:13:56+00:00Added an answer on June 2, 2026 at 3:13 pm

    Initially i implemented cxfrs component for my webservice (inspired by Roy Truelove’s answer) but that lead to other complications. so now using direct:start component for starting the route .. my config looks like this:

    <camel:route>
    <camel:from uri="direct:start" />
    <camel:process ref="customInProcessor" />
    <camel:to uri="http://localhost:8080/DummyGoogleProject/search" />
    <camel:to uri="bean:googleResponseHandler" />
    </camel:route>
    </camel:camelContext>
    

    customInProcessor does some processing like modifying CamelHttpUri , Path , Query etc (without this there were some problems in route execution)
    I am injecting exchanges in “direct:start” endpoint via ProducerTemplate from my POJOs (POJO producing)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a restful webservice which receives some structured data which is put straight
I have a Scala application that relies on an external RESTful webservice for some
I'm using cxf 2.4.4 to make RESTful webservices I have this service: @WebService public
I am using Jersey and JAXB to build a simple RESTful webservice I have
Previously i have used restful wcf webservices to get the data from server.But now
I have a Java RESTful webservice that will be called about every 10 seconds
I want to retrieve data from restful webservice that returns xml. I'm using phonegap.
We have developed a RESTful webservice using the restlet framework. The service is called
We have a RESTFul webservice that returns a list of persons. /person/list However, the
I have method getBuses on my RESTful webservice (Rails). That method needs to return

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.