First time here? Check out the site's "greatest hits" or read a post from the archives. Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. Thanks for visiting!
« Blogging and Blue Toast | Main | Translator Job Available in Portland: Kl... »

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'.



Comments are closed.

Contact

Sponsors

Hosting By

On this page...

Tags

Calendar

<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

Archives

Google Ads