From 2ed417e3d7f91feaafc351aa940a2b64290c9866 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 14 Sep 2009 12:44:30 +0000 Subject: Correct getting the component reference. JMS TTL itest now passes! git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814621 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java | 2 +- .../sca/binding/jms/transport/TransportReferenceInterceptor.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'java') diff --git a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java index 9a6e07fcf2..923d9aa1d1 100644 --- a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java +++ b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java @@ -84,7 +84,7 @@ public class HeaderReferenceInterceptor implements Interceptor { Operation operation = tuscanyMsg.getOperation(); String operationName = operation.getName(); - RuntimeComponentReference reference = (RuntimeComponentReference)runtimeWire.getEndpointReference().getInterfaceContract(); + RuntimeComponentReference reference = (RuntimeComponentReference)runtimeWire.getEndpointReference().getReference(); // I think the OASIS spec suggests we do not need to do anything with // @nativeOperation here on the reference side. diff --git a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportReferenceInterceptor.java b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportReferenceInterceptor.java index 6949ac67da..fd74ae952a 100644 --- a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportReferenceInterceptor.java +++ b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportReferenceInterceptor.java @@ -46,14 +46,12 @@ public class TransportReferenceInterceptor implements Interceptor { private RuntimeWire runtimeWire; private JMSResourceFactory jmsResourceFactory; private JMSBinding jmsBinding; - private RuntimeComponentReference reference; public TransportReferenceInterceptor(JMSBinding jmsBinding, JMSResourceFactory jmsResourceFactory, RuntimeWire runtimeWire) { super(); this.jmsBinding = jmsBinding; this.runtimeWire = runtimeWire; this.jmsResourceFactory = jmsResourceFactory; - this.reference = (RuntimeComponentReference)runtimeWire.getEndpointReference().getInterfaceContract(); } public Message invoke(Message msg) { -- cgit v1.2.3