You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Robert Thullner <rt...@gmx.at> on 2008/01/22 11:26:54 UTC
Discovery in ServiceMix
Hello
I just read the article "Java Business Integration" by Steve Vinoski which
appeared at IEEE.
There it says that the Normalized Message Router also acts as a kind of
discovery service to help consumers locate appropriate service providers.
I am wondering how this can be done in ServiceMix, or if it can be done at
all. I did not find anything like that on the ServiceMix website. Is there
some
registry implemented in SM?
Can anybody clear that point for me?
Thanks
Robert
Re: Discovery in ServiceMix
Posted by Lars Heinemann <la...@compart.net>.
Hi Robert,
you can use the ComponentContext's method to get endpoints registered at
the bus.
For example in an endpoint you could do:
ServiceEndpoint[] eps =
getContext().getEndpointsForService(getTargetService());
Which will deliver all endpoints serving the given target service.
Regards,
Lars
> Hello
>
> I just read the article "Java Business Integration" by Steve Vinoski which
> appeared at IEEE.
>
> There it says that the Normalized Message Router also acts as a kind of
> discovery service to help consumers locate appropriate service providers.
>
> I am wondering how this can be done in ServiceMix, or if it can be done at
> all. I did not find anything like that on the ServiceMix website. Is there
> some
> registry implemented in SM?
>
> Can anybody clear that point for me?
>
> Thanks
> Robert
>
>