× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I find it amazing what annotations have done the the Java EE landscape. We are getting into EJB in a big way, something that would have been inconceivable bfore the annotations based EJB 3.

Brian

Thorbjørn Ravn Andersen wrote:
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:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.