-->
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.  [ 3 posts ] 
Author Message
 Post subject: Progress monitor?
PostPosted: Tue Feb 01, 2005 3:05 pm 
Newbie

Joined: Sat Jan 29, 2005 7:09 am
Posts: 11
I would like to implement a progress monitor that is updated every time a Hibernate persistible class is saved. For this I need:

a) a count of the number of classes that need to be saved before saving commences
b) notification after a class is saved

I looked the Hibernate interceptor, so I think I can manage part b), but I'm not sure how to do part a). Is there a way of doing this in Hibernate?

Thanks,

Doug.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 5:00 pm 
Senior
Senior

Joined: Tue Aug 03, 2004 2:11 pm
Posts: 142
Location: Somerset
Just out of interest, why do you want to do this ?

Sounds like your save might be taking a long time and you want to monitor how long it takes.

What's going on that takes so long that you need a progress monitor (I'd focus my efforts on speeding up the save, rather than writing a progress monitor) ?

_________________
On the information super B road


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 5:52 am 
Newbie

Joined: Sat Jan 29, 2005 7:09 am
Posts: 11
It's not that the save takes particularly long via Hibernate, it's just that I'd like a progress monitor in order to let the user know roughly how long it will take.

Also, if some independent processes are running against the database at the same time as the save is being attempted, and the processes are using a lot of CPU, it can still take a long time to save - even with the most optimal Hibernate code in place.

Admittedly, a progress monitor would be a nice feature, not a necessity...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.