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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -