The exception you are seeing is because the camel-http jar is not
present in your classpath. Is this down to how you are deploying your
bundles? If you make the bundle creating the route depend on
camel-http it should go away.

Would I be correct in saying that the bundle creating the sayHello
service depends on camel-http and camel-http is only deployed when it
is? if this is teh case then just insure that camel-http gets deployed
before either of your bundles and you should be good!

If this is not an option and you want to wait until the message is
sent to complain then use a camel template to send the result directly
from your DoSomething Processor.

template.sendBody("http://localhost:9099/sayHello";, payload)

You'll still need  camel-http deployed at this time in order to avoid
the error message.

Give this try

ste

On Mon, Feb 1, 2010 at 2:01 PM, jweathers777 <[email protected]> wrote:
>
> I have a route defined in a Camel-based service unit like this:
> from("direct:my-from-endpoint").process(new
> DoSomething()).to("http://localhost:9099/sayHello";)
>
> In some cases, the sayHello web service is not running at the point when the
> Camel route inside the service unit is getting defined. In such cases, the
> service unit deployment fails because Camel encounters an exception:
>
> org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
> http://localhost:9099/sayHello, please check your classpath contains the
> needed camel component jar.
>
> Is there a way to ignore this exception and only complain when this route
> actually gets used for messages rather than die at the point of creation? In
> our deployment scenario, it is not always possible for the web service in
> question to be ready when the Camel services are being created, but the
> service is always available by the time messages start passing through the
> system.
> --
> View this message in context: 
> http://old.nabble.com/Camek-1.6.x-w--ServiceMix---HTTP-%22no-endpoint-could-be-found%22-tp27412165p27412165.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Reply via email to