Spring Cloud Config + ejb

I install the 'Spring Cloud Config' set ( http://cloud.spring.io/spring-cloud-config/ ) for my application to make all the centralized settings, however there is a problem, I have a set of 10 applications, however the application uses legacy EJB, are there some connectors or Spring Cloud Client Setup 'client for EJB?

0
source share
3 answers

Non-Spring Java and non-Java applications can use the spring cloud config server server rest api. See this answer .

You will probably be interested in these endpoints that return values ​​in the java properties format:

/{name}-{profiles}.properties /{label}/{name}-{profiles}.properties 

See examples here .

0
source

I once was in your shoes, I created this spring cloud client cloud library to do just that. It mainly uses rest-api and returns a java properties object that you can use in an EJB or non-springboot environment.

0
source

Using spring -cloud-rest-client almost solves this problem, but one part still remains regarding nested properties that the old java.util.Properties does not handle. For example, the configuration could be this:

 part: def sub_alpha: abc${part}ghi 

Spring cloud clients allow sub_alpha for sub_alpha = abcdefghi, but this method will give sub_alpha = abc $ {def} ghi.

I am still working on a solution to the problem, but I think someone had a problem.

0
source

All Articles