Author: indika
Date: Thu Apr 17 23:42:31 2008
New Revision: 15783

Log:

add default registry for the esb as wso2esb registry

Modified:
   
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/registry/ESBRegistry.java
   trunk/esb/java/modules/distribution/src/main/conf/server.xml
   trunk/esb/java/modules/distribution/src/main/conf/synapse.xml

Modified: 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/registry/ESBRegistry.java
==============================================================================
--- 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/registry/ESBRegistry.java
    (original)
+++ 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/registry/ESBRegistry.java
    Thu Apr 17 23:42:31 2008
@@ -789,8 +789,7 @@
     }
 
     private String getSystemDependentPath(String path) {
-        String filePath = path.replace(URL_SEPARATOR_CHAR, File.separatorChar);
-        return filePath;
+        return path.replace(URL_SEPARATOR_CHAR, File.separatorChar);
     }
 
     private String getURLPath(String filePath) {

Modified: trunk/esb/java/modules/distribution/src/main/conf/server.xml
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/conf/server.xml        
(original)
+++ trunk/esb/java/modules/distribution/src/main/conf/server.xml        Thu Apr 
17 23:42:31 2008
@@ -33,16 +33,16 @@
         </User> -->
     </ESBUsers>
 
-    <!--<Registry>-->
-        <!--<importRoot>file:repository/conf/sample/resources/</importRoot>-->
-        <!--<type>local</type>-->
+    <Registry>
+        <importRoot>file:registry</importRoot>
+        <type>inMemory</type>
         <!--<configuration>-->
             
<!--<driverClass>org.apache.derby.jdbc.ClientDriver</driverClass>-->
             
<!--<url>jdbc:derby://localhost:1528/../../../../database/WSO2REGISTRY_DB</url>-->
             <!--<username>wso2esb</username>-->
             <!--<password>wso2esb</password>-->
         <!--</configuration>-->
-    <!--</Registry>-->
+    </Registry>
 
     <!-- The temporary work directory which will be created under ESB_HOME -->
     <WorkDirectory>work</WorkDirectory>

Modified: trunk/esb/java/modules/distribution/src/main/conf/synapse.xml
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/conf/synapse.xml       
(original)
+++ trunk/esb/java/modules/distribution/src/main/conf/synapse.xml       Thu Apr 
17 23:42:31 2008
@@ -20,10 +20,8 @@
 <definitions xmlns="http://ws.apache.org/ns/synapse";>
 
     <!-- the SimpleURLRegistry allows access to a URL based registry (e.g. 
file:/// or http://) -->
-    <registry provider="org.wso2.esb.registry.ESBRegistry">
-        <!-- the root property of the simple URL registry helps resolve a 
resource URL as root + key -->
-        <parameter name="root">file:registry/</parameter>
-        <!-- all resources loaded from the URL registry would be cached for 
this number of milli seconds -->
+    <registry provider="org.wso2.esb.registry.WSO2Registry">
+         <!-- all resources loaded from the URL registry would be cached for 
this number of milli seconds -->
         <!--<parameter name="cachableDuration">15000</parameter>-->
     </registry>
 

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to