Hi,
nwbr wrote:
Hi,
I'm creating a desktop application and I want to hide the database
information(login, password, path, etc) from user. But, if I use .xml
file (repository_database.xml) to define that information my user can
see it. How did I can define the db information in code, or hide that
information from my user? I 've tried to use MetadataManager and
ConnectionRepository but I fail.
If you only want to hide user/pw then let this empty in repository_database.xml and use a PBKey with set user/pw at runtime to lookup PB instances.
http://db.apache.org/ojb/docu/faq.html#userPasswordNeeded
If you want to connect to your DB at runtime see http://db.apache.org/ojb/docu/guides/metadata.html#Connect+to+database+at+runtime%3F
regards, Armin
Thankss
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
