modular application on Eclipse Virgo
We are looking for suitable technologies for our new project - modular web platform.
Because we like Vaadin and OSGi, we did some research and look ups for technologies based on these frameworks.
We have found two nice things on the internet:
- Eclipse Virgo - OSGi application server
- Vaadin dynamic modular application
I decided to do some modifications for our project purposes:
- Maven based project
- Eclipse Virgo development and deployment ready
- Get rid of HttpService, use standard WAB (web application bundle)
- Get rid of Declarative services use Gemini blueprint
>> Download example com.siemens.ct.osgi.vaadin.pm.zip <<
Guide 1 - simple deploy
- Download eclipse virgo with jetty 3.6.2 - http://www.eclipse.org/downloads/download.php?file=/virgo/release/VP/3.6.2.RELEASE/virgo-jetty-server-3.6.2.RELEASE.zip
- Unzip virgo.
- Download com.siemens.ct.osgi.vaadin.pm.zip
- unzip
- mvn clean install (in <sample_dir>)
- Start virgo via <virgo_dir>\bin\startup.bat (wait till virgo is ready)
- Copy into <virgo_dir>\pickup those files (KEEP ORDER!!!)
- <sample_dir>\vaadin-6.7.6.jar
- <sample_dir>\main\target\com.siemens.ct.osgi.vaadin.pm.main-1.0.0-SNAPSHOT.jar
- <sample_dir>\printaction\target\com.siemens.ct.osgi.vaadin.pm.printaction-1.0.0.qualifier.jar
- <sample_dir>\runoaction\target\com.siemens.ct.osgi.vaadin.pm.runoaction-1.0.0.qualifier.jar
- <sample_dir>\bundleview\target\com.siemens.ct.osgi.vaadin.pm.bundleview-1.0.0.qualifier.jar
- open url http://localhost:8080/producer/main
- Enjoy
Guide 2 - Eclipse tool
- Download eclipse virgo with jetty 3.6.2 - http://www.eclipse.org/downloads/download.php?file=/virgo/release/VP/3.6.2.RELEASE/virgo-jetty-server-3.6.2.RELEASE.zip
- Unzip virgo.
- Download com.siemens.ct.osgi.vaadin.pm.zip
- mvn clean install in <sample_dir>
- Copy into <virgo_dir>\repository\usr file <sample_dir>\vaadin-6.7.6.jar
- Start Eclipse (Kepler), install Virgo Eclipse Tool according to http://wiki.eclipse.org/Virgo/Tooling
- Import via "Existing maven project" projects from directory <sample_dir>. Use project template "groupId"."artefactId"
- Add Virgo Nature to imported projects (except project com.siemens.ct.osgi.vaadin.pm)
- Select projects in "Package Explorer", right click for context menu -> Virgo -> Add bundle project nature.
- Add new server Runtime (Windows -> Preferences -> Server -> Runtime -> Add "EclipseRT\Virgo Runtime". Put <virgo_dir>
- Add new server in "Servers" window ->Create New Server -> "EclipseRT\Virgo Runtime", host name "localhost", select your runtime from step 8 as runtime.
- Next button
- Add application"com.siemens.ct.osgi.vaadin.pm.main" only!.
- Start your server in "Servers" window.
- open url http://localhost:8080/producer/main
- Add other applications (right click on your server in "Servers" window)