...
Note |
---|
This plugin is only experimental and hasn't been released yet. It is not ready to be used in production applications. |
Demo
This simple demo contains an empty web application and a bundle jar with 2 actions that use FreeMarker, Velocity and Spring. To use it install the war file struts2-osgi-demo-1.0-SNAPSHOT.war in your server and navigate to: http://localhost/struts2-osgi-demo-1.0-SNAPSHOT/.
The Struts 2 OSGi plugin
Excerpt |
---|
leverages OSGi to allow Struts 2 applications to be divided into multiple jars (bundles) and managed at runtime |
The demo is available here
Features
- GUI for bundle administration
- Web access to Felix Shell
- Application packages can be divided into bundles
- Supports Velocity and FreeMarker templates
- Supports Struts Spring integration
- Supports integration with the Convention plugin
...
- Probably can't access application classes from bundles, including Spring classes
About Run levels
Application bundles should go under /WEB-INF/classes/bundles
. Bundles in this dir will be started in run level 2, the Apache Felix framework's bundles will be loaded in run level 1. Any other bundle under /WEB-INF/classes/bundles/other
will be started in run level 3.
Simple Usage
Add these lines to MANIFEST.MF:
...