-->
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: Automatic update of POJO from Database
PostPosted: Fri Jul 10, 2009 1:16 pm 
Newbie

Joined: Fri Jul 10, 2009 12:59 pm
Posts: 1
This is a general design question.

We are developing a web-application (Java, MySQL, Hibernate, Spring) where we want to display a computed total on one of the screens which gets updated constantly and in real-time. To be more specific, this is an e-commerce application and we are trying to show the total value of orders on a screen to the Administrator as shoppers on the other side are making their purchases. So this screen will always show information like this: Number of Orders: 122 Value of Orders: $23,932.32

We can update the screen via AJAX but need an elegant solution to receive updates from the database or our persistence layer (hibernate) which will tell a Java class in the application layer that a new order has been received so you should compute a new total and update the screen. We are using MySQL as our back-end database. Is there anything that wouldn't required the use of database triggers?

Any help would be great. Thanks in advance.

-kamal


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.