Hi Isuranga, > > > If I'm not mistaken unlike standalone mode, msf4j OSGI mode uses one > MicroserviceRunner for all micro services. In that case if I'm to start a > new MicroserviceRegistry then It should be under a separate port number > and that way I can add resource group specific interceptors. Please correct > me If I'm wrong.
In OSGi mode there aren't any MicroserviceRunner. There will be a separate MicroserviceRegistry for each ListenerConfiguration. If you want to deploy an Interceptor to a specific registry you need to set the property to the CHANNEL_ID[1] relevant listener configuration id when you register the Interceptor. [1] - https://github.com/wso2/msf4j/blob/v2.1.0/core/src/main/java/org/wso2/msf4j/internal/MicroservicesServerSC.java#L175 Thanks Thusitha On Wed, Jul 26, 2017 at 1:47 PM, Isuranga Perera <[email protected]> wrote: > Hi Thusitha, > > Thanks Thusith. > > If I'm not mistaken unlike standalone mode, msf4j OSGI mode uses one > MicroserviceRunner for all micro services. In that case if I'm to start a > new MicroserviceRegistry then It should be under a separate port number > and that way I can add resource group specific interceptors. Please correct > me If I'm wrong. > > On Wed, Jul 26, 2017 at 6:35 AM, Thusitha Thilina Dayaratne < > [email protected]> wrote: > >> Hi Isuranga, >> >> In 2.1.0 we only support global interceptors. Resource level interceptors >> were introduced in 2.3.0-m2. >> >> Thanks >> Thusitha >> >> On Tue, Jul 25, 2017 at 11:55 PM, Isuranga Perera < >> [email protected]> wrote: >> >>> Hi, >>> >>> Is it possible to plug custom interceptors for micro-services in msf4j >>> 2.1.0. (per service not globally) >>> >>> Best Regards >>> Isuranga Perera >>> >> >> >> >> -- >> Thusitha Dayaratne >> WSO2 Inc. - lean . enterprise . middleware | wso2.com >> >> Mobile +94712756809 <+94%2071%20275%206809> >> Blog alokayasoya.blogspot.com >> About http://about.me/thusithathilina >> <http://wso2.com/signature> >> >> > -- Thusitha Dayaratne WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
