Search   

Sunday, February 05, 2012

Support » Support Forum

Register  Login

 Menu  
 
    

 Welcome!  
 


Welcome to the NDO support forum!

kreis.gif Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender.
kreis.gif Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts.
kreis.gif The forum software requires that javascript is enabled.
kreis.gif Please do not insert licence information or licence keys in forum posts.
kreis.gif If you know a good answer to a post of another user, feel free to reply!
kreis.gif The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.

   Print   

      
 NDO Support Forum  
 
SearchForum Home
  NDO-Forum postings in english please, if possible.  Developing with NDO  change connecti...
 change connection as runtime
 
 11/22/2007 3:36:02 PM
iwerner
6 posts


change connection as runtime

Hi,

is in NDO a way for changing the connection as runtime ? I need that for change the user and the pws at runtime.

 11/23/2007 9:54:39 AM
Mirko
109 posts
5th


Re: change connection as runtime

Hi Igor,

you have two ways to do it. The more common way is to use an alias connection string in your mapping file and implement an OpenConnectionListener using the method RegisterConnectionListener of the PersistenceManager. The OpenConnectionListener will be called back each time, the PM. opens the connection.

Between two transactions you can also manipulate the mapping information using the mapping API in NDO.Mapping. You get the root of the mapping tree with the property pm.NDOMapping. Note: This behavior may change over the time. If you want to be sure, that your new connection string applies in future NDO versions, use the ConnectionListener.

Regards
Mirko

  NDO-Forum postings in english please, if possible.  Developing with NDO  change connecti...
  SearchSearch  Forum HomeForum Home