File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

speed up the init time of hibernate

 
ola gerchikov
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use hibernate in my webapp on tomcat.

I notice that it takes a lot time to setup my webapp (when i first hit my servlet). It takes about 4 seconds to start tomcat, but it takes 14 seconds to initialize my webapp.

Can you please tell me how can I speed up the init time of my web app?

Here is my hibernate.cfg.xml file, I think it is very simple.



If you have any idea about how to speed up the init time of my web app, please let me know.
Thank you.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creating a SessionFactory isn't that major an event. Are you sure the delay isn't Tomcat compiling a JSP or something?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic