-->
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: an AdminServlet to configure Hibernate
PostPosted: Sat Aug 28, 2004 8:16 am 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
Hi,

In developing an open-source portal, GridSphere, www.gridsphere.org we've tried to make the installation as painless as possible by providing custom ant tasks which create the database during installation. However, this assumes a default database location and when users try to change this, they have problems.

To be even more clever, I have the idea of having our gridsphere servlet redirect to an admin servlet if no database is found... the admin servlet would allow the user to select database settings like connectionURL (or use a default) and then create the database from the webapp as well as reinitialing the SessionFactory with new properties, etc. Is this possible? I would really appreciate any sample code or pointers to other references for help.

Thanks very much, Jason


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 12:06 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Try to build the configuration using configuration.configure(DOM) instead of configure() or configure(File)

_________________
Emmanuel


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.