-->
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.  [ 3 posts ] 
Author Message
 Post subject: database server information & server.xml
PostPosted: Tue Jan 20, 2004 11:13 am 
Beginner
Beginner

Joined: Thu Oct 23, 2003 1:17 pm
Posts: 44
Is there a recommended way to store the database server information somewhere in my code tree, and not in server.xml? I'd like to be able to just drop a jar file on, and not have to modify the server.xml for each setup / install.

Is there a good way to do this? Is there a good reason not to do it this way?

Thanks for the advice.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 11:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You can use a hibernate pool and configure it in hibernate.properties or hibernate.cfg.xml

Disadvantage: No sharing of the pool between different applications on the same server.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 11:43 am 
Beginner
Beginner

Joined: Thu Oct 23, 2003 1:17 pm
Posts: 44
Ahh.....gotcha.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.