| Running Axis2 in OSGi Environments |
|
| Written by Valery Abu-Eid | |
| Thursday, 04 September 2008 19:48 | |
|
Currently there is ongoing work in the Axis2 project to make Axis2 engine not only compatible with OSGi but also take all the advantages that OSGi infrastructure provides so developers could deploy Web Services and Modules in bundles. This link is the first and currently the only resource that provides information on how to run Axis2 in an OSGi Environment. Below are the main problems I had while running the example:
Going through this, I decided to make an application that would allow me run Axis2 in an OSGi Environment within few seconds - It's just I'm pretty sure that I'm not the only one who have such problem. It took me much more time to create the application rather to follow the example provided in the link above because I wanted the application to be runnable on Equinox and Felix in the Java Environments JRE and JDK versions 1.5 and 1.6. The application can be downloaded from the link below: axis2-osgi-example.zip
You can run the application by executing either the batch or the script file in the "/axis2-osgi/bin" directory or by executing the following command from the "/axis2-osgi" directory:
The example application already has one Web Service "Version Web Service" whose WSDL is accessible from "http://localhost:8080/services/Version?wsdl". The application also contains a Web Admin interface which is accessible from "http://localhost:8080/system/console/list". If you would like to change the port then make sure to check the readme.txt file in example's archive. Below are key implementation issues:
Unfortunately, the application is not runnable from Knopflerfish due to some problems that I hadn't enough time to investigate. If you need to run JAX-WS RI dynamically in OSGi Environments then you can check the Dynamic-WS project. |