Tuscany
  1. Tuscany
  2. TUSCANY-2281

How to create ServiceReferences for references using multiplicity="1..n"

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Java-SCA-1.2
    • Fix Version/s: Java-SCA-1.4
    • Component/s: SCA Java Runtime
    • Labels:
      None

      Description

      At the moment it is not possible to create ServiceReferences for specific targets of references with multiplicity="1..n".
      See the mailing list for details: http://www.mail-archive.com/tuscany-user@ws.apache.org/msg03024.html

      A quote from Simon Laws' answer:
      "The OASIS TC has proposed a solution to this issue (http://www.osoa.org/jira/browse/JAVA-9) but this isn't part of the API we have implemented as we have taken the V1 API. Can you raise a JIRA for this as I can't see one already and at least in that way we can track it."

      1. ComponentContext.java
        6 kB
        Daniel Stucky
      2. ComponentContextImpl.java
        18 kB
        Daniel Stucky
      3. MultiplicityTest.zip
        6 kB
        Daniel Stucky

        Issue Links

          Activity

          Daniel Stucky created issue -
          ant elder made changes -
          Field Original Value New Value
          Fix Version/s Java-SCA-Next [ 12312358 ]
          Hide
          Daniel Stucky added a comment -

          Hi all,

          I just wanted to ask if there are any plans when this issue could be solved.
          I'd really like to make use of this feature in the EILF project.

          Bye,
          Daniel

          Show
          Daniel Stucky added a comment - Hi all, I just wanted to ask if there are any plans when this issue could be solved. I'd really like to make use of this feature in the EILF project. Bye, Daniel
          Hide
          Daniel Stucky added a comment -

          Hi Simon,

          attached you can find my contribution that solves this issue (http://www.osoa.org/jira/browse/JAVA-9).

          This enhancement works in my environment. But please take a look at the implementation, as I do not know if this is the way it should be done.
          I have marked all changes with the following comment:
          /* ******************** Contribution for issue TUSCANY-2281 ******************** */

          Bye,
          Daniel

          Show
          Daniel Stucky added a comment - Hi Simon, attached you can find my contribution that solves this issue ( http://www.osoa.org/jira/browse/JAVA-9 ). This enhancement works in my environment. But please take a look at the implementation, as I do not know if this is the way it should be done. I have marked all changes with the following comment: /* ******************** Contribution for issue TUSCANY-2281 ******************** */ Bye, Daniel
          Daniel Stucky made changes -
          Attachment ComponentContext.java [ 12390268 ]
          Attachment ComponentContextImpl.java [ 12390269 ]
          Simon Laws made changes -
          Assignee Simon Laws [ simonslaws ]
          Hide
          Simon Laws added a comment -

          Hey Daniel

          Thanks for the patch. The change looks good. I'll go ahead and commit it so it's in the code base but I'll keep this JIRA open as I'd like to have a test case that exercises the two new API operations. Do you have has a test case for this change?

          Show
          Simon Laws added a comment - Hey Daniel Thanks for the patch. The change looks good. I'll go ahead and commit it so it's in the code base but I'll keep this JIRA open as I'd like to have a test case that exercises the two new API operations. Do you have has a test case for this change?
          Hide
          Daniel Stucky added a comment -

          Hi Simon,

          I tested it within our application which is way to much overhead.
          I will check if I can create a smaller test case.

          Show
          Daniel Stucky added a comment - Hi Simon, I tested it within our application which is way to much overhead. I will check if I can create a smaller test case.
          Hide
          Daniel Stucky added a comment -

          Hi Simon,
          I attached a small eclipse project containing a TestCase for the patch.

          Show
          Daniel Stucky added a comment - Hi Simon, I attached a small eclipse project containing a TestCase for the patch.
          Daniel Stucky made changes -
          Attachment MultiplicityTest.zip [ 12390643 ]
          Hide
          Simon Laws added a comment -

          Test case committed at revision: 720215

          Show
          Simon Laws added a comment - Test case committed at revision: 720215
          Simon Laws made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Simon Laws made changes -
          Fix Version/s Java-SCA-Next [ 12312358 ]
          Fix Version/s Java-SCA-1.4 [ 12313393 ]
          Simon Laws made changes -
          Link This issue is blocked by TUSCANY-2732 [ TUSCANY-2732 ]
          ant elder made changes -
          Component/s SCA Java Runtime [ 12313754 ]
          Component/s Java SCA Core Runtime [ 12310647 ]
          ant elder made changes -
          Component/s Java SCA Core Runtime [ 12310647 ]

            People

            • Assignee:
              Simon Laws
              Reporter:
              Daniel Stucky
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development