-
1. Re: osgi http server, serving static web page
darkcloudbird Jul 13, 2010 5:15 AM (in response to darkcloudbird)alright!, my question might be misleading, here is the scenario i want to implement,
build osgi bundle (a simple web server) to serve simple static web page embedding (flex/flash) object which consumes web service/restful api from my osgi components. how do i host my static document (html file)?.
Is camel-jetty an answer?
I could build a route builder and open a camel-jetty endpoint and process the response using HttpServletRequest. but i have no idea how to host my simple static resource files such as my flash object and html files.
I found osgi servicemix jetty bundle running in my esb but I have no clue how to configure it and use it.
any help would be appreciated. Thanks.
Htin
-
2. Re: osgi http server, serving static web page
njiang Jul 13, 2010 8:36 PM (in response to darkcloudbird)Hi,
I don't think using the camel-jetty component to serving the static web page is good idea, as it don't support the static page out of box, you need to do lots of work to implement it yourself.
Fuse ESB is using Pax-Web to provides some web container service, so you may take a look at it
Willem
-
3. Re: osgi http server, serving static web page
darkcloudbird Jul 14, 2010 6:21 AM (in response to njiang)wow, thanks,
It was easier than I thought it would be. Now I am serving my static pages.
Thanks a lot. you light me up.
Htin