spring - Multiple SpringBoot apps with same data source -


i have 2 spring boot application deployed on same tomcat , both application have same datasource.

i instancealreadyexistsexception: org.apache.tomcat.jdbc.pool.jmx:name=datasourcembean,type=co‌​nnectionpool .  

i have set

endpoints.jmx.domain=myapp
endpoints.jmx.uniquenames=true.

but still error. suggestions

this how solve problem. 

https://github.com/spring-cloud/spring-cloud-config/issues/118

endpoints.jmx.domain=dev endpoints.jmx.unique-names=true spring.jmx.default-domain=dev spring.application.name=dev      endpoints.jmx.domain=dev2  endpoints.jmx.unique-names=true  spring.jmx.default-domain=dev2  spring.application.name=dev2 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -