Hi all,

I have a servlet registered with the Jetty Http Service, offered by Pax Web,
that enables uploading content (like various types of files) to my backend
OSGi-based application. I am able to upload the files without any problem,
however, I am not sure how I can register the uploaded content with the Web
server on the fly, so that I can immediately access the uploaded content
through their URLs.

It seems to me like the folder keeping the resources needs to be part of a
bundle which registers the resoures with the Web server once it discovers
the Web server in the OSGi service registry. However, in my case, since the
content to be registered with the Web server is not available, I am not sure
how this whole process of exposing new content to the Web server can be
done.

One solution I could think of was to wrap this folder as a WAR file and have
it registered with the Web server. But this requires the whole process to be
repeated upon adding or deleting new content to/from my resource folder.
This renders the whole approach infeasible.

Does any body have any solution or has anybody already encountered a similar
problem?

I believe my question is not a Pax Web specific question, so I believe this
should be the proper mailing list to ask the question.

I would very much appreciate your help and response.

bests,
-Nima
-- 
http://nima.magic.ubc.ca

Reply via email to