Forums Register Login

business object files loading twice

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
"java only"

Please check your private message, for a message from JavaRanch.
+Pie Number of slices to send: Send
chk the post,
forget da name
+Pie Number of slices to send: Send
Do you mean, your hbm.xml files are being loaded twice? Are you creating the session factory twice?
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
yes, you were right.
its working fine ann faster now.


thanks
+Pie Number of slices to send: Send
"better java"

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

Mark
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 650 times.
Similar Threads
Tomcat loading servlet ..twice..
servlets and html pages
Midlet Development with Sun Toolkit
Domain Objects and Service Oriented Design Pattern
Looking forward to some interesting insight
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:25:37.