If that instance is already created within OSGi bundle then you have to expose it as OSGi service to access from web application. Otherwise you have to expose its operation as web service and access from web application.
And you have an another option that create servlet within OSGi bundle. I am not sure whether this is recomended to do. We need to check this with kernal team. On Aug 19, 2015 8:38 PM, "Madhawa Gunasekara" <[email protected]> wrote: > Hi All, > > I have a requirement to process some HTTP requests, therefore I have used > a webapp. but I need to access some class instances in dss core, but > servlet cannot find those class instances in runtime classpath. hence I > found ClassNotFound Exceptions. > > I have registered osgi service to get that class instance. then it worked > fine. Is it the best approach to fix this issue. > > Any help on this matter is highly appreciated. > > Thanks, > Madhawa > -- > *Madhawa Gunasekara* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 719411002 <+94+719411002> > blog: *http://madhawa-gunasekara.blogspot.com > <http://madhawa-gunasekara.blogspot.com>* > linkedin: *http://lk.linkedin.com/in/mgunasekara > <http://lk.linkedin.com/in/mgunasekara>* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
