-
1. Re: Methods with no annotations in a Seam POJO
trouby Mar 7, 2008 7:00 PM (in response to robbins)If you have defined the component with CONVERSATION scope then you'll have a POJO instance per conversation,
Any invocation is a conversation, if you have started a long running conversation than any invocations for other methods in the POJO would be invoked over the component that is available in the current long running conversation.
Asaf.
-
2. Re: Methods with no annotations in a Seam POJO
robbins Mar 12, 2008 12:48 PM (in response to robbins)
Asaf S wrote on Mar 07, 2008 07:00 PM:
If you have defined the component with CONVERSATION scope then you'll have a POJO instance per conversation,
Any invocation is a conversation, if you have started a long running conversation than any invocations for other methods in the POJO would be invoked over the component that is available in the current long running conversation.
Asaf.
thanks Asaf. What if I end the conversation by invoking amethod annotated with @End, then I invoke another method on the same POJO which has no Seam annotation, does Seam automatically start another conversation? It's difficult to figure out what's it doing from the logs.
-
3. Re: Methods with no annotations in a Seam POJO
robbins Mar 12, 2008 12:51 PM (in response to robbins)Note I am not using the (ifNotBegunOutcome) either.
-
4. Re: Methods with no annotations in a Seam POJO
tom_goring Mar 12, 2008 1:42 PM (in response to robbins)
What if I end the conversation by invoking amethod annotated with @End, then I invoke another method on the same POJO which has no Seam annotation, does Seam automatically start another conversation? It's difficult to figure out what's it doing from the logs.Say your @End method was called during an action event, your long running conversation would be marked to end... however your context will only finish at the end of the http request/post. So if you called another method your object would exist. In a subsequent http request a new context object would be created in a short lived (tmp) conversation.... until you call your next @Begin.
I'd recommend you reread the seam docos it took me a while to understand what @Begin/@End do and when best to use them.
-
5. Re: Methods with no annotations in a Seam POJO
robbins Mar 12, 2008 4:00 PM (in response to robbins)Believe me, I have read the docs.
Are you saying that for a POJO marked with @Scope(CONVERSATION), @Begin and @End denote the beginning and end for a long running conversation, whereas any other method called after @End, in a separate Http request is just a short lived conversation?Thanks
-
6. Re: Methods with no annotations in a Seam POJO
pmuir Mar 12, 2008 5:03 PM (in response to robbins)
Tony Robbins wrote on Mar 12, 2008 04:00 PM:
Believe me, I have read the docs.
Are you saying that for a POJO marked with @Scope(CONVERSATION), @Begin and @End denote the beginning and end for a long running conversation, whereas any other method called after @End, in a separate Http request is just a short lived conversation?
ThanksCorrect.