You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ga...@apache.org on 2006/12/13 16:24:39 UTC

svn commit: r486682 - /webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java

Author: gatfora
Date: Wed Dec 13 07:24:38 2006
New Revision: 486682

URL: http://svn.apache.org/viewvc?view=rev&rev=486682
Log:
Protect against null sequenceKey for createSequence

Modified:
    webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java

Modified: webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java?view=diff&rev=486682&r1=486681&r2=486682
==============================================================================
--- webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java (original)
+++ webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java Wed Dec 13 07:24:38 2006
@@ -311,6 +311,8 @@
 	 * @throws SandeshaException
 	 */
 	public static void createSequence(ServiceClient serviceClient, boolean offer, String sequenceKey) throws SandeshaException {
+		if (log.isDebugEnabled())
+			log.debug("Enter: SandeshaClient::createSequence , " + offer + ", " + sequenceKey);
 		
 		setUpServiceClientAnonymousOperations (serviceClient);
 		
@@ -337,7 +339,8 @@
 		// setting a new squenceKey if not already set.
 		String oldSequenceKey = (String) options.getProperty(SandeshaClientConstants.SEQUENCE_KEY);
 
-		options.setProperty(SandeshaClientConstants.SEQUENCE_KEY, sequenceKey);
+		if (sequenceKey != null)
+		  options.setProperty(SandeshaClientConstants.SEQUENCE_KEY, sequenceKey);
 
 		String rmSpecVersion = (String) options.getProperty(SandeshaClientConstants.RM_SPEC_VERSION);
 
@@ -364,6 +367,8 @@
 		options.setProperty(SandeshaClientConstants.DUMMY_MESSAGE, Sandesha2Constants.VALUE_FALSE);
 		options.setProperty(SandeshaClientConstants.SEQUENCE_KEY, oldSequenceKey);
 		
+		if (log.isDebugEnabled())
+			log.debug("Exit: SandeshaClient::createSequence");
 	}
 
 	/**



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