• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

business object files loading twice

 
better java
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am working on hibernate with JavaServerFaces with MyEclipse and JBoss server for my project. we have many business object files in our project. about some 100 of these business object files are mapped to the main hibernate.config.xml file. the problem is these business object files are loading twice in our application . once,during logging in and second time after logging in, when a menu item is selected from a menu. for each selection, the corresponding business object files are loading again. when they all are loaded during login validation for first time ,cant jboss keep them in memory, so that next time they can b accessed from jboss rather than loading second time. please suggest soon.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"java only"

Please check your private message, for a message from JavaRanch.
 
better java
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chk the post,
forget da name
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean, your hbm.xml files are being loaded twice? Are you creating the session factory twice?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by java only:
chk the post,
forget da name


Naming Policy is one of the very few rules that we have at JavaRanch. People here are willing to help you, if you too take efforts in following the rules. So, please read the naming policy and change your display name. Your displayed name must consist of a first name (or an initial), a space, and a family name (in that order) and not be obviously fictitious.
 
better java
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, you were right.
its working fine ann faster now.


thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"better java"

You account will be closed very shortly, unless you change your display name by today.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic