curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kendall <>
Subject Re: Discovery Server Working Example App
Date Thu, 24 Oct 2013 00:30:28 GMT
Hi Jordan:

I work in an environment where we have many java services that need to
interact with each other, and we have some non java services that need to
consume the java services. The java-to-java cases are working well - I am
using direct discovery for that. But for the non java processes I need to
find a way to publish the service instances in a way that can be consumed
by the non java code. This is the intention of the rest api, if I
understand correctly. I plan to publish the rest api and then consume the
published data in order to locate the available services.

This is why I am looking for a working example of a how to wire curator
service discovery server and JAX-RS together. Does anybody have such code
that they could share?


On Wed, Oct 23, 2013 at 5:07 PM, Jordan Zimmerman <> wrote:

> Is there a reason you want to use the Server version? That's meant for
> non-Java REST uses. I suggest using the direct Discovery. There's an
> example for that: DiscoveryExample
> On Oct 23, 2013, at 5:03 PM, David Kendall <>
> wrote:
> > > Have a look at the tests - e.g. TestStringsWithJersey. Other than
> that, ask
> > > any questions you have.
> >
> > Jordan:
> >
> > Thanks for your reply. The code in the unit test is some distance from a
> working example. It uses some mock objects and runs the code through a
> jetty test server. I don't have specific questions other than "how do I set
> this up in a real environment?"
> >
> > I am still a newbie with curator and with JAX-RS. If I had working code
> it would help illustrate how curator service discovery server and JAX-RS
> work together. Does anybody have such code that they could share?
> >
> >

David Kendall
Three Dimensional Realty
DRE #01850667

415 515-6719 Mobile
510 524-4131 Voice
510 263-5793 FAX

View raw message