summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-01-24 09:25:05 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-01-24 09:25:05 +0000
commit87cbe4483fffb1a105c62b0a0b8e0d85789a07df (patch)
treeb82b6e47184986b68000a1ba4b72b61f5eab724b /sca-java-2.x/trunk
parent87a97b4fa63dcfeea35782a1620f41edec438e36 (diff)
TUSCANY-4008: Apply patch from Jennifer A Thompson to fix JMS binding operationProperties 'selectedOperation' element not selecting the correct operation
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1235181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java
index 682c9ee48c..e665e03795 100644
--- a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java
+++ b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java
@@ -57,11 +57,14 @@ public class OperationPropertiesInterceptor extends InterceptorAsyncImpl {
public Message invokeRequest(Message msg) {
// TODO - could probably optimize this better
String operationName = msg.getOperation().getName();
- String operationNameOverride = jmsBinding.getNativeOperationName(operationName);
- for (Operation op : serviceOperations) {
- if (op.getName().equals(operationNameOverride)) {
- msg.setOperation(op);
- break;
+ String operationNameOverride = jmsBinding.getOpNameFromNativeOperationName(operationName);
+
+ if (operationNameOverride != null) {
+ for (Operation op : serviceOperations) {
+ if (op.getName().equals(operationNameOverride)) {
+ msg.setOperation(op);
+ break;
+ }
}
}
return msg;