tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1228596 - /tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java
Date Sat, 07 Jan 2012 11:28:05 GMT
Author: antelder
Date: Sat Jan  7 11:28:04 2012
New Revision: 1228596

URL: http://svn.apache.org/viewvc?rev=1228596&view=rev
Log:
TUSCANY-4002: Apply patch from Jennifer  Thompson to support get/set properties on the JMS
binding Context object

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java?rev=1228596&r1=1228595&r2=1228596&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java
Sat Jan  7 11:28:04 2012
@@ -18,6 +18,8 @@
  */
 package org.apache.tuscany.sca.binding.jms.context;
 
+import java.util.Hashtable;
+
 import javax.jms.Destination;
 import javax.jms.Message;
 import javax.jms.Session;
@@ -42,6 +44,7 @@ public class JMSBindingContext {
     private long timeToLive;
     private boolean useBytesForWFJMSDefaultResponse;
     private long requestTimeout;
+    private Hashtable properties = new Hashtable<String,Object>();
 
     public Message getJmsMsg() {
         return jmsMsg;
@@ -143,4 +146,16 @@ public class JMSBindingContext {
     public void setRequestTimeout(long l) {
         this.requestTimeout = l;
     }
+    
+    public void setProperty(String key, Object value){
+    	properties.put(key, value);
+    }
+    
+    public Object getProperty(String key){
+    	return properties.get(key);
+    }
+    
+    public void removeProperty(String key){
+    	properties.remove(key);
+    }
 }



Mime
View raw message