We have a requirement to format the date fields differently during XML returned from jax-rs webservice.
ex.
Class Dates {
Date date1; //in xml this date must be in format dd-mon-yyyy
Date date2; // in xml this date must be in format dd-mm-yyyy hh:ss sss
}
we tried XMLAdapter but we are not able to identify if it is for field date1 or date2
please advise. if there are any other filters or events I can use