The servlet will receive all requests starting with the prefix. That
is /listener/resource will end up with your service, unless another
servlet specifically is registered on that uri. The servlet API
contains methods to get the remainder path.

Kind regards,

     Peter Kriens



NM> I am new to OSGI and I am trying to use OSGI for a web app. Is it legal
NM> in OSGI to register a wild card alias with HttpService? Let me describe
NM> the scenario so you can understand my question.

NM> An HTTP servlet is listening at a certain alias say /listener. When it
NM> receives certain requests, the servlet generates a response with a child
NM> URI, which has the same prefix as its own alias, but with an extra path
NM> element, e.g., /listener/resource.

NM> Upon reading the OSGI R4 spec, I get the impression that unless this new
NM> URI is registered as new alias, any request for the child URI (i.e., 
NM> /listener/resource) will not be valid. Is that correct? How do people 
NM> deal with dynamically created resources, especially since it does not 
NM> make sense to register a new alias for each of these?

NM> Thanks,
NM> Nikunj Mehta
NM> _______________________________________________
NM> OSGi Developer Mail List
NM> osgi-dev@bundles.osgi.org
NM> http://bundles.osgi.org/mailman/listinfo/osgi-dev

-- 
Peter Kriens                              Tel +33467542167
9C, Avenue St. Drézéry                    AOL,Yahoo: pkriens
34160 Beaulieu, France                    ICQ 255570717
Skype pkriens                             Fax +1 8153772599

_______________________________________________
OSGi Developer Mail List
osgi-dev@bundles.osgi.org
http://bundles.osgi.org/mailman/listinfo/osgi-dev

Reply via email to