Author: asankaa
Date: Wed Nov 26 19:23:16 2008
New Revision: 25011
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=25011

Log:
add subscription manager as a property to the message context to access by the 
service exposed for the ui


Modified:
   
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/EventSource.java

Modified: 
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/EventSource.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/EventSource.java?rev=25011&r1=25010&r2=25011&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/EventSource.java
 (original)
+++ 
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/EventSource.java
 Wed Nov 26 19:23:16 2008
@@ -102,6 +102,8 @@
                 
.getAxisConfiguration().getParameter(SynapseConstants.SYNAPSE_ENV).getValue();
         org.apache.synapse.MessageContext smc = new Axis2MessageContext(mc, 
synCfg, synEnv);
         ResponseMessageBuilder messageBuilder = new ResponseMessageBuilder(mc);
+        // set the subscription manager to the message context
+        mc.setProperty("subscriptionManager",subscriptionManager);
         if (EventingConstants.WSE_SUBSCRIBE.equals(mc.getWSAAction())) {
             // add new subscription to the Subscription store through 
subscription manager
             Subscription subscription = 
SubscriptionMessageBuilder.createSubscription(smc);

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to