-->
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: Automating deployment of Hibernate-enabled app on JBoss
PostPosted: Thu Jan 13, 2005 4:23 pm 
Newbie

Joined: Thu Jan 13, 2005 4:07 pm
Posts: 1
My team has a working .ear that uses Hibernate for its persistence tasks under JBoss 4.0.1.

We're attempting to do something that seems to be a little outside of common practice judging from documentation - we want to create an installer that can automatically deploy our app, configuring Hibernate to work with the user's database of choice. Most documentation appears to assume that the developer will hand-edit configuration files and jar up the results at deployment time; we're trying to deliver a build that can be configured automatically at deployment time by customer IT and an intermediate tool we give them.

The tool just needs to take the JDBC information from the user and replace the appropriate properties. However this is requiring unzipping of our .ear and some .jars it contains, and is proving somewhat fragile.

Is there a better paradigm for this? Should we use the JMX integration? (We've been trying to avoid JBoss-specific solutions). Is there any way to have the hibernate.properties file located somewhere besides down in the jar where our persistence classes live?

Thanks for any specific or general replies, or links to relevant documentation I've missed...
- Chris


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 4:36 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Why don't you just set the necessary properties manually on the configuration by doing configuration.setProperty() ? That way you can read your information from wherever you want ...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 16, 2005 11:28 am 
Newbie

Joined: Tue Jan 11, 2005 4:34 am
Posts: 18
im new in using hibernate
so.. i am not that familiar with that yet...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 16, 2005 11:31 am 
Newbie

Joined: Tue Jan 11, 2005 4:34 am
Posts: 18
oops ... wrong message... i post in the wrong forum sorry...


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