THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
NOTE: this demo requires CXF/DOSGi 1.1-SNAPSHOT
The Greeter demo design
The demo is composed of 3 bundles:
...
Code Block |
---|
C:\felix-1.8.0>java -jar bin\felix.jar Welcome to Felix. ================= -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle (1.8.0) [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0) [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0) [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0) -> start http://repo2repo1.maven.org/maven2/org/osgi/org.osgi.compendium/4.12.0/org.osgi.compendium-4.12.0.jar -> start httpshttp://repositoryrepo1.apachemaven.org/contentmaven2/groups/snapshots/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.1-SNAPSHOT/cxf-dosgi-ri-singlebundle-distribution-1.1-SNAPSHOT.jar |
Some log messages may come up now.
Now let's start up the server-side greeter bundles. Like with the DOSGi bundle itself, I'm installing these straight from the Maven release repository.
Code Block |
---|
-> start httpshttp://repositoryrepo1.apachemaven.org/contentmaven2/groups/snapshots/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-greeter-interface/1.1-SNAPSHOT/cxf-dosgi-ri-samples-greeter-interface-1.1-SNAPSHOT.jar -> start httpshttp://repositoryrepo1.apachemaven.org/content/groups/snapshotsmaven2/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-greeter-impl/1.1-SNAPSHOT/cxf-dosgi-ri-samples-greeter-impl-1.1-SNAPSHOT.jar -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle (1.8.0) [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0) [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0) [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0) [ 4] [Active ] [ 1] OSGi R4 Compendium Bundle (4.1.0) [ 5] [Active ] [ 1] Distributed OSGi Distribution Software Single-Bundle Distribution [ 6] [Active ] [ 1] CXF Distributed OSGi Greeter Demo Interface Bundle [ 7] [Active ] [ 1] CXF Distributed OSGi Greeter Demo Service Implementation Bundle |
...
Code Block |
---|
java -jar plugins/org.eclipse.osgi_3.5.0.v20090520.jar -configuration conf -console osgi> install file:plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar Bundle id is 1 osgi> start 1 osgi> install httpshttp://repositoryrepo1.apachemaven.org/content/groups/snapshotsmaven2/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.1-SNAPSHOT/cxf-dosgi-ri-singlebundle-distribution-1.1-SNAPSHOT.jar Bundle id is 2 osgi> start 2 |
Some logging messages may appear. You can also automatically load the DOSGi bundles by appending the target/equinox.config.ini.append to you equinox config.ini file.
Code Block |
---|
osgi> install httpshttp://repositoryrepo1.apachemaven.org/content/groupsmaven2/snapshots/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-greeter-interface/1.1-SNAPSHOT/cxf-dosgi-ri-samples-greeter-interface-1.1-SNAPSHOT.jar Bundle id is 3 osgi> install httpshttp://repositoryrepo1.apachemaven.org/contentmaven2/groups/snapshots/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-greeter-client/1.1-SNAPSHOT/cxf-dosgi-ri-samples-greeter-client-1.1-SNAPSHOT.jar Bundle id is 4 osgi> ss Framework is launched. id State Bundle 0 ACTIVE org.eclipse.osgi_3.5.0.v20081201-1815 1 ACTIVE org.eclipse.osgi.services_3.2.0.v20081205-1800 2 ACTIVE cxf-dosgi-ri-singlebundle-distribution 3 INSTALLED cxf-dosgi-ri-samples-greeter-interface 4 INSTALLED cxf-dosgi-ri-samples-greeter-client osgi> start 4 |
...