summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/host-jms-asf/src
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-28 14:55:59 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-28 14:55:59 +0000
commit4c20594aea3ead4b143eb785259830b07e69ec63 (patch)
tree9f19b8757754b9aae923b88f82f8d589960e4b4f /branches/sca-java-1.x/modules/host-jms-asf/src
parentf21bd381bdbadf96f27acea2910f76c4f97104f5 (diff)
Implement the getDestination method in the default jms host
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738501 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/host-jms-asf/src')
-rw-r--r--branches/sca-java-1.x/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ASFListener.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ASFListener.java b/branches/sca-java-1.x/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ASFListener.java
index cd1b909fad..078a7f36ac 100644
--- a/branches/sca-java-1.x/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ASFListener.java
+++ b/branches/sca-java-1.x/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ASFListener.java
@@ -216,4 +216,18 @@ public class ASFListener implements JMSServiceListener {
return destination;
}
+ public String getDestinationName() {
+ try {
+ if (destination instanceof Queue) {
+ return ((Queue)destination).getQueueName();
+ } else if (destination instanceof Topic) {
+ return ((Topic)destination).getTopicName();
+ } else {
+ return null;
+ }
+ } catch (JMSException e) {
+ throw new JMSBindingException(e);
+ }
+ }
+
}