Make JAXWS-based webservice implement interface and unmarshall to known POJOs
- by John K
Given a Java SE 6 client, I would like to provide a configurable back-end: either directly to a database or through a web service which connects to a centralized DB. To that end, I've created some JPA- and JAXB-annotated entity classes and a DAO interface in a POJO library like the following:
public interface MyDaoInterface {
public MyEntity…