Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1909

Conversational Component referring to another Conversational Component always uses the same instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Java-SCA-1.1
    • SCA Java Runtime
    • None

    Description

      I've run into a problem with two conversational Services. Consider the following scenario:

      AService

      • Has member variable called state
      • Has reference to BService
      • Has set/getState method for setting state on A
      • Has set/getStateOnB method for setting state on B

      BService

      • Has member variable called state

      Calling SCADomain.getService(AService) twice, I am expecting to get:

      AService_1 -> BService_1
      and AService_2 -> BService_2

      However, I am getting:

      AService_1 -> BService_1
      and AService_2 -> BService_1

      i.e a second instance of BService is not being created.

      The first time I get a new instance of AService, a new instance of BService is created.

      The second time I get a new instance of AService, the original BService instance is shared.

      Attachments

        1. ConversationalWireFix_itest.patch
          16 kB
          Mark Combellack
        2. ConversationalWire_HACK_DO_NOT_APPLY.patch
          9 kB
          Mark Combellack

        Activity

          People

            scnash Simon Nash
            mcombell Mark Combellack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: