Hi.

The world IS getting simpler :) The other day I figured out how to get the stand alone version of the Web Service magic in the Sun JEE 5 server ("Glassfish") to work in both Jetty 6 and Tomcat 6 as hinted in the documentation at https://metro.dev.java.net/1.4/.
The whole idea is that you annotate your Java class according to JSR-109 resulting in a class that looks like:

=====
@javax.jws.WebService
public class Ping {

@javax.jws.WebMethod(action = "doPing")
public String doPing() {
return "pong";
}
}
=======

The above is valid code under Java 6!

Create a WAR file with the Java class compiled to 1.5 bytecode, and a few annotations in the web.xml file plus a sun-jaxws.xml file providing a mapping between URL's and code. Put the four runtime classes of Metro in the classpath of the web container and start it with the IBM Classic JVM (version 5), and deploy the War file to the web container. That's it :)
I am still getting acquainted with the software, but thought that it might be interesting to the list.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.