You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ku Jun Guo (JIRA)" <de...@tuscany.apache.org> on 2009/03/19 04:31:50 UTC

[jira] Created: (TUSCANY-2920) It should throw an exception if I mixed the @target and for a reference

It should throw an exception if I mixed the @target and <binding> for a reference
---------------------------------------------------------------------------------

                 Key: TUSCANY-2920
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2920
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Assembly Model
    Affects Versions: Java-SCA-1.3.1
            Reporter: Ku Jun Guo


In OASIS, it said, "If a reference has a value specified for one or more target services in its @target attribute,  there MUST NOT be any child <binding/> elements declared for that reference".

But in my test, I used:
<reference name="Reference1" >
        	<interface.java interface="test.Service1" target="TestComponent2/Service1"/>
        	<!--A binding which contradicts the @target attribute -->
        	<binding.ws uri="http://localhost:8080/TestComponent2"/>
        </reference>
It worked well without exception thrown.

Any problem with my usage?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.