Author: asankaa Date: Thu Nov 27 03:09:42 2008 New Revision: 25076 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=25076
Log: add service parameters 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=25076&r1=25075&r2=25076&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 Thu Nov 27 03:09:42 2008 @@ -87,6 +87,9 @@ eventSourceService.addOperation(mediateOperation); eventSourceService.addOperation(subscribeOperation); axisCfg.addService(eventSourceService); + //Set the service parameters + eventSourceService.addParameter("subscriptionManager",subscriptionManager); + eventSourceService.addParameter("serviceType","eventing"); } /** @@ -102,8 +105,6 @@ .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
