Home Projects Dynamic-WS Getting Started
Getting Started with Dynamic-WS Print E-mail

If you have a typical Java Web Application and you want to be able to deploy Web Services dynamically but you don't have an OSGi Application embedded in the Web Application, then you need to follow these steps:

  • Download dynamic-ws-1.0.1.war and extract it to the root directory of your Web Application. Just make sure not to overwrite your web.xml file if you need to keep it.
  • If you kept your web.xml then make sure that the contents of the web.xml file in the downloaded archive be copied to your web.xml file.
  • The downloaded web.xml contains one servlet that has the URL pattern “/*” which basically means that it will handle all the requests to the application that are not handled by other services. If this URL pattern doesn't match your need then you need to specify your URL pattern.
  • Deploy the bundles that contain your Web Services by copying them to the “/WEB-INF/da-launcher/bundles/application-bundles” directory. Please make sure to read Web Service Bundles to understand how to develop bundles that contain Web Services.

Now you have an OSGi Environment run inside your application where Web Services can be deployed. All requests to the servlet registered in web.xml will be dispatched amongst the Web Services.

In the future, other cases for getting started with Dynamic-WS will be provided.