diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-04 10:40:29 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-04 10:40:29 +0000 |
commit | fad9dbd91306b15b829fa2da63b68af8df950e6b (patch) | |
tree | b2482aedc13bc57c27b1d6a98b86e41bb3167bef /java/sca/modules/binding-sca-jms/src/main | |
parent | 08b9d5aabe76617780c70c976adc0f1b1f3d8ff4 (diff) |
Correct JMS binding.sca destination create options
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@691961 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-sca-jms/src/main')
-rw-r--r-- | java/sca/modules/binding-sca-jms/src/main/java/org/apache/tuscany/sca/binding/sca/jms/JMSSCABindingProviderFactory.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/sca/modules/binding-sca-jms/src/main/java/org/apache/tuscany/sca/binding/sca/jms/JMSSCABindingProviderFactory.java b/java/sca/modules/binding-sca-jms/src/main/java/org/apache/tuscany/sca/binding/sca/jms/JMSSCABindingProviderFactory.java index 21da1e5e92..87c9098737 100644 --- a/java/sca/modules/binding-sca-jms/src/main/java/org/apache/tuscany/sca/binding/sca/jms/JMSSCABindingProviderFactory.java +++ b/java/sca/modules/binding-sca-jms/src/main/java/org/apache/tuscany/sca/binding/sca/jms/JMSSCABindingProviderFactory.java @@ -51,6 +51,13 @@ public class JMSSCABindingProviderFactory implements BindingProviderFactory<Dist RuntimeComponentReference reference, DistributedSCABinding binding) { JMSBinding jmsBinding = createBinding(binding); + + // FIXME: CREATE_NEVER doesn't work as the dynamically created JNDI destinations + // aren't replicated around the broker cluster. Maybe it needs an AMQ specific + // impl of the Tuscany JMSResourceFactory which uses use physical destinations + // instead of JNDI + //jmsBinding.setDestinationCreate(JMSBindingConstants.CREATE_NEVER); + return new JMSBindingReferenceBindingProvider(component, reference, jmsBinding); } @@ -58,6 +65,7 @@ public class JMSSCABindingProviderFactory implements BindingProviderFactory<Dist RuntimeComponentService service, DistributedSCABinding binding) { JMSBinding jmsBinding = createBinding(binding); + jmsBinding.setDestinationCreate(JMSBindingConstants.CREATE_ALWAYS); return new JMSBindingServiceBindingProvider(component, service, binding.getSCABinding(), jmsBinding, workScheduler); } |