...
To install or transform ServiceMix as a Web Application Server, you can use the "web" and "web-core" feature (available under ServiceMix 4) or install the following bundles manually :
- OPS4J Pax Web - Web Container (0.5.2)
- OPS4J Pax Web - Jsp Support (0.5.2)
- OPS4J Pax Web Extender - WAR (0.5.0)
- OPS4J Pax Web Extender - Whiteboard (0.5.0)
- OPS4J Pax Url - war:, war-i: (0.3.3)
- Apache ServiceMix Bundles: jetty-6.1.14 (6.1.14.1)
The Web Application Server becomes available at the url http://localhost:8080.
Evidently, no jsp pages, servlets are available. Don't worry, to deploy a WAR, you only have to copy it to the deploy directory of ServiceMix and it will convert be converted as a bundle
...
By example, you can install a simple Hello World war using the command
install war:file:///d:/temp/sample.war?Webapp-Context=sample
remarks :
...
- must be changed according to the location of your war
- The parameter WebApp-Context is added to have a nicer web address
and see the result at the address : http://localhost:8080/sample/index.html
Yes, this looks beautiful but the web port number is 8080, my boss would like to secure the web site, change the session timeout, ....
...
You restart Servicemix and now the web site is available at the following address :