-->
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.  [ 1 post ] 
Author Message
 Post subject: Performance on Dyanamically created mapping xmls
PostPosted: Tue Aug 16, 2005 4:28 am 
Beginner
Beginner

Joined: Mon Jul 25, 2005 12:35 am
Posts: 24
Location: Sri Lanka
Hi,
I'm developing a web application which dynamically creates mapping xml files (eg. xxx.hbm.xml) and put into class path. In this case I have to create Configuration and SessionFactory objects for the new mapping file as follows.

sessionFactory = configuration.addResource(hbmFile).setProperty(Environment.HBM2DDL_AUTO, "create").
buildSessionFactory();

In here the connection pooler is initialize again and again when calling this.

1) Is there any way to avoid that initialization?

2) What will be the performance of the application if I use above approach (i.e. dyanamically creating mapping xmls)?

Thank you.
Thilina


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.