ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r124180 - /webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java /webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java
Date Wed, 05 Jan 2005 01:39:22 GMT
Author: anil
Date: Tue Jan  4 17:39:21 2005
New Revision: 124180

URL: http://svn.apache.org/viewcvs?view=rev&rev=124180
Log:
ConnectionImpl takes care of juddi properties.

Modified:
   webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java
   webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java

Modified: webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java
Url: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java?view=diff&rev=124180&p1=webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java&r1=124179&p2=webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java&r2=124180
==============================================================================
--- webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java
(original)
+++ webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/BulkResponseImpl.java
Tue Jan  4 17:39:21 2005
@@ -22,10 +22,10 @@
 import java.util.Collection;
 
 /**
- * Implements JAXR BulResponse Interface.
+ * Implements JAXR BulkResponse Interface.
  * For futher details, look into the JAXR API Javadoc.
  *
- * @author Anil Saldhana  <anil@apache.org>
+ * @author Anil Saldhana  <mailto:anil@apache.org>
  */
 public class BulkResponseImpl implements BulkResponse {
     public static int STATUS_FAILURE = 1;

Modified: webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java
Url: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java?view=diff&rev=124180&p1=webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java&r1=124179&p2=webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java&r2=124180
==============================================================================
--- webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java
(original)
+++ webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/ConnectionImpl.java
Tue Jan  4 17:39:21 2005
@@ -17,12 +17,14 @@
 package org.apache.ws.scout.registry;
 
 import org.apache.juddi.proxy.RegistryProxy;
+import org.apache.juddi.proxy.Transport;
 
 import javax.xml.registry.Connection;
 import javax.xml.registry.JAXRException;
 import javax.xml.registry.RegistryService;
 import java.net.URL;
 import java.util.Set;
+import java.util.Properties;
 
 /**
  * Apache Scout Implementation of a JAXR Connection.
@@ -39,11 +41,24 @@
     private final int maxRows;
 
     public ConnectionImpl(URL queryManagerURL, URL lifeCycleManagerURL, String postalScheme,
int maxRows) {
-        registry = new RegistryProxy(null);
+        Properties prop = new Properties();
+        /**
+         * If you want to override any of the properties
+         * juddi RegistryProxy uses, set the System property
+         * accordingly.
+         */
+        String transport = System.getProperty("juddi.proxy.transportClass");
+        if( transport != null) prop.setProperty("juddi.proxy.transportClass",transport);
+        /**
+         * Even if the properties passed contains no values,
+         * juddi takes default values
+         */
+        registry = new RegistryProxy(prop);
         registry.setInquiryURL(queryManagerURL);
         registry.setPublishURL(lifeCycleManagerURL);
         this.postalScheme = postalScheme;
         this.maxRows = maxRows;
+
     }
 
     public RegistryService getRegistryService() throws JAXRException {

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


Mime
View raw message