Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Virgo/Future"

m (Adding content on Snaps)
(Virgo Plan)
Line 5: Line 5:
 
The following plan is subject to change and depends on how much resource is available as the project evolves.  
 
The following plan is subject to change and depends on how much resource is available as the project evolves.  
  
== 2.2.0 Release  ==
+
== 3.0.0 Release  ==
  
 
Theme: Eclipse RT integration  
 
Theme: Eclipse RT integration  
Line 17: Line 17:
 
*Use Equinox log service instead of that of Felix ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=310218 bug 310218])  
 
*Use Equinox log service instead of that of Felix ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=310218 bug 310218])  
 
*Use Equinox event admin instead of that of Felix ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=310219 bug 310219])  
 
*Use Equinox event admin instead of that of Felix ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=310219 bug 310219])  
*Upgrade Spring to 3.0.4 or later ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=314282 bug 314282])  
+
*Upgrade Spring to 3.0.5 or later ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=314282 bug 314282])  
 +
*p2 repository in the repository chain ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=309778 bug 309778])
 +
*Upgrade from Spring DM to Gemini Blueprint ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=317943 bug 317943])
 +
*Rebase region support on OSGi RFC138
 +
*Admin console administration of remote Virgo instances
 +
*Multiple user regions
 +
*Tomcat 7/servlet 3.0
 
*Critical bug fixes
 
*Critical bug fixes
  
Line 25: Line 31:
  
 
*Integration server  
 
*Integration server  
*Batch server  
+
*Batch server
*p2 repository in the repository chain ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=309778 bug 309778])
+
*Rebase region support on OSGi RFC138
+
*Upgrade from Spring DM to Gemini Blueprint ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=317943 bug 317943])
+
*Admin console administration of remote Virgo instances
+
*Multiple user regions
+
*Tomcat 7/servlet 3.0
+
  
 
= Future Features  =
 
= Future Features  =

Revision as of 07:38, 7 January 2011

This page summarises the Virgo plan and notes design ideas for future Virgo features. 

Virgo Plan

The following plan is subject to change and depends on how much resource is available as the project evolves.

3.0.0 Release

Theme: Eclipse RT integration

Schedule: June 2011

Content:

  • Jetty support (bug 321726)
  • Use Equinox config admin instead of that of Felix (bug 310217)
  • Use Equinox log service instead of that of Felix (bug 310218)
  • Use Equinox event admin instead of that of Felix (bug 310219)
  • Upgrade Spring to 3.0.5 or later (bug 314282)
  • p2 repository in the repository chain (bug 309778)
  • Upgrade from Spring DM to Gemini Blueprint (bug 317943)
  • Rebase region support on OSGi RFC138
  • Admin console administration of remote Virgo instances
  • Multiple user regions
  • Tomcat 7/servlet 3.0
  • Critical bug fixes

Future Releases

The following features are not currently in plan:

  • Integration server
  • Batch server

Future Features

Jetty Support

This is covered by bug 321726.

Work has started and is progressing well, there is a new GIT repo that produces a full Virgo build but based on Jetty instead of Gemini Web on top of the Virgo Kernel. The Splash screen application is working. The next step is to add JSTL and Security support for the Admin application. Further work is also required to the build to support Windows and a general tidy up. The Virgo-Jetty repo can be found listed on the source tab.

Ideally this will allow arbitrary versions of Jetty to be swapped in. We need to make sure that any Jetty APIs we use are stable (will continue to work as Jetty evolves).

Bootstrapping Jetty

Jetty already supports bootstrapping inside OSGi. The Jetty bootstrapping bundle 'org.eclipse.jetty.osgi.boot' can easily be included in the list of initial artifacts automatically deployed into the user region during Virgo startup.

Deploying Web Bundles

Jetty already supports deployment of OSGi web applications.

After Jetty is bootstrapped in the OSGi framework, web bundles may be deployed directly to Jetty using the whiteboard pattern.

A ContextHandler service must be registered with appropriate service properties. Presumably the bundle registering the service is the web bundle itself, although this is not clear from the Jetty documentation above which refers to the registering bundle as a 'contributor'. It is not clear whether the contributor is a bundle which is contributing some other web bundle or whether the contributor is the web bundle itself (in which case why should it be called 'contributor'?).

Assuming that the contributor is the web bundle itself, Virgo will need to create a ContextHandler service each time a web bundle starts.

If deployment of the web application fails, the failure must be reported back on the thread which initiated deployment. A problem with the whiteboard pattern is that errors are not easily detected. Perhaps Jetty provides some way to listen for successful or failed deployment of a particular web bundle?

Deploying WAR Files

Jetty supports deploying WAR files by installing the WAR file as a bundle using the "war:" URL scheme. However, Virgo supports deploying WAR files via all its standard deployment mechanisms which ultimately drive the deployer API. We could either drive installation using the "war:" scheme or, for consistency with Virgo's existing support for WARs including the way errors are detected and handled, we could continue to transform WARs into web bundles using the transformation support in Gemini Web or similar.

Class Loading

Need to ensure correct class loading and resource lookup in the single bundle case as well as the case of a web bundle inside a scoped plan.

Need to support class loader customisation, throw-away class loaders, etc. as in the current Virgo web support.

Logging

Need to ensure Jetty's logs feed in to the appropriate Virgo Medic logs.

Also need to support per-application logging.

Prototypes

Snaps

Snaps is a prototype also from dm Server where it was known as Slices. It aims to give you the full benefit of a dynamic and modular OSGi environment for your web applications by allowing you to spread the front end across many bundles, or Snaps. The Snaps source code is available from one of our Git repos listed on the 'Source' tab. Thanks to Patsy Phelan and Dmitry Sklyut for comments on this content.

A Snap is an OSGi Web Application Bundle that is responsible for handling requests for part of the total application. Requests are served up to each snap depending on what part of the context path the snap has registered to handle. Each Snap will be given requests by a host bundle. A Host bundle is also just a normal web application bundle with filter configured to dispatch certain requests to any registered Snaps.

  Snaps.png

The host will handle requests to '/app/*' while '/app/orders' and '/app/billing' will be dispatched to the relevant Snap bundle.

Snaps is different from other technologies such as Web Fragments in that it much more decoupled and takes advantage of OSGi to allow for the dynamic composition of a web app at runtime. The lifecycle of the Snap and the Host is completely decoupled. This is due to the services like approach. Web Fragments are static and much more closely coupled, they share the same classpath and the modularity it offers is only at development time. This extra decoupling means that snaps can be developed in isolation from the host application, even after the host application has be released.

Back to the top