synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r534756 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java
Date Thu, 03 May 2007 08:54:25 GMT
Author: asankha
Date: Thu May  3 01:54:24 2007
New Revision: 534756

URL: http://svn.apache.org/viewvc?view=rev&rev=534756
Log:
fix SYNAPSE-94

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java?view=diff&rev=534756&r1=534755&r2=534756
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java
Thu May  3 01:54:24 2007
@@ -297,14 +297,25 @@
         Object o = localRegistry.get(key);
         if (o != null && o instanceof Endpoint) {
             return (Endpoint) o;
-        } else if (registry != null) {
-            Entry entry = new Entry(key);
-            entry.setMapper(XMLToEndpointMapper.getInstance());                        
+        }
+
+        Entry entry = null;
+        if (o != null && o instanceof Entry) {
+            entry = (Entry) o;
+        } else {
+            entry = new Entry(key);
+            entry.setType(Entry.REMOTE_ENTRY);
+            entry.setMapper(XMLToEndpointMapper.getInstance());
+        }
+
+        if (registry != null) {
             o = registry.getResource(entry);
             if (o != null && o instanceof Endpoint) {
+                localRegistry.put(key, entry);
                 return (Endpoint) o;
             }
         }
+
         return null;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message