-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: No Password in app.conf
PostPosted: Wed May 10, 2006 4:18 am 
Newbie

Joined: Wed Apr 26, 2006 5:28 am
Posts: 18
Hibernate version: 1.0.2

Hi,

I don't want to write the password in the app.conf to the connection_string property like:
Code:
<property name="connection.connection_string">Server=local;user=me;password=myPassword</property>


How can I assign the password at runtime? For example after the user entered it?

Thanks for help.

_________________
=/\=

Live long and prosper


Last edited by NCC-1701-M on Thu May 11, 2006 1:55 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 10:24 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
You don't have to specify the connection string in the app.config. You can pass it to the configuration at runtime: http://www.hibernate.org/hib_docs/nhibernate/html/session-configuration.html#configuration-programmatic[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 1:55 am 
Newbie

Joined: Wed Apr 26, 2006 5:28 am
Posts: 18
k-dub wrote:
You don't have to specify the connection string in the app.config. You can pass it to the configuration at runtime: http://www.hibernate.org/hib_docs/nhibernate/html/session-configuration.html#configuration-programmatic[/code]



Thank you for your help.

_________________
=/\=

Live long and prosper


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 2:16 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
You're welcome. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.