[jboss-user] [JBoss Seam] - Detecting updates to Session Scoped Entity Beans
do-not-reply at jboss.com
Sat Jan 20 17:38:52 EST 2007
I am having some trouble understanding the interactions of managed beans and Seam. I will give a concrete example as I don't think I can really explain the cocepts.
I have a Session scoped entity bean that represents a meeting, as part of a larger calender application. I want a display to appear on the top of the page that says the current meeting with a link to the details page. It isnt really part of a conversation, which is why it is Session scoped.
I have a timer that is set when a meeting is created that uses an entity manager to lookup the meeting and change the state to 'complete' when the duration of the meeting has passed. It can cancel a meeting prematurely if no one has called in (it integrates voip), as to not waste voip resources.
The problem: when the meeting is canceled the session scoped entity bean's state is not changed. It is an issue of persistence contexts/management I assume, but I don't know how to make the timer interact with the proper context, or to configure the session scoped bean to know about the timer's changes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004397#4004397
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004397
More information about the jboss-user