diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-14 21:31:51 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-14 21:31:51 +0000 |
commit | 911db2d64f7af7b845bb795db2ed09abd9be2e09 (patch) | |
tree | ec358d227c840ba5d66206e55e5df27d199f5bff /sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org | |
parent | 16c690edff7e39444e688da81cac3b83b3381fa0 (diff) |
Update jms binding to callback interceptor to support jms: uri format callback q property values
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@997103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java index 08411dfdfe..b48ae17bca 100644 --- a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java +++ b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java @@ -74,6 +74,14 @@ public class CallbackDestinationInterceptor implements Interceptor { if (replyTo != null) { callbackdestName = (replyTo instanceof Queue) ? ((Queue) replyTo).getQueueName() : ((Topic) replyTo).getTopicName(); } + } else { + if (callbackdestName != null) { + if (!callbackdestName.startsWith("jms:jndi:")) { + throw new JMSBindingException("message property " + JMSBindingConstants.CALLBACK_Q_PROPERTY + " does not start with 'jms:jndi:' found: " + callbackdestName); + } else { + callbackdestName = callbackdestName.substring(9); + } + } } if (callbackdestName != null) { |