[jboss-user] [JBoss Seam] - How to handle concurrent requests from multiple users
do-not-reply at jboss.com
Mon Jul 30 07:22:39 EDT 2007
When several users are working on the same data set, how to best handle the concurrency with Seam?
In the specific case I have an application where approx 100 users concurrently work with registering and administrate contacts (i.e. add, edit, remove). The app is built with a stateful session bean as seam component which holds a list of contacts.
What is the best practice to trigger an update of the contacts list between users? I was looking at component events, but although it's not spelled out clearly it seams to me that those events are only propagated within one users context.
Another way could be to to send update events by jms, but a MDB doesn't have reference to my stateful session bean instance. Maybe make the SF bean a message listener itself?
This is of course an issue in a normal ejb application but it gets more noticeable with Seam as more state is held by Seam than normally is done when using stateless session bean as facades.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068677#4068677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068677
More information about the jboss-user