[JBoss Seam] - Same behaviour than good old-fashioned request scope ?
by limousyf
Hello,
I want to display a list in a datatable and I used the "clickable list" example from the reference doc.
The only difference is that I'm using a SLSB instead of a SF one.
The datamodel displayed is filtred on the logged user (typically, his "list of stuff").
When I log in and display the page using a user, his list is correctly displayed but if I log out and come back with an other user, the previous list remains in memory (and my breakpoint in debug isn't activated).
If I type "F5" or click the validating button on my page, then the list is re-loaded, filtered correctly and displayed.
I'm using a SLSB and I tried different scope mode (EVENT and PAGE which seems close to request mode).
Is it possible to have a similar behaviour than in request mode or am I doing a major conception misunderstanding here ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050533#4050533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050533
18Â years, 10Â months
[JBoss jBPM] - Re: Persistence after crash
by estaub
"Shouldn't" is in the eye of the beholder, especially whenever transactions are concerned.
JBPM won't commit until it is blocked in the process, i.e, everything's waiting for something asynchronous to happen. So it's working as expected.
I figure there must be some common idioms used for "commit the current transaction and start another one HERE", but I haven't seen anything useful yet on the forum or elsewhere.
As a general transaction-breaker tool, you could make an asynchronous node actionhandler that kicks off another thread to signal it back immediately. That would do the trick. Synchronization might be a little tricky.
If your specific case (wait 20 seconds) is a real need, you could use a Timer node or a parameterized actionhandler as I described above. If I remember right, Timer nodes aren't good at doing pure real-time like this.
Please write back if you discover anything else that's useful.
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050530#4050530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050530
18Â years, 10Â months