====== RCP Jetty ======
RCP - RESTFUL
* http://blog.firdau.si/2009/11/06/embedding-jetty-server-in-eclipse-rcp/
* http://www.eclipse.org/libra/
* http://eclipsesource.com/blogs/2014/02/04/step-by-step-how-to-bring-jax-rs-and-osgi-together/
===== Embedded Jetty in RCP =====
* http://stackoverflow.com/questions/16668462/embedded-jetty-in-eclipse-rcp
* http://stackoverflow.com/questions/11285588/eclipse-rcp-plugin-embedded-jetty-jsf
* http://www.eclipse.org/equinox/server/
Other sources:
* https://www.eclipsecon.org/2005/presentations/EclipseCon2005_Tutorial8.pdf
If error permission denied when starting jetty:
The solution is to apply this JVM argument on the arguments tab:
-Dorg.osgi.service.http.port=8888 OR
-Dorg.eclipse.equinox.http.jetty.http.port=8888
===== Embedded Jetty tutorial =====
There is existing RCP plugin project.
Additional projects:
* Create feature with all jetty plugin required
Configure dependencies of existing projects.
* Add the feature to product's feature list
* Add plugins to dependencies list of RCP plugin
* org.eclipse.equinox.http.jetty
* org.eclipse.equinox.http.registry
* org.eclipse.jetty.server
* javax.servlet
Add Jetty server code:
* Code to Start jetty server in Activation class
Create Main servlet handler: de.dailab.acs.attack.gui.web.ServletMain
* Add extension point for servlet handler.
* Open RCP MANIFEST, extensions tab
* add extension points: org.eclipse.equinox.http.registry.servlet
* class: de.dailab.acs.attack.gui.web.ServletMain
* alias: /main
Now start the plugin and open http://localhost:8888/main
* Note: no vm argument added so far
--Dorg.eclipse.equinox.http.jetty.http.port=8888
* Use common code and develop web app.
More about jetty:
* http://www.eclipse.org/jetty/documentation/current/embedding-jetty.html
*
===== Eclipse html =====
* http://www.ibm.com/developerworks/library/os-eclipse-webui/
==== Headline ====
* http://www.eclipsezone.com/articles/extensions-vs-services/
===== Jax-RS =====
* http://eclipsesource.com/blogs/2012/01/23/an-osgi-jax-rs-connector-part-1-publishing-rest-services/
* http://jersey.576304.n2.nabble.com/Live-registration-of-resources-td6246607.html
* http://www.eclipse.org/equinox/server/
* http://www.eclipse.org/equinox/server/http_writing_application.php