Hi Ajith, Thanks for the reply. Will try this with a sample.
regards Shazni Nazeer Senior Software Engineer Mob : +94 715 440 607 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Tue, Mar 25, 2014 at 11:43 AM, Ajith Vitharana <aji...@wso2.com> wrote: > > > > On Tue, Mar 25, 2014 at 11:29 AM, Shazni Nazeer <sha...@wso2.com> wrote: > >> Forwarding the same to only dev group and removing support as this >> doesn't contain any customer information >> > > You can use the PriviledgedCarbonContext to access the OSGI services. > > Eg : > > PriviledgedCarbonContext.getCurrentContext().getOSGiService(< > OSGIServiceInterfaceName>.class); > > Thanks > -Ajith > > >> Shazni Nazeer >> >> Senior Software Engineer >> >> Mob : +94 715 440 607 >> LinkedIn : http://lk.linkedin.com/in/shazninazeer >> Blog : http://shazninazeer.blogspot.com >> >> >> ---------- Forwarded message ---------- >> From: Shazni Nazeer <sha...@wso2.com> >> Date: Tue, Mar 25, 2014 at 11:13 AM >> Subject: Is it possible to access an OSGI service in a web app >> To: support-dev-group <support-dev-gr...@wso2.com>, dev <Dev@wso2.org> >> Cc: Sagara Gunathunga <sag...@wso2.com>, Sameera Jayasoma < >> same...@wso2.com> >> >> >> Hi All, >> >> I've a question $subject. >> >> A customer wants to know how to access an OSGI service in a web app he is >> writing to deploy on AS. >> >> Shazni Nazeer >> >> Senior Software Engineer >> >> Mob : +94 715 440 607 >> LinkedIn : http://lk.linkedin.com/in/shazninazeer >> Blog : http://shazninazeer.blogspot.com >> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Ajith Vitharana. > WSO2 Inc. - http://wso2.org > Email : aji...@wso2.com > Mobile : +94772217350 > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev