From 4c20594aea3ead4b143eb785259830b07e69ec63 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 28 Jan 2009 14:55:59 +0000 Subject: 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 --- .../org/apache/tuscany/sca/host/jms/asf/ASFListener.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'branches/sca-java-1.x') 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); + } + } + } -- cgit v1.2.3