-->
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: spring hibernate and axis
PostPosted: Sat Mar 12, 2005 12:05 pm 
Beginner
Beginner

Joined: Thu Dec 02, 2004 4:49 am
Posts: 32
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.1.6

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:oracle 9

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Hi,

I have two modules in my application.
The first one is a webservice. (Axis 1.1, spring 1.1.3 and Hibernate 2.1.6 ) This web service is responsible for
accessing the database.

The second one is web application which is consuming this web service. It does not do anything other than presentation.

The problem I am facing now is, when I request Hibernate for records in one table, it is executing so many queries.
It is fetching records from the tables which have foreign-key relation with that table. So when the web application is
using this web service, it is taking lot of time to load the page. ( 20 minutes just to display 5-6 records!!!!). I think this is because Axis is trying to (De)serialize all the objects...

I tried keeping lazy="true" for all the associations. but by the time, the web appliction is accessing those associations, the session is getting closed causing "session closed exception" . I know that this is a very common requirement and i am missing some basic thing...plz help as performance of my application is really very poor and unacceptable.

Thanks,
SSSS.


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.