Author: karthick
Date: Fri Aug  7 19:24:20 2009
New Revision: 802153

URL: http://svn.apache.org/viewvc?rev=802153&view=rev
Log:
Set the value of the JMS reply timeout as a String, as opposed to a Long object.

Modified:
    
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/Properties.java

Modified: 
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/Properties.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/Properties.java?rev=802153&r1=802152&r2=802153&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/Properties.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/Properties.java
 Fri Aug  7 19:24:20 2009
@@ -191,12 +191,14 @@
             }
             if (properties.containsKey(PROP_JMS_REPLY_TIMEOUT)) {
                 String value = properties.get(PROP_JMS_REPLY_TIMEOUT);
-                try {
-                    options.setProperty(JMSConstants.JMS_WAIT_REPLY, 
Long.valueOf(value));
-                } catch (NumberFormatException e) {
-                    if (log.isWarnEnabled())
-                        log.warn("Mal-formatted Property: [" + 
Properties.PROP_JMS_REPLY_TIMEOUT + "=" + value + "]. Long expected. Property 
will be skipped.");
-                }
+                options.setProperty(JMSConstants.JMS_WAIT_REPLY, value);
+                // The value of this property must be a string object, not a 
long object. 
+//                try {
+//                    options.setProperty(JMSConstants.JMS_WAIT_REPLY, 
Long.valueOf(value));
+//                } catch (NumberFormatException e) {
+//                    if (log.isWarnEnabled())
+//                        log.warn("Mal-formatted Property: [" + 
Properties.PROP_JMS_REPLY_TIMEOUT + "=" + value + "]. Long expected. Property 
will be skipped.");
+//                }
             }
             if (properties.containsKey(PROP_JMS_DESTINATION_TYPE)) {
                 String value = properties.get(PROP_JMS_DESTINATION_TYPE);


Reply via email to