Programmatically changing database configuration on startup

2011-02-28 Thread Paul Dunkler
Hi all,

we are currently trying to make our deployment work nice.

A problem we currently have is, that we have different database connection 
configurations in the EOModel of our Application (one for deployment and one 
for local testing).
Now the question is if it is possible to change these configuration 
automatically on startup of our application instead of activating/deactivating 
the profiles through WOLips. Or maybe Deployment Profile would help us on 
this way?

Please share your experiences about changing from local to deployment 
environments with your WO-Applications.


--
Best Regards

Paul Dunkler
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Programmatically changing database configuration on startup

2011-02-28 Thread David LeBer
Yes,

If you are using Wonder you can configure your db connection dictionaries in 
properties:

http://wiki.objectstyle.org/confluence/display/WO/Project+Wonder+Properties+Files

Look at the source for 
http://wonder.sourceforge.net/javadoc/er/extensions/ERXConfigurationManager.html
 if you want to see how it's done.

On 2011-02-28, at 9:12 AM, Paul Dunkler wrote:

 Hi all,
 
 we are currently trying to make our deployment work nice.
 
 A problem we currently have is, that we have different database connection 
 configurations in the EOModel of our Application (one for deployment and one 
 for local testing).
 Now the question is if it is possible to change these configuration 
 automatically on startup of our application instead of 
 activating/deactivating the profiles through WOLips. Or maybe Deployment 
 Profile would help us on this way?
 
 Please share your experiences about changing from local to deployment 
 environments with your WO-Applications.
 
 
 --
 Best Regards
 
 Paul Dunkler
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
 
 This email sent to dleber_wo...@codeferous.com

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Fwd: Programmatically changing database configuration on startup

2011-02-28 Thread Paul Dunkler
Sorry, but i forgot to forward the answer on my past question to the whole 
mailing list.

Here is my answer again for all other people which are investigating the same 
issue.

 Thank you for the quick help.
 
 I'm ended up with using the wonder property dbConfigNameGLOBAL. By doing 
 that i can use the connection profiles i've configured before in the 
 EOModeler and don't have to configure the connection parameters in another 
 property-file.
 
 For all other people who are currently investigating about deployment 
 configurations, this wiki entry may be interesting:
 http://wiki.objectstyle.org/confluence/display/WONDER/Best+Practices-Properties+Files
 
 
 Am 28.02.2011 um 15:21 schrieb David LeBer:
 
 Yes,
 
 If you are using Wonder you can configure your db connection dictionaries in 
 properties:
 
 http://wiki.objectstyle.org/confluence/display/WO/Project+Wonder+Properties+Files
 
 Look at the source for 
 http://wonder.sourceforge.net/javadoc/er/extensions/ERXConfigurationManager.html
  if you want to see how it's done.
 
 On 2011-02-28, at 9:12 AM, Paul Dunkler wrote:
 
 Hi all,
 
 we are currently trying to make our deployment work nice.
 
 A problem we currently have is, that we have different database connection 
 configurations in the EOModel of our Application (one for deployment and 
 one for local testing).
 Now the question is if it is possible to change these configuration 
 automatically on startup of our application instead of 
 activating/deactivating the profiles through WOLips. Or maybe Deployment 
 Profile would help us on this way?
 
 Please share your experiences about changing from local to deployment 
 environments with your WO-Applications.
 
 
 --
 Best Regards
 
 Paul Dunkler
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
 
 This email sent to dleber_wo...@codeferous.com
 
 ;david
 
 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site:http://codeferous.com
 blog:http://davidleber.net
 profile: http://www.linkedin.com/in/davidleber
 twitter: http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org
 
 
 
 
 
 Mit freundlichen Grüßen
 
 Paul Dunkler
 
 
inline: xyrality_logo_medium.png 
 
 -
 XYRALITY GmbH • Lerchenstraße 28a • 22767 Hamburg
 Paul Dunkler • Softwareentwickler
 Mail: paul.dunk...@xyrality.com   
 Tel: +49 (0) 40 23 51 78 97
 Mobil: +49 (0) 151 11624143
 Fax: +49 (0) 40 23 51 78 98
 Web: http://www.xyrality.com/
 Registergericht: Hamburg HRB 115332
 Geschäftsführer: Sven Ossenbrüggen  Alexander Spohr
 -
 

Mit freundlichen Grüßen

Paul Dunkler


inline: xyrality_logo_medium.png

-
XYRALITY GmbH • Lerchenstraße 28a • 22767 Hamburg
Paul Dunkler • Softwareentwickler
Mail: paul.dunk...@xyrality.com 
Tel: +49 (0) 40 23 51 78 97
Mobil: +49 (0) 151 11624143
Fax: +49 (0) 40 23 51 78 98
Web: http://www.xyrality.com/
Registergericht: Hamburg HRB 115332
Geschäftsführer: Sven Ossenbrüggen  Alexander Spohr
-

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com