Wiki Markup |
---|
{scrollbar} |
Anchor | ||||
---|---|---|---|---|
|
Introduction
In a previous post, I have explained how you can transform ServiceMix 4 as a Web Application Server. In this new post, I will show you How you can combine the power of Apache Wicket and Spring OSGI services together on ServiceMix 4 with the help of PAX Web.
This mix can be achieved very easily. Only a few steps are required.
Create projects
1) Create a maven project where you will design your spring service and expose it as an OSGI service according to the Spring documentation.
...
@SpringBean
private IncidentService incidentService;
Generate bundles and deploy
5) Now generate the bundles (JAR/WAR) and deploy them top of SMX4. Before to deploy the war containing the web project, verify that the following bundles are deployed on SMX4 :
...
- Apache ServiceMix Bundles: jetty-6.1.14 (6.1.14.1)
A tutorial will be published soon with material and step by step.
Remarks :
- PAX-runner can be used as running environment (instead of Servicemix) with Equinox, Felix, ...
- Many thanks to Alin Dreghiciu (PAX project) for its help/support