I checked in a java webservice example, it uses plain servlet:

http://svn.apache.org/viewvc/incubator/devicemap/trunk/examples/servlet/


Its running here:

http://devicemap-vm.apache.org/dmap-servlet/


direct call:

http://devicemap-vm.apache.org/dmap-servlet/classify


Im going to do a Spring example too, probably over the weekend. It will pretty 
much be the same, except it will use a Spring controller. Also, this example 
uses the 1.1 version of the dmap java client. The toString() method of the v1.1 
Device object outputs valid json, so its easier to work with than having to 
manually generate this json.

I need to add an init.d script to tomcat, if the vm restarts, tomcat wont 
start, this is probably why the service keeps on disappearing in the past.

Reply via email to