aspose file tools
The moose likes Object Relational Mapping and the fly likes business object files loading twice Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "business object files loading twice" Watch "business object files loading twice" New topic
Author

business object files loading twice

better java
Greenhorn

Joined: Aug 05, 2007
Posts: 3
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
Saloon Keeper

Joined: Jul 20, 2005
Posts: 6718

"java only"

Please check your private message, for a message from JavaRanch.


[My Blog] [JavaRanch Journal]
better java
Greenhorn

Joined: Aug 05, 2007
Posts: 3
chk the post,
forget da name
Jaikiran Pai
Saloon Keeper

Joined: Jul 20, 2005
Posts: 6718

Do you mean, your hbm.xml files are being loaded twice? Are you creating the session factory twice?
Jaikiran Pai
Saloon Keeper

Joined: Jul 20, 2005
Posts: 6718

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

Joined: Aug 05, 2007
Posts: 3
yes, you were right.
its working fine ann faster now.


thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

"better java"

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

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: business object files loading twice
 
Threads others viewed
servlets and html pages
Looking forward to some interesting insight
Midlet Development with Sun Toolkit
Tomcat loading servlet ..twice..
Domain Objects and Service Oriented Design Pattern
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com