Kristian,
I think the correct syntax in your case is:
from("jbi:endpoint:http://www.dmc.de/testCamel/endpoint")
If you look at http://activemq.apache.org/camel/jbi.html, it indicates that you should be using the / as a separator for your namespace (starting with http://).
Does this help?
Gert
Kristian Köhler wrote:
Hi
thanks Guillaume but I have some problems with the syntax. I can't see the problem. Here is my configuration. How do i have to specify a namespace for my service?
I get the following message:
--- 8< ---
...
ServiceName ({http://www.dmc.de/}testCamel) specified for routing, but can't
find it registered
...
--- 8< ---
---- xbean for the http-component (start) ---
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:camel="http://www.dmc.de/">
<http:endpoint service="camel:testCamel"
endpoint="endpoint"
role="consumer"
locationURI="http://0.0.0.0:8191/TestCamel/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
soapAction="process"/>
</beans>
---- (end)
---- MyRouteBuilder (start) ---
from("jbi:endpoint:http://www.dmc.de/:testCamel").to("jbi:endpoint:http://www.dmc.de/:testJSR");
---- (end)
Thanks!
Kristian
-----Ursprüngliche Nachricht-----
Von: depstei2 [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 4. Oktober 2007 22:06
An: [email protected]
Betreff: Re: How to recieve HTTP requests which should routed via
camel-component
Could you please post a simple example of having a http
service being routed
to one of 2 different JSR-181 service units based on the content using
camel? I am trying to accomplish the same thing, but I am
not sure how to
expose the http service's wsdl since there are two different
underlying
wsdls. The few examples of using camel in servicemix are all very
confusing.
gnodet wrote:
When you create a camel route starting with
from("jbi:endpoint:xxx")
where xxx is the syntax explained at [1], camel will create a jbi
endpoint given the service qname / endpoint name in the uri, so it
should just be a matter of instructing the http consumer endpoint to
send these requests to this endpoint.
[1] http://incubator.apache.org/servicemix/uris.html
On 10/4/07, Kristian Köhler <[EMAIL PROTECTED]> wrote:
Hi all
I'm facing a problem with the configuration of camel routing within
servicemix. My problem:
I want to receive http calls with the servicemix
http-component. These
requests should be routed according to routing rules
defined within the
camel-component. The camel-component should call a simple JSR-181
component in my scenario.
How to configure this?
I tried to remove the (required) 'service' attribute for the
http:endpoint which causes an exception. ;-)
Is there a way to do this?
Thanks!
Kristian
--
http://gaswerk.sourceforge.net
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
--
View this message in context:
http://www.nabble.com/How-to-recieve-HTTP-requests-which-should-routed-via-camel-component-tf4569178s12049.html#a13047675
Sent from the ServiceMix - User mailing list archive at Nabble.com.