If I understand correctly part from("jbi:endpoint") causes registration of
endpoint in the bus. It doesn't have a external interface, so the
"http://localhost:8889/MyService" points only to namespace and endpoint
identifier, not to jetty port or something like that. If you wish expose HTTP
endpoint and forward inbound queries to NMR use following structure:
from("jetty:...").to("jbi:endpoint:....");
or use these attributes in cxf-bc
<beans xmlns:prefix="http://localhost:8889/" ...>
<cxf-bc:consumer targetService="prefix:MyService" />
Pozdrawiam i życzę powodzenia z SMX,
Łukasz :)
> Hi
>
> I want to start my old route which was started by timer
>
> from("timer://tutorial?fixedRate=true&delay=3000&period=20000")
> .setBody(constant(msg))
> .to("jbi:endpoint:urn:com:example:prototype:jms:provider");
>
>
> with webservice invocation eg ;
>
> from("jbi:endpoint:http://localhost:8889/MyService")
> .to("jbi:endpoint:urn:pl:swmind:robust:prototype:jms:provider");
>
>
> On the camel jbi component website ( http://camel.apache.org/jbi.html )i can
> read that it will "Automatically exposes a new endpoint to the bus, where
> the service QName is {http://foo.bar.org}MyService and the endpoint name is
> MyEndpoint (see URI-format <http://camel.apache.org/jbi.html#JBI-URIformat>)."
>
>
> What I should do to achieve it? "MyService" will provide a content for a
> camel so maybe should it be a usual cxf-bc consumer?
>
>
> regards
>
> rafal