Re: Database connection
Re: Database connection
- Subject: Re: Database connection
- From: René Bock <email@hidden>
- Date: Mon, 6 Nov 2017 16:05:41 +0000
- Thread-topic: Database connection
Hi André
we don't store database connection infos in the eo-model. Instead we follow:
https://wiki.wocommunity.org/display/documentation/Best+Practices-Properties+Files
e.g:
dbConnectURLGLOBAL=jdbc:mysql://localhost/DbName
dbConnectUserGLOBAL=ojp
dbConnectPasswordGLOBAL=XXXXX
dbEOPrototypesEntityGLOBAL=EOJDBCMySQLPrototypes
dbConnectPluginGLOBAL=MySQLPlugIn
> Am 06.11.2017 um 16:55 schrieb André Rothe <email@hidden>:
>
> Hi,
>
> three questions according the database connection:
>
> I have a model, which has a database connection defined in a connection
> dictionary. But the model should not open the connection per default, it
> should get the credentials from another property file which will differ
> between the instances of the application in the JavaMonitor. If I use this
> solution:
>
> http://mirror.informatimago.com/next/developer.apple.com/documentation/WebObjects/Enterprise_Objects/Connecting/chapter_10_section_8.html
>
> the app will connect to the default database and makes then a reconnect to
> the later provided database. Is it possible to prevent the first connect?
>
> If I use multiple EOEditingContexts in my application, I have to change the
> connection parameters for every EC. When is the best time to set these for
> the session.defaultEditingContext()? Can I get the current connection
> credentials from an EditingContext instance to use it on another EC instance?
>
> Thank you.
>
> Best regards
> André
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
Mit freundlichen Grüßen
René Bock
--
Telefon: +49 69 650096 18
salient GmbH, Lindleystraße 12, 60314 Frankfurt
Telefon Zentrale: 069 / 65 00 96 - 0 | www.salient-doremus.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden