Currently we are developing an application for service oriented development which is a college signature, the professor created two applications one for backend and other for front. We are using maven, hibernate and JPA. He has proposed a the following package distribution:
However I want to simplify the distribution and reduce code, so, I proposed the following distribution:
The difference here is that He exposes reused services inside wrapper classes receiving parameters. I do not expose them, I use a façade to call those when some operation is requested so that the façades receive only frontend parameters.
Are these two distributions valid SOA package distributions ?
Is necessary to have a DAO package ?
Now, I'm new to services, I don't know if these two are valid SOAs so that this is my intent when asking. We are working with SOAP but I don't know at which extent does SOAP or JSON determines if a project is service oriented.
Basically this question can be reinterpreted as: Which elements makes a SOA an actual SOA, based on that does these two projects are service oriented developments?
Note 1: My service package implements the
Transactional<T> interface which I created. What does it contains?
findAll which are basically providing a CRUD for the database.
This interface is implemented once in an
AbstractService I defined and also my beans implement such interface.
Note 2: Before you could say, use Spring,
CrudRepository or an archetype from maven, the professor requested to do all using Java EE 7, hibernate, SOAP and nothing more. (all by hand)
Finally, thank you before hand.