I don't think this approach works when we change the resource from another server though, for example, if you're using a separate GREG to update a resource, other servers will not get notified I presume. It would have to live in the same server. So I can see this approach only work strictly in a worker/manager separated environment, where you'd do the change only in the manager, and the same server will get notified, and the data service be redeployed, and hopefully dep-sync will re-deploy it, but that also, I'm not sure that will work, since the service itself didn't actually change. So do check these aspects when following this approach.
Cheers, Anjana. On Fri, Dec 19, 2014 at 1:58 AM, Janaka Ranabahu <[email protected]> wrote: > > Hi Gayeshan, > > On Thu, Dec 18, 2014 at 6:23 PM, Gayashan Amarasinghe <[email protected]> > wrote: >> >> Hi all, >> >> I have a set of data services deployed in DSS which are exposed as >> RESTfull services. For each of these services there's a specific policy >> stored in the governance registry. (service knows this policy path from a >> parameter in the services xml file) >> >> I have requirement to register some sort of a listener/observer to this >> policy resource in the registry so that once the policy is updated in the >> registry it can redeploy the service. Is it possible to achieve this using >> the existing extension points of registry? >> > Yes, You need to write a registry handler. Please refer [1] and [2] for > more information. > > [1] https://docs.wso2.com/display/Governance460/Handlers > [2] https://docs.wso2.com/display/Governance460/Handler+Architecture > > Thanks, > Janaka > > >> >> Thanks. >> /Gayashan >> >> -- >> *Gayashan Amarasinghe* >> Software Engineer | Platform TG >> WSO2, Inc. | http://wso2.com >> lean. enterprise. middleware >> >> Mobile : +94718314517 >> Blog : gayashan-a.blogspot.com >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > -- > *Janaka Ranabahu* > Senior Software Engineer; WSO2 Inc.; http://wso2.com > > > *E-mail: [email protected] <http://wso2.com>**M: **+94 718370861 > <%2B94%20718370861>* > > Lean . Enterprise . Middleware > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
