-
1. Re: Does seam pojo component support long running conversati
matt.drees Sep 10, 2007 10:32 PM (in response to milli)Seam pojo components are actually event-scoped by default, not conversation-scoped.
-
2. Re: Does seam pojo component support long running conversati
milli Sep 11, 2007 12:31 AM (in response to milli)It is weird. In the seam book by Michael Yuan, it is mentioned in several places that a seam POJO component has conversational scope by default. I just checked the reference guide and it says event context.
Anyways I set the scope annotation to conversation explicitly but still have the same behavior.
BTW I'm using Seam 1.2.1GA and JBoss AS 4.0.5 -
3. Re: Does seam pojo component support long running conversati
milli Sep 11, 2007 12:40 AM (in response to milli)I just googled and found this is the behaviour of seam pojo component. http://chiralsoftware.com/Blog and they can not be part of a long running conversation.
Could someone please confirm this?
Thanks -
4. Re: Does seam pojo component support long running conversati
matt.drees Sep 11, 2007 12:53 AM (in response to milli)Not at all true. I use conversation-scoped javabeans all the time.
-
5. Re: Does seam pojo component support long running conversati
milli Sep 11, 2007 7:10 PM (in response to milli)I think returning null was causing the problem. I thought returning null would take you to the same view and it does but it breaks the long running conversation. Now after returning the view id, it works I guess but still have to run some tests.
Thanks -
6. Re: Does seam pojo component support long running conversati
matt.drees Sep 11, 2007 11:14 PM (in response to milli)Right; the docs say that @Begin only starts a long-running conversation if the (non-void return-type) method returns a non-null value.