-->
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.  [ 2 posts ] 
Author Message
 Post subject: Connecting to encrypted databases
PostPosted: Thu Nov 18, 2004 12:47 pm 
Newbie

Joined: Thu Nov 18, 2004 12:32 pm
Posts: 8
Location: UK (Newcastle upon Tyne)
Hibernate version: 2.1

I am working with a Java database and in its final form it has to go out as an encrypted database.

If I were to deploy the app (using hibernate) via Tomcat 5, I would like to put the url, user id and password in the <context></context> bits of server.xml.

But I would like to retain the bootpassword within my Java source.

From the docs, HibernateUtil.java describes a thread safe method of getting the session. But how can I specify the URL within this HibernateUtil.java.

Any pointers would be appreciated.

Cheers
-raj

_________________
- cowboy maybe, but an injun at heart


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 18, 2004 4:35 pm 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
You can set any property on the configuration before (re)creating the session factory.

Code:
Configuration.setProperty(String propertyName, String value)


HTH
Ernst


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.