Details of OSGi Web Container sub-project [message #499637] |
Mon, 23 November 2009 10:23  |
Eclipse User |
|
|
|
The OSGi Alliance Enterprise Expert Group is working on a "Web Container" specification, known as "RFC 66". This specification does not implement a web container, instead it describes how a servlet container can be integrated into an OSGi Service Platform, allowing deployment of war files as OSGi bundles.
The reference implementation for RFC 66 is being developed by SpringSource, and is described in this article by Rob Harrop.
The RFC 66 reference implementation project will be moving to Eclipse.org as part of the Gemini project, where it will continue to track the RFC 66 specification as it evolves. The codebase will be dual-licensed under both the EPL and Apache License.
-- Adrian.
|
|
|
|
Re: Details of OSGi Web Container sub-project [message #499827 is a reply to message #499637] |
Tue, 24 November 2009 05:00   |
Eclipse User |
|
|
|
Hi Greg,
In this context, think of "RFC 66" and "Web Container specification" as synonymous, and the "Gemini Web Container project" simply as the RI for this specification (nothing broader).
In brief, the model is that a web container extender listens for lifecycle events from bundles which are specially denoted as "Web Application Bundles". These are just standard bundles with additional headers in the manifest and/or contain a WEB-INF/web.xml file. When such a bundle transitions to the active state, the extender creates a servlet context for the bundle and deploys it into a servlet container. In the RI, the embedded servlet container is Tomcat, but there is nothing special about it from the perspective of the spec., and Jetty could just as easily be used for example.
In addition, a URL handler is defined supporting the "webbundle:" url scheme. This allows traditionally packaged JEE war files to be deployed as Web Application Bundles.
Regards, Adrian.
|
|
|
|
Re: Details of OSGi Web Container sub-project [message #521321 is a reply to message #499637] |
Wed, 17 March 2010 05:33  |
Eclipse User |
|
|
|
Hi,
I have additional question here for the OSGi Web Container.
I tried it and saw that the application is loaded from the war file.
But my application uses a functionality (such as getRealPath() etc.) that expects that application is extracted as in the standard Tomcat/Jetty.
Is there some property that I can use in order to force the OSGI Web Container to extract the war file on the file system or the application is loaded always from the archive?
If there is no such functionality, then do you plan to provide such?
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.04995 seconds