-->
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: desktop application starts slowly. how to speed up?
PostPosted: Sat Feb 27, 2010 2:29 pm 
Newbie

Joined: Fri Feb 26, 2010 12:54 pm
Posts: 1
Hello,

I use hibernate integrated with spring. All mappings are done via annotations.

One of the requirements is fast application start up. But it's not the case for now.

Running the application under jprofiler shows that 70% are spent in HibernatePersistence.createContainerEntiyManager. This time is split between Configuration.buildMapping and Configuration.buildSessionFactory roughly in a half.

at first sight I'd like to put all mappings into a file.xml and don't use reflection. Is it worth to do so?
SessionFactoryImpl is a Serializable object. Could we simply read it from disk instead of building a fresh one?
Is there a way to perform faster?

thank you in advance,
alexander


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.