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

9th
Feb 2018
Michael Stummvoll
@Stummi
Feb 09 2018 06:36
Good morning. What is the difference between spring-cloud-starter-feign and spring-cloud-starter-openfeign?
There are even identical docs for both: https://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/1.3.5.RELEASE/multi/multi_spring-cloud-feign.html https://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/1.3.5.RELEASE/multi/multi_spring-cloud-feign.html. One is in the netflix namespace and one in the static (which I also don't quite get, what exactly spring-cloud-netflix is)
Dave Syer
@dsyer
Feb 09 2018 07:05
Both those links are the same ?
The openfeign one is just a rename of the old one. It more accurately reflects the origin of the dependency (Feign is no longer a Netflix project).
Michael Stummvoll
@Stummi
Feb 09 2018 07:09
@dsyer okay, so I should just use the openfeign dependency?
MohanJagadheeswaran
@MohanJagadheeswaran
Feb 09 2018 08:04
Hi
can we launch a spring batch job which is started by a api call using Job operator in spring cloud data flow?
I configured @EnableTask to my spring batch application. and connected the Spring Cloud data flow to my job repository and created a task in SCDF for my job
yet if i launch the job in SCDF, my spring batch job is not being started
MohanJagadheeswaran
@MohanJagadheeswaran
Feb 09 2018 08:10
If i open TaskExecutions in SCDF, iam getting start time as N/A end time N/A . what am doing wrong?
Dave Syer
@dsyer
Feb 09 2018 09:05
Sometimes it is better to ask SCDF questions in the spring-cloud-stream channel. But there's probably no-one there till the US wakes up.
Michael Stummvoll
@Stummi
Feb 09 2018 11:49
Do I have to define a fallback method in hystrix? Is there no way to just define a something like a "fallback value" without method?
Dave Syer
@dsyer
Feb 09 2018 11:50
Don't think so
Michael Stummvoll
@Stummi
Feb 09 2018 11:53
bummer. I hoped there would be a way to remove some boilerplate here:
    @HystrixCommand(fallbackMethod = "adjectiveFallback")
    public String getAdjective() {
        return adjectiveClient.getWord();
    }

    @HystrixCommand(fallbackMethod = "verbFallback")
    public String getVerb() {
        return verbClient.getWord();
    }

    @HystrixCommand(fallbackMethod = "subjectFallback")
    public String getSubject() {
        return subjectClient.getWord();
    }

    public String verbFallback() {
        return "(verb)";
    }

    public String adjectiveFallback() {
        return "(adjective)";
    }

    public String subjectFallback() {
        return "(subject)";
    }