Java Reference
In-Depth Information
spring/org.osgi.core-4.0.jar@start,
spring/org.springframework.aop-2.5.6.A.jar@start,
spring/org.springframework.beans-2.5.6.A.jar@start,
spring/org.springframework.context-2.5.6.A.jar@start,
spring/org.springframework.core-2.5.6.A.jar@start,
spring/org.springframework.osgi.core-1.1.3.RELEASE.jar@start,
spring/org.springframework.osgi.extender-1.1.3.RELEASE.jar@start,
spring/org.springframework.osgi.io-1.1.3.RELEASE.jar@start
eclipse.ignoreApp=true
These declarations tell Equinox to load and start the jars at launch time. I put the jars in a folder
called spring , which itself is located under the eclipse/plugins folder.
We have one last thing to do to see it all working. We need to install and start the client. There is no
change in this process from before. We repeat it here for clarity. Run the Equinox console:
java -jar eclipse/plugins/org.eclipse.osgi_YOUR_VERSION.jar -console
Then, install and start the client:
install file:/path/to/your/client/jar.jar
start 12
If everything goes to plan, you should see the application contexts recognized by Spring and you
should, towards the end of the output, see the output from the invocation of the service.
…terService,org.springframework.context.annotation.internalAutowiredAnnotationPro…
equiredAnnotationProcessor,springDMGreeterClient]; root of factory hierarchy
Bonjour, Mario
Bonjour, Fumiko
Bonjour, Makani
May 25, 2009 11:26:04 PM org.springframework.osgi.context.support.AbstractOsgiBu…
INFO: Publishing application context as OSGi service with properties {org.spring…
iserecipes.springdmhelloworld, Bundle-SymbolicName=com.apress.springenterprisere…
12-3. How do I Export a Service Using Spring Dynamic Modules?
Problem
You want to create services and have those automatically installed in the registry, as we did in the first
recipe, available for other services to depend on. This process is different because we will no longer
register the services in Java code, and instead will let Spring export the service on our behalf.
 
Search WWH ::




Custom Search