Author: antelder
Date: Wed Sep 3 09:30:04 2008
New Revision: 691667
URL: http://svn.apache.org/viewvc?rev=691667&view=rev
Log:
Another TUSCANY-2580 fix for binding.sca.jms
Modified:
tuscany/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java
Modified:
tuscany/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java
URL:
http://svn.apache.org/viewvc/tuscany/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java?rev=691667&r1=691666&r2=691667&view=diff
==============================================================================
---
tuscany/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java
(original)
+++
tuscany/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java
Wed Sep 3 09:30:04 2008
@@ -90,6 +90,12 @@
}
}
+ 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