[ https://issues.apache.org/jira/browse/TUSCANY-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524852 ]
Jean-Sebastien Delfino commented on TUSCANY-1516: ------------------------------------------------- This seems to use old APIs (CurrentCompositeContext?) to locate the service. Is there any chance you can port your test case to the latest Tuscany SCA APIs (SCADomain)? Thanks. > Possible promotion problem with Tuscany > --------------------------------------- > > Key: TUSCANY-1516 > URL: https://issues.apache.org/jira/browse/TUSCANY-1516 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Core Runtime > Environment: All > Reporter: Hasan Muhammad > Fix For: Java-SCA-1.0 > > Attachments: default.composite, MyServiceImpl.java, > mySimpleService.composite, MyTotalService.java, MyTotalServiceImpl.java, > MyTotalServiceTest.java > > > I am experiencing a testcase failure in case of the scenario where a > composite file is embedded in another and from the embedded composite we > promote a service. I have attached composite files. > In the testcases, if we locate a service as such and obtain the location > property, the value is correct and is "Durham" > myServiceAnother = context.locateService(MyService.class, > "MySimpleServiceInRecursiveAnother/MyServiceNew1"); > assertEquals("Durham",myServiceAnother.getLocation()); > But if we locate another service from the parent composite directly as such > and obtain the location property, the value is incorrect and is again > "Durham". > myTotalServiceNew= context.locateService(MyTotalService.class, > "MyTotalServiceNewComponent"); > assertEquals("Raleigh",myTotalServiceNew.getLocation()); > Shouldnt it be "Raleigh" in the second case since we are accessing the > component/service defined in the parent component and not the promoted one > from the embedded composite? I dont know where to look but is this a > potential wiring problem? > I will be attaching the composite files and test case. -- 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]