|
|
Re: Equinox and Jetty Server [message #111044 is a reply to message #111019] |
Fri, 30 May 2008 09:05 |
Kees Pieters Messages: 24 Registered: July 2009 |
Junior Member |
|
|
Hi Simon,
Thanks for the answer. I have been looking at some options, and there seem to be some openings. I could offer the server as an equinox service to the other plugins, which would (maybe, I still have to try this) allow me to at least add the resources of the other plugins (jsp, html, etc). However, I then still need a way to add the servlets. Do you happen to know if the addClasspath method of HttpContext might be of help?
I know that it is possible to use the extensions to achieve the same functionality, but it would be nice to package the entire WAR as a resource, or at least that the web.xml provided by a plugin could be included in the server.
Any ideas?
Thanks
Kees
|
|
|
Re: Equinox and Jetty Server [message #111081 is a reply to message #111044] |
Fri, 30 May 2008 18:15 |
Richard Backhouse Messages: 19 Registered: July 2009 |
Junior Member |
|
|
We had a similar requirement to what you describe while developing Jazz
(http://jazz.net). Our solution was to create a bootstrap bundle that
setup a Jetty Server instance along with an extension point for
providing Web Application contexts. Each context provided its own copy
of a web.xml along with the context root to use. A Web Context bundle
can share classes and resources just by providing the necessary package
imports in its Manifest.
The trick to all of this is the classloader used by the HttpContext
object passed to the server via the addContext() call. This classloaded
must be able to load classes (or delegate) from the Jetty Bundle and
also from the bundle representing the Web Context.
Richard
Kees Pieters wrote:
> Hi Simon,
>
> Thanks for the answer. I have been looking at some options, and there seem to be some openings. I could offer the server as an equinox service to the other plugins, which would (maybe, I still have to try this) allow me to at least add the resources of the other plugins (jsp, html, etc). However, I then still need a way to add the servlets. Do you happen to know if the addClasspath method of HttpContext might be of help?
> I know that it is possible to use the extensions to achieve the same functionality, but it would be nice to package the entire WAR as a resource, or at least that the web.xml provided by a plugin could be included in the server.
>
> Any ideas?
>
> Thanks
>
> Kees
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds