Hi!

In Single Instance Topology everything is easy - I just using localhost in my jdbc url and it is connected well.

But - how can I configure my JDBC connection in Multiple Instances Topology - as far as MySQL is run on separate instance and it's IP is assigned during instance creation?

May be it make sense to configure tomcat to create some default JNDI datasource (like jdbc/default), connected to DB (in single instance mode - to localhost, in multiple instance mode - that data-source will be automatically configured to use remove mysql server created during deployment)

In what case, application will have just to connect to that JNDI data-source and war-file will be same for both - single instance and multyinstance topology