[ 
https://issues.apache.org/jira/browse/TUSCANY-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586722#action_12586722
 ] 

Mark Combellack commented on TUSCANY-2208:
------------------------------------------

I've added two new tests:

Validate createSelfReference using ConversationID()

   1) Create new Conversational Component
   2) Test case stores ConversationID created in step 1
   3) Conversational Component creates a Self Reference
   4) Test case uses Self Reference created in Step 3 to reget Conversational 
Component
   5) Test case re-gets the Conversation ID.
   6) Conversation ID from step 2 and step 5 should be the same.

Validate createSelfReference using Application Data

   1) Create new Conversational Component
   2) Test case stores some application data in the Conversational Component
   3) Conversational Component creates a Self Reference
   4) Test case uses Self Reference created in Step 3 to reget Conversational 
Component
   5) Test case re-gets the application data
   6) Application data from step 2 and step 5 should be the same.

I've committed the iTest in SVN revision 645808.

Note: The tests are disabled as they do not pass. To enable the tests, just 
remove the // from @Test in the class  CallableReferenceConversationalTestCase

> ComponentContext.createSelfReference() does not create a ServiceReference to 
> the correct Conversation
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2208
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2208
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: SVN revision 645782
> Linux
>            Reporter: Mark Combellack
>             Fix For: Java-SCA-Next
>
>
> I've been trying to create a ServiceReference to a Conversational Component 
> using the ComponentContext.createSelfReference() method. The code correctly 
> creates a ServiceReference but when I call ServiceReference.getService(), it 
> creates a new instance of the Component rather than returning to the original 
> instance.
> I am speculating that the Conversation ID is not being added to the 
> ServiceReference that is being created by the 
> ComponentContext.createSelfReference() method.
> I've created an iTest that illustrates this problem that I will commit.

-- 
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