On Sun, Dec 27, 2009 at 11:05:26AM +0000, Guo Du wrote:
> On Sun, Dec 27, 2009 at 3:32 AM, tommy <bit...@gmail.com> wrote:
> >   I tried create a httpContext in one bundle, other bundle use the 
> > httpcontext when register a servlet. but i think it is not good solution.
> 
> You may export shared HttpContext as an OSGi service, any bundle could
> get the reference to pass to HttpService.registerServlet(String alias,
> Servlet servlet,Dictionary initparams, HttpContext context)
> 
> -Guo
thanks your reply. But if i get the reference , i cant get uri of static 
resources which is included other bundle.
i mean if i use the reference to register Resources,  it not worked.
you help me to resove a problem of servlet register, thanks!

Tommy Wang

Reply via email to