-->
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: distribute war file with hibernate config file inside
PostPosted: Mon Mar 17, 2008 12:33 pm 
Beginner
Beginner

Joined: Wed Oct 03, 2007 9:46 pm
Posts: 37
what is the technique that used to do distribute war file to different customers that using different username and password to connect to db? i was thinking of having a jsp file that will dynamically update hibernate config file. what is the technique that used? any sample code on this?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 17, 2008 2:41 pm 
Beginner
Beginner

Joined: Fri Aug 24, 2007 4:46 am
Posts: 36
Location: Bielefeld / Germany
Isn't that a case for JNDI? The client configures the specific datasource in his/her app-server, Hibernate picks it up via the JNDI-Name.

http://www.hibernate.org/hib_docs/refer ... ation.html

See => 3.3. JDBC connections


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.