Having this class:
public class Class1 implements Serializable
{
public final static String VALUE = "oneValue";
}
This class would be used in a Webservice.
In the webservice client I would like to:
String value = Class1.VALUE
Is there a way to serialize such public final static String so I can get the value in the webservice client?
I am using Axis2.
It is a class-level field, so the answer is no. If client code has different version of the class that has different value in given static field that is what they are going to get.