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: [email protected]; '[email protected]'
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: [email protected] 
[mailto:[email protected]]
Sent: Monday, January 18, 2016 4:22 PM
To: [email protected]
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:[email protected]]
Sent: Monday, 18 January, 2016 4:13 PM
To: [email protected]
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:[email protected]]
Sent: Monday, January 18, 2016 4:10 PM
To: <[email protected]>
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 < 
[email protected]> 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: [email protected]
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

Reply via email to