A couple people have commented in this blog that it would be good to have a version of the sample code from my book that runs on Tomcat. I agree that its a good idea. It shouldn’t be very difficult, since most of the code does not require all of Java EE 5, but only JAX-WS, JAXB, JSR-109 and JSR-181. And the JAX-WS RI runs on Tomcat (see instructions here). Probably, only the JSR-109 specific deployment stuff (e.g., stateless session bean deployment) would not move over.
One idea that I am considering is to put the book code on SourceForge under SVN and then readers who are interested in Tomcat could work with me on porting the code and junits over to Tomcat/JAX-WS. Similarly, if others got interested in doing the same thing for BEA, IBM WebSphere, JBoss, etc. these platforms could be handled as forks from the initial code base. Each port would be fairly straightforward, but there will be some minor wrinkles for each platform.
If you have any comments about this approach, please let me know.
P.S. GlassFish is great by the way and I still think everyone should give it a try