Results 1 to 2 of 2

Thread: MySQL Connection in Multiple Instances Topology

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    50

    Default MySQL Connection in Multiple Instances Topology

    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
    With best regards,
    Alexey Kakunin
    EmForge: Liferay based project hosting service

  2. #2
    Join Date
    Jun 2005
    Posts
    102

    Default

    Hi,

    Thanks for trying cloud foundry.

    You can use the hostname dbmaster - it works in both topologies.

    Also, see http://www.cloudfoundry.com/faq.html#database

    Chris

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •