You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/10/03 00:55:01 UTC

svn commit: r452250 - in /webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl: SimpleNotificationProducer.java SimpleSubscriptionManager.java

Author: danj
Date: Mon Oct  2 15:55:00 2006
New Revision: 452250

URL: http://svn.apache.org/viewvc?view=rev&rev=452250
Log:
fixing WSN publish() so that it grabs producer EPR from the subscription that's publishing it (this was recorded at the time the 
subscription was created). This will ensure that the EPR on the outgoing message is correct even if one Resource object is being 
used to represent multiple instances (that is, multiple EPRs are mapped to the same Resource).

Modified:
    webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java
    webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleSubscriptionManager.java

Modified: webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java?view=diff&rev=452250&r1=452249&r2=452250
==============================================================================
--- webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java (original)
+++ webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java Mon Oct  2 15:55:00 2006
@@ -421,7 +421,6 @@
         message.addMessageContent(content);
         
         message.setTopic(topicName);
-        message.setProducerReference(getResource().getEndpointReference());
         
         //
         // give the message to each subscription so it can decide if it 

Modified: webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleSubscriptionManager.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleSubscriptionManager.java?view=diff&rev=452250&r1=452249&r2=452250
==============================================================================
--- webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleSubscriptionManager.java (original)
+++ webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleSubscriptionManager.java Mon Oct  2 15:55:00 2006
@@ -194,8 +194,9 @@
             return;
         
         //
-        // set subscription reference for this publication
+        // set EPRs for this publication
         //
+        message.setProducerReference(getProducerReference());
         message.setSubscriptionReference(getResource().getEndpointReference());
         
         try



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org