zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikrant Singh <vikrant.subscr...@gmail.com>
Subject Re: Sample code to register/discovery java rest service with zookeeper 3.4.7
Date Thu, 21 Jan 2016 00:31:22 GMT
they do have some source example available here
https://github.com/apache/curator/tree/20e92a54c196310f84b8d385bce71b7812b18f33/curator-examples/src/main/java/discovery


On Wed, Jan 20, 2016 at 4:30 PM, Vikrant Singh <vikrant.subscribe@gmail.com>
wrote:

> curator documentation is quite sufficient for this.
> http://curator.apache.org/curator-x-discovery/
>
> What difficulty you faced when doing this with curator?
>
> On Tue, Jan 19, 2016 at 3:08 AM, Narasimha Rao Gajje <
> Narasimha.Gajje@mindtree.com> wrote:
>
>> Many thanks Indira.
>>
>> Had gone through the first link provided and able to make out something.
>>
>> With @EnableDiscoveryClient annotation, how did services got registered
>> with Eureka. And can you send me the code of the services created.
>>
>> My application is able to connect zookeeper but Restfull services are not
>> getting registered.
>>
>> Saw the below code to register the service but no clue what to write
>> inside. @PostConstruct.
>>         public void registerService() {
>> //              if(services!=null)
>> //                System.out.println("............... Service is not
>> null");
>> //              else System.out.println("............... Service is
>> null");
>>
>>             System.out.println("***** Inside post registration service
>> method ******");
>>         }
>>
>>
>> B.W Is there any other forum to ask for help on zookeeper.
>>
>> -----Original Message-----
>> From: Narasimha Rao Gajje
>> Sent: Tuesday, January 19, 2016 2:11 PM
>> To: user@zookeeper.apache.org; 'indirapriyadharshini.thangamani@wipro.com
>> '
>> Subject: RE: Sample code to register/discovery java rest service with
>> zookeeper 3.4.7
>>
>> Many thanks Indira.
>>
>> Had gone through the first link provided and able to make out something.
>>
>> With @EnableDiscoveryClient annotation, how did services got registered
>> with Eureka. And can you send me the code of the services created.
>>
>> My application is able to connect zookeeper but Restfull services are
>> getting registered.
>>
>> -----Original Message-----
>> From: indirapriyadharshini.thangamani@wipro.com [mailto:
>> indirapriyadharshini.thangamani@wipro.com]
>> Sent: Monday, January 18, 2016 4:22 PM
>> To: user@zookeeper.apache.org
>> Subject: RE: Sample code to register/discovery java rest service with
>> zookeeper 3.4.7
>>
>> Hi Narasimha,
>>
>> I have worked on Spring Cloud with Eureka as a registry. I have referred
>> the following link as a startup. Check if it helps as Zookeeper is also a
>> service registry.
>>
>>
>> http://callistaenterprise.se/blogg/teknik/2015/04/10/building-microservices-with-spring-cloud-and-netflix-oss-part-1/
>>
>> I hope the github link will help
>> https://github.com/spring-cloud/spring-cloud-zookeeper/tree/master/spring-cloud-zookeeper-sample/src
>>
>> Regards,
>> Indira Priyadharshini
>>
>> -----Original Message-----
>> From: Narasimha Rao Gajje [mailto:Narasimha.Gajje@mindtree.com]
>> Sent: Monday, 18 January, 2016 4:13 PM
>> To: user@zookeeper.apache.org
>> Subject: RE: Sample code to register/discovery java rest service with
>> zookeeper 3.4.7
>>
>> Thanks Jens.
>>
>> Had already gone through the links given but unfortunately not able to
>> make out how to register a service with zookeeper.
>> Scratching my head to implement very basis service registration with
>> zookeeper.
>>
>> Regards,
>> Rao
>>
>> -----Original Message-----
>> From: Jens Rantil [mailto:jens.rantil@tink.se]
>> Sent: Monday, January 18, 2016 4:10 PM
>> To: <user@zookeeper.apache.org>
>> Subject: Re: Sample code to register/discovery java rest service with
>> zookeeper 3.4.7
>>
>> Hi Narasimha,
>>
>> Unfortunately I don't have a code example at hand. Have you had a look at
>> http://curator.apache.org/getting-started.html and
>> http://curator.apache.org/curator-examples/index.html?
>>
>> Cheers,
>> Jens
>>
>> On Mon, Jan 18, 2016 at 7:42 AM, Narasimha Rao Gajje <
>> Narasimha.Gajje@mindtree.com> wrote:
>>
>> > Dear All,
>> >
>> > I am newbie to apache zookeeper and started exploring it.
>> >
>> > Now I got confused over how to register java rest based service with
>> > Zookeeper/Curator. I've also downloaded spring boot cloud based
>> > zookeeper config and discovery modules  but no clue how to use them.
>> >
>> > Would anybody please send me some sample to demo service registration
>> > and discovery.
>> >
>> > Regards,
>> > Rao
>> >
>> >
>> > ________________________________
>> >
>> > http://www.mindtree.com/email/disclaimer.html
>> >
>>
>>
>>
>> --
>> Jens Rantil
>> Backend engineer
>> Tink AB
>>
>> Email: jens.rantil@tink.se
>> Phone: +46 708 84 18 32
>> Web: www.tink.se
>>
>> Facebook <https://www.facebook.com/#!/tink.se> Linkedin <
>> http://www.linkedin.com/company/2735919?trk=vsrp_companies_res_photo&trkInfo=VSRPsearchId%3A1057023381369207406670%2CVSRPtargetId%3A2735919%2CVSRPcmpt%3Aprimary
>> >
>>  Twitter <https://twitter.com/tink>
>> The information contained in this electronic message and any attachments
>> to this message are intended for the exclusive use of the addressee(s) and
>> may contain proprietary, confidential or privileged information. If you are
>> not the intended recipient, you should not disseminate, distribute or copy
>> this e-mail. Please notify the sender immediately and destroy all copies of
>> this message and any attachments. WARNING: Computer viruses can be
>> transmitted via email. The recipient should check this email and any
>> attachments for the presence of viruses. The company accepts no liability
>> for any damage caused by any virus transmitted by this email.
>> www.wipro.com
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message