diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-03 16:30:04 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-03 16:30:04 +0000 |
commit | fbe9f35faac59767f6957f5a2a7e66486713a1e0 (patch) | |
tree | e7c7c54d1843987fc35ac48d48ec41f91fc29c22 /java/sca/modules/endpoint/src | |
parent | 61b23a56a9e6233baedd5bb534a8c1d8d1369f03 (diff) |
Another TUSCANY-2580 fix for binding.sca.jms
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@691667 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/endpoint/src')
-rw-r--r-- | java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java b/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java index 5a36b714c1..b76c4b82f0 100644 --- a/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java +++ b/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java @@ -90,6 +90,12 @@ public class EndpointResolverImpl implements EndpointResolver { } } + if (endpoint.isUnresolved()){ + // TODO: TUSCANY-2580: if its still unresolved use the first candidate binding + endpoint.setSourceBinding(endpoint.getCandidateBindings().get(0)); + endpoint.getSourceBinding().setURI(endpoint.getTargetName()); + } + if (endpoint.isUnresolved() != true){ // If we have to build the endpoint because we are matching // intents and policies then we do that now. If the binding |