I want to create a spring-ws web service that eventually marshals a POJO into xml. I'd also like the clients of the web service to unmarshal the xml back into the POJO. How should I structure the projects?
Currently my thinking is:
The problem I have with this design is that project 3 depends on project 1 for the domain model, but as a result of this, depends on the mainframe libraries. This contradicts my main reason for creating a web service in the first place which was to loosely couple the code.. the flip side is to split out the domain model from the business logic into separate projects but this seems a little extreme..
I prefer to separate my projects as well. Can you separate your domain model POJOs from the business layer into another project so that they can be shared by the client?