Yes it works for Mysql with : <your_model_name>.URL = jdbc:mysql:<path> < your_model_name >.DBUser = <username> < your_model_name >.DBPassword = <password> < your_model_name >.DBPlugin = MySQL < your_model_name >.DBDriver = org.gjt.mm.mysql.Driver
<your_othermodel_name>.URL = jdbc:mysql:<path> < your_othermodel_name >.DBUser = <username> < your_othermodel_name >.DBPassword = <password> < your_othermodel_name >.DBPlugin = MySQL < your_othermodel_name >.DBDriver = org.gjt.mm.mysql.Driver > On 22 Apr 2015, at 23:18, Paul Hoadley <[email protected]> wrote: > > Hi Gino, > > On 23 Apr 2015, at 6:36 am, Gino Pacitti <[email protected]> wrote: > >> One last question though and hopefully I have understood the previous >> comments… >> >> If the framework has an empty connection dictionary and it is set via the >> Properties file of the App using it i.e.. >> dbConnectURLGLOBAL=<some URL> >> dbConnectUserGLOBAL=<some user> >> dbConnectPasswordGLOBAL=<some password> >> >> What happens if you also include another Model in your app and that uses a >> different connection dictionary and accesses a different db? How do you get >> them to know which dictionary is for which? > > You can specify connection parameters on a per-model basis. Take a look at > the docs for ERXConfigurationManager: > > https://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/er/extensions/foundation/ERXConfigurationManager.html > > Towards the bottom it shows per-model alternative property syntax to use > instead of the *GLOBAL properties. (It's not something I've used before, > though, and the docs seem to suggest there are cross-database differences—can > anyone confirm this? You might need to experiment a bit.) > > > -- > Paul Hoadley > http://logicsquad.net/ > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
