You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by al...@apache.org on 2014/02/16 04:44:36 UTC

svn commit: r1568712 - /juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/subscription/SubscriptionCallbackListener.java

Author: alexoree
Date: Sun Feb 16 03:44:35 2014
New Revision: 1568712

URL: http://svn.apache.org/r1568712
Log:
JUDDI-853 fixed

Modified:
    juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/subscription/SubscriptionCallbackListener.java

Modified: juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/subscription/SubscriptionCallbackListener.java
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/subscription/SubscriptionCallbackListener.java?rev=1568712&r1=1568711&r2=1568712&view=diff
==============================================================================
--- juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/subscription/SubscriptionCallbackListener.java (original)
+++ juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/subscription/SubscriptionCallbackListener.java Sun Feb 16 03:44:35 2014
@@ -210,10 +210,31 @@ public class SubscriptionCallbackListene
 
         /**
          * Starts a subscription callback service using the juddi client config
-         * file's settings
+         * file's settings. This will use the config setting PROPERTY_NODE, or default if not defined
          *
          * @param client
-         * @param cfg_node_name - this is the uddi/client@name
+         * @return a bindingtemplate populated with the relevant information for
+         * most UDDI servers for asynchronous callbacks.
+         * @throws ServiceAlreadyStartedException
+         * @throws SecurityException
+         * @throws ConfigurationException
+         * @throws TransportException
+         * @throws DispositionReportFaultMessage
+         * @throws UnexpectedException
+         * @throws RemoteException
+         * @throws org.apache.juddi.v3.client.subscription.RegistrationAbortedException
+         * @throws org.apache.juddi.v3.client.subscription.UnableToSignException
+         * @throws java.net.MalformedURLException
+         */
+        public static synchronized BindingTemplate start(UDDIClient client) throws ServiceAlreadyStartedException, SecurityException, ConfigurationException, TransportException, DispositionReportFaultMessage, UnexpectedException, RemoteException, RegistrationAbortedException, UnableToSignException, MalformedURLException {
+                return start(client, client.getClientConfig().getConfiguration().getString(PROPERTY_NODE,"default"));
+        }
+        /**
+         * Starts a subscription callback service using the juddi client config
+         * file's settings. This will use the specified node
+         *
+         * @param client
+         * @param cfg_node_name the node to connect to and perform all operations on
          * @return a bindingtemplate populated with the relevant information for
          * most UDDI servers for asynchronous callbacks.
          * @throws ServiceAlreadyStartedException
@@ -287,6 +308,10 @@ public class SubscriptionCallbackListene
          * config parameter
          */
         public static final String PROPERTY_LISTENURL = "client.subscriptionCallbacks.listenUrl";
+                /**
+         * config parameter, if not defined, default will be used
+         */
+        public static final String PROPERTY_NODE = "client.subscriptionCallbacks.node";
         /**
          * config parameter
          */



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org