3 Replies Latest reply on Jul 14, 2010 6:21 AM by darkcloudbird

    osgi http server, serving static web page

    darkcloudbird

      Hi, I am still new to esb enviromnent and osgi. I would like to create a simple web (static) interface for monitoring the services that I deployed in the esb. Of course my page will communicate with web service or some restful services running in my osgi container. Anybody knows how to serve static file, just like a simple http server? just like http://host:port/admin.html would be enough.

       

      Note: any architectural advice would be appreciated also.

      Thanks in advance.

      htin

        • 1. Re: osgi http server, serving static web page
          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

            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

              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