These are chat archives for spring-cloud/spring-cloud

11th
Dec 2018
CH4:D
@chad_d_stud_twitter
Dec 11 2018 05:33
hi. just a clarification. if i declared a service with server.serlvet.context-path=/mypath cloud registry won't be able to see this?
Marcos Barbero
@marcosbarbero
Dec 11 2018 05:42
That’s correct. Context paths are not supported
CH4:D
@chad_d_stud_twitter
Dec 11 2018 05:51
bummer. i guess resttemplates have to take this into account
Marcos Barbero
@marcosbarbero
Dec 11 2018 06:01
I had this situation before, in my case I implanted an interceptor for the resttemplate to add the context path
CH4:D
@chad_d_stud_twitter
Dec 11 2018 06:40
this service calls i'm having is from a db. i just added a column indicating a context root of this service if it's not the usual "/"
i wouldn't want to do a rebuild/redeploy of this service just because some autonomous remote service does not have the same url as the others
Marcos Barbero
@marcosbarbero
Dec 11 2018 07:19
I’m confused 😂
Spencer Gibb
@spencergibb
Dec 11 2018 16:22
@chad_d_stud_twitter how would you do it without discovery?
CH4:D
@chad_d_stud_twitter
Dec 11 2018 16:25
@spencergibb how would I do what without discovery?
Spencer Gibb
@spencergibb
Dec 11 2018 16:25
context path
CH4:D
@chad_d_stud_twitter
Dec 11 2018 16:26
The service name is in the discovery registry. But the context path I store in a db because sometimes it’s not always in /
I’ll probably have to talk to the dev who’s doing this to take that thing out for consistency
Marcos Barbero
@marcosbarbero
Dec 11 2018 17:12
Why don’t you rely on some meta data from the service discovery itself instead of fetching the data from a DB? Well, that’s a suggestion
I did it that way
Hullaert Christof
@cHullaert
Dec 11 2018 18:38
Hi, is someone available to explain me something? I have a binding from a kafka topic. Is there a way to automatically (like for a @streamlistener) deserialize my message payload in the good type with a @router annotation?
Hullaert Christof
@cHullaert
Dec 11 2018 18:43
@spencergibb thanks a lot sorry for the bad channel error :-)
Spencer Gibb
@spencergibb
Dec 11 2018 18:43
NP!