THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Let's run the consumer in Equinox, so that we have the bundles running in Equinox talking to a remoted service running in Felix!
As with Felix, we will have to load the bundle with the OSGi compendium interfaces. There's one that ships with Equinox.
Code Block |
---|
/eclipse> java -jar plugins/org.eclipse.osgi_3.56.0.v20090520v20100517.jar -configuration conf -console osgi> install install file:plugins/org.eclipse.osgi.services_3.2.0100.v20090520-1800v20100503.jar Bundle id is 1 osgi> start 1 osgi> install http://www.apache.org/dist/cxf/dosgi/1.1/cxf-dosgi-ri-singlebundle-distribution-1.1.jar Bundle id is 2 osgi> start 2 ... some log messages may appear... |
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 http://repo1.maven.org/maven2/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-greeter-interface/1.1/cxf-dosgi-ri-samples-greeter-interface-1.1.jar Bundle id is 3 osgi> install http://repo1.maven.org/maven2/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-greeter-client/1.1/cxf-dosgi-ri-samples-greeter-client-1.1.jar Bundle id is 4 osgi> ss Framework is launched. id State Bundle 0 ACTIVE org.eclipse.osgi_3.56.0.v20081201-1815v20100517 1 ACTIVERESOLVED org.eclipse.osgi.services_3.2.0100.v20081205-1800v20100503 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 |
...