diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-14 15:15:14 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-14 15:15:14 +0000 |
commit | 371ec9a7a7b80212b77f86688b51c39387ba3bc6 (patch) | |
tree | 9748f68ebc3ef10a9efde2531d0a50e6e425a2bd | |
parent | d5085537adf715f17ddc8537838f8c5493336735 (diff) |
Update JMS provider factory to use the default host classes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814687 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java index 23f4814a2c..c814436115 100644 --- a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java +++ b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java @@ -22,6 +22,7 @@ package org.apache.tuscany.sca.binding.jms.provider; import org.apache.tuscany.sca.assembly.Endpoint; import org.apache.tuscany.sca.assembly.EndpointReference; import org.apache.tuscany.sca.binding.jms.JMSBinding; +import org.apache.tuscany.sca.binding.jms.host.DefaultJMSHostExtensionPointImpl; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.host.jms.JMSHostExtensionPoint; import org.apache.tuscany.sca.host.jms.JMSServiceListenerFactory; @@ -53,6 +54,10 @@ public class JMSBindingProviderFactory implements BindingProviderFactory<JMSBind } JMSHostExtensionPoint jmsHostExtensionPoint = (JMSHostExtensionPoint)extensionPoints.getExtensionPoint(JMSHostExtensionPoint.class); + if (jmsHostExtensionPoint == null) { + jmsHostExtensionPoint = new DefaultJMSHostExtensionPointImpl(extensionPoints); + extensionPoints.addExtensionPoint(jmsHostExtensionPoint); + } serviceListenerFactory = jmsHostExtensionPoint.getJMSServiceListenerFactory(); } |