Name | OSGi Plugin | ||
---|---|---|---|
Publisher | Donald Brown Apache Software Foundation | ||
License | Open Source (ASL2) | ||
Version | 0.1-SNAPSHOT | Compatibility | Struts Bundled with Struts from 2.01.9+ 7 on |
Homepage | http://cwiki.apache.org/confluence/display/WW/OSGi+Plugin | Download | SVN
Wiki Markup |
---|
{rate:title=Rating|theme=dynamic} |
Overview
...
This plugin
...
The Struts 2 OSGi plugin
Excerpt |
---|
leverages OSGi to allow Struts 2 applications to be divided into multiple jars (bundles) and managed at runtime |
Features
- Application packages can be divided into bundles
- Supports Velocity templates
Missing Features
- No GUI for bundle administration
- Probably can't access application classes from bundles, including Spring classes
- No support for any results other than Velocity
Usage
To convert your jar that contains Actions, Velocity files, and a struts.xml
file into a bundle, add a few lines in the jar's manifest.mf:
No Format |
---|
Bundle-Activator: org.apache.struts2.osgi.StrutsActivator
Export-Package: com.mycompany.myapp.actions
Bundle-Version: 1.0.0
Bundle-SymbolicName: foo.actions
|
Now the jar is ready to be deployed. Drop the jar into the /WEB-INF/classes/bundles
directory and it will automatically be installed when the application starts up.
Example
Here is how an example architecture would look:
Gallery |
---|
Settings
The following settings can be customized. See the developer guide.
Setting | Description | Default | Possible Values |
---|---|---|---|
| The alias of the ObjectFactory to wrap |
| Any configured alias |
Installation
This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib
directory. No other files need to be copied or created.
Resources
Version History
Excerpt |
---|
provides support for starting an instance of Apache Felix inside a web application, and scanning installed bundles for Struts configuration |
...
Version
...
Date
...
Author
...