diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-28 14:55:59 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-28 14:55:59 +0000 |
commit | 4c20594aea3ead4b143eb785259830b07e69ec63 (patch) | |
tree | 9f19b8757754b9aae923b88f82f8d589960e4b4f /branches/sca-java-1.x/modules/host-jms-asf/src | |
parent | f21bd381bdbadf96f27acea2910f76c4f97104f5 (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.java | 14 |
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);
+ }
+ }
+
}
|