The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer.
 Saturday, May 10, 2003
Tomato, Tomato, [WebMethod], @Remote, Kosher, Halaal, them's good eatin'.

Would it have killed them to just call it [WebMethod]?

In Java 2, Version 1.5 (I don't understand the versioning either) attributes look like this:

import javax.xml.rpc.*; 
public class CoffeeOrder
{
@Remote public Coffee [] getPriceList() { ... }
@Remote public String orderCoffee(String name, int quantity) { ... }
}

which is equivalent to this:

public interface CoffeeOrderIF extends java.rmi.Remote 
{
public Coffee [] getPriceList() throws java.rmi.RemoteException;
public String orderCoffee(String name, int quantity) throws java.rmi.RemoteException;
}

public class CoffeeOrderImpl implements CoffeeOrderIF
{
public Coffee [] getPriceList() { ... }
public String orderCoffee(String name, int quantity) { ... }
}

It's good to see Java catching up linguisticly. 

I've mentioned my aversion to language arguments before using the oft-heard extended "religion" analogy.  Far from being a religious zealot (though I have been known to genuflect at the site of the occasional semi-colon) I am neither agnostic nor atheist...I consider myself a staunch apathist in these matters.

I say it, [WebMethod], @Remote, call it Kosher, call it Halaal, I call it good eatin'.


Updated Link to this post 12:18:40 AM  #    comment []  trackback []