Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Setting what mysql database to use programmatically.

    I 've build an app using SmartGwt.
    In the server.properties file, the mysql login info resides.

    What if I would allow different customers to create their own instance of the application? That is, they share the same code base, but have their own database settings.

    How to set this programmatically? Is this a recommended way to do things in the first place?

    #2
    Having them edit server.properties is one way to do it, another is to use a particular JNDI name and tell your customer to configure their DataSource under that JNDI name (or change the name used via server.properties).

    Comment

    Working...
    X