-->
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.  [ 2 posts ] 
Author Message
 Post subject: Searching best practices to Synchronize Clients
PostPosted: Wed Dec 19, 2007 3:06 pm 
Newbie

Joined: Wed Jun 27, 2007 11:30 am
Posts: 12
Hi,

Hibernate 3.3 Annotations
Other technologies : Spring JSF
Pattern: Open Session In View
Web clients, with lot of ajax and reverse ajax

I'm searching best practice to do the scenario below :
_ there are 3 users online : A, B & C. These ones are logged into a same "project";

_ User B and User C are on the "user stories" list page
--> Hibernate loads users stories collection

_ User A comes too and add a user storie to the project
--> Hibernate persists the new user storie
--> Message is sent to all connected users that new user storie was added
--> Here the problem : I need to force User B and C to refresh their collection while the this message is sending.

What I have done :

session.refresh(objectWhichContainsTheUserStoriesCollection);

This isn't refreshing anything :(

There is worse, when user A delete a user storie, the refresh will raise exception like "user storie with this id not found" on the refresh event.

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 20, 2007 7:41 am 
Newbie

Joined: Wed Jun 27, 2007 11:30 am
Posts: 12
I am at your service for further informations.

You can test my app here www.icescrum.org -> online demo. This is an open source agile tool for Scrum based developments. Since we are working with a agile method, we have to release a partial part of the product every iterations, so don't be scared by the thousands bugs you will encounter :)

And what i want exactly with Hibernate is refresh all sessions when a user commit changes on a object graph.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.