public class Pojo {
private String value;
public static void printValue() {
System.out.println("value=" + value);
}
}
I would want to return this from a web service as follows:
@WebService
public class MyService {
@WebMethod
public Pojo getPojo() {
return new Pojo();
}
}
Can't seem to find the definitive answer on whether I can, should, can't, or shouldn't.