You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ts <si...@yahoo.com> on 2008/04/23 22:31:32 UTC

API to query the list of deployed services

I need to write a generic gateway to route the incoming jms message to
different deployed eip components.
I am planning to use servicemix-drools for the routing. But at runtime I
need to query the list of eip components. Based on the deployed components
list I need to route the message to the appropriate componet. Is there any
API available to check whether the particular service is available are not? 

Thanks in advance.

-ts

-- 
View this message in context: http://www.nabble.com/API-to-query-the-list-of-deployed-services-tp16834810p16834810.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: API to query the list of deployed services

Posted by Bruce Snyder <br...@gmail.com>.
On Thu, Apr 24, 2008 at 12:25 PM, ts <si...@yahoo.com> wrote:
>
>  I am able to use  jbi.getContext().getEndpointsForService() API to check
>  whether the particular service is available or not. I am assuming this is
>  the only way I can check the service availability. Is there any other better
>  option available?

The getEndpointsForService() method only returns endpoints for a given
service. If you're looking for multiple services, you may have to grab
the registry via the jbi.getRegistry() method and query for service
units yourself. You an even query for endpoints in the
EndpointRegistry via the jbi.getRegistry().getEndpointRegistry()
method.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: API to query the list of deployed services

Posted by ts <si...@yahoo.com>.
I am able to use  jbi.getContext().getEndpointsForService() API to check
whether the particular service is available or not. I am assuming this is
the only way I can check the service availability. Is there any other better
option available?

-ts



ts wrote:
> 
> I need to write a generic gateway to route the incoming jms message to
> different deployed eip components.
> I am planning to use servicemix-drools for the routing. But at runtime I
> need to query the list of eip components. Based on the deployed components
> list I need to route the message to the appropriate componet. Is there any
> API available to check whether the particular service is available are
> not? 
> 
> Thanks in advance.
> 
> -ts
> 
> 

-- 
View this message in context: http://www.nabble.com/API-to-query-the-list-of-deployed-services-tp16834810p16851320.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.