consumerservlet.jar

Description
This bundle provides a org.osgi.service.wireadmin.Consumer to illustrate WireAdmin services (@see chapter 16 in OSGi specification release 3). It updates regulary java.lang.String objects on connected wires
For more details on how to use this bundle, refer to the /doc/readme.html file embedded in the bundle jarfile.

Contributors
Didier Donsez (Didier.Donsez@ieee.org)

License
LGPL

Services
org.osgi.service.wireadmin.Consumer

Properties

Requirements


Download

Build

  1. configure the build properties in build.xml
  2. then build with ant

Usage
install and start the dependencies

obr -s Http Service
obr -s Service Binder
start http://www-adele.imag.fr/~donsez/dev/osgi/osgi3spec/osgi3spec.jar
start http://www-adele.imag.fr/~donsez/dev/osgi/consumerservlet/consumerservlet.jar
OK, now you can check available producers and create wires between the servlet and them
start http://www-adele.imag.fr/~donsez/dev/osgi/wireadmincmd/wireadmincmd.jar
start http://www-adele.imag.fr/~donsez/dev/osgi/wireadmin/wireadmin.jar
wa
wa -lp
wa -lc
Create wires between the servlet and them
start http://www-adele.imag.fr/~donsez/dev/osgi/dateproducer/dateproducer.jar	
wa -c fr.imag.adele.osgi.util.clock fr.imag.adele.osgi.util.consumerservlet
wa -w

Those commands create the following architecture:
Wire Admin application architecture
Then browse this URL http://localhost/wa/poll?css=style.css
You should see the following document:
Wire Admin Customer Servlet snapshop

For a more complex demo, follows the instruction of the WebCam Producer demo

Servlet parameters

Tested gateways

TODO (contributions are welcome)