Hi Simon,

yes, with version 1.1 it works fine. I also readded the test with "contribute 
to Apache" flag set.
Thanks a lot for your effort!

Bye,
Daniel
 

> -----Ursprüngliche Nachricht-----
> Von: Simon Laws (JIRA) [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 15. Februar 2008 16:22
> An: Stucky, Daniel, M-ED
> Betreff: [jira] Commented: (TUSCANY-2028) Conversation does 
> not continue if a Service Reference is passed as a return 
> value (not as a parameter)
> 
> 
>     [ 
> https://issues.apache.org/jira/browse/TUSCANY-2028?page=com.at
> lassian.jira.plugin.system.issuetabpanels:comment-tabpanel&foc
> usedCommentId=12569286#action_12569286 ] 
> 
> Simon Laws commented on TUSCANY-2028:
> -------------------------------------
> 
> Hi Daniel
> 
> I ran up your test case against the latest code in trunk and 
> and this is the result I see...
> 
> Gamma:start(), conversationId=d94c7a1a-8f4e-417e-befd-91145ebcaff6
> Alpha: Conversation to gamma exists. 
> conversationId=d94c7a1a-8f4e-417e-befd-91145ebcaff6
> Gamma:doSomething(), 
> conversationId=d94c7a1a-8f4e-417e-befd-91145ebcaff6
> Alpha: Conversation to gamma exists. 
> conversationId=d94c7a1a-8f4e-417e-befd-91145ebcaff6
> Gamma:stop(), conversationId=d94c7a1a-8f4e-417e-befd-91145ebcaff6
> 
> I then when back and ran it against previous versions..
> 
> 1.0.1 (which you are using)
> 
> run:
>      [java] Starting ...
>      [java] test.composite ready !!!
>      [java] Gamma:start(), 
> conversationId=db6b5594-fcb5-48b7-a1ef-6636baa3ec8c
>      [java] Alpha: Conversation to gamma is null
>      [java] Gamma:doSomething(), 
> conversationId=ddaa67c3-34a5-4083-a41c-3d306f8a3ab0
>      [java] Alpha: Conversation to gamma exists. 
> conversationId=ddaa67c3-34a5-4083-a41c-3d306f8a3ab0
>      [java] Gamma:stop(), 
> conversationId=ddaa67c3-34a5-4083-a41c-3d306f8a3ab0
>      [java] Stopping ...
>      [java] finished.
> 
> Looks duff
> 
> 1.1
> 
> run:
>      [java] Starting ...
>      [java] test.composite ready !!!
>      [java] Gamma:start(), 
> conversationId=9a211f55-176e-4eef-aaa2-c423f1f9f938
>      [java] Alpha: Conversation to gamma exists. 
> conversationId=9a211f55-176e-4eef-aaa2-c423f1f9f938
>      [java] Gamma:doSomething(), 
> conversationId=9a211f55-176e-4eef-aaa2-c423f1f9f938
>      [java] Alpha: Conversation to gamma exists. 
> conversationId=9a211f55-176e-4eef-aaa2-c423f1f9f938
>      [java] Gamma:stop(), 
> conversationId=9a211f55-176e-4eef-aaa2-c423f1f9f938
>      [java] Stopping ...
>      [java] finished.
> 
> Looks OK
> 
> So it seems that a fix went in for this between 1.0.1 and 
> 1.1. Can you try with 1.1 or the latest code from trunk to confirm.
> 
> Thanks for the great test case by the way. It let me very 
> easily confirm this. Would you be willing to re-add it to 
> this JIRA with the "contribute to Apache" flag set. If so 
> I'll add it to our callable reference itests so that we keep 
> an eye on this specific scenario.
> 
> Simon
> 
> > Conversation does not continue if a Service Reference is 
> passed as a 
> > return value (not as a parameter)
> > 
> ----------------------------------------------------------------------
> > --------------------------------
> >
> >                 Key: TUSCANY-2028
> >                 URL: 
> https://issues.apache.org/jira/browse/TUSCANY-2028
> >             Project: Tuscany
> >          Issue Type: Bug
> >          Components: Java SCA Core Runtime
> >    Affects Versions: Java-SCA-1.0.1
> >         Environment: Windows XP SP2, Intel Core 2 CPU, 2.6, 
> 2GB Ram, jdk 1.5.0_10
> >            Reporter: Daniel Stucky
> >            Assignee: Simon Laws
> >             Fix For: Java-SCA-Next
> >
> >         Attachments: test.zip
> >
> >
> > I have 3 components: Alpha, Beta and Gamma, where Gamma's 
> Interface is marked with @Conversational and 
> @Scope("CONVERSATION"). I want Alpha to call a method on Beta 
> that creates a conversation with Gamma and returns a 
> reference to Gamma. Then I want to reuse that conversation to 
> Gamma from Alpha.
> > Therefore I let Alpha call method Beta.getRef(). Inside 
> this method, a reference to Gamma is created via 
> componentContext.getServiceReference() and the conversation 
> is initialized by calling method Gamma.init(). Beta.getRef() 
> returns a CallableReference<Gamma>. So far it works, but as 
> soon as I call a method on that reference from within Alpha, 
> a new Conversation is initialized, the Conversation created 
> between Beta and Gamma is not reused.
> > See the original post on the mailing list: 
> > 
> http://mail-archives.apache.org/mod_mbox/ws-tuscany-user/200802.mbox/%
> > 
> [EMAIL PROTECTED]
> > e And the answer by Simon Laws: 
> > 
> http://mail-archives.apache.org/mod_mbox/ws-tuscany-user/200802.mbox/%
> > [EMAIL PROTECTED]
> 
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to