I'm developing a web service which will be exposed to our vendors. This web service gets requests from vendors and saves them in a database.
To develop it I'm creating three projects in Eclipse:
Now my question is, should I create a JPA project for the entities or should I create those entities in the EJB Project? These entities will be used by service classes in the EJB Project.
May be you need create new project as "EJB-api" ("EJB-client") and apply Transfer Object Pattern ( link ). Then
EJB Project: DAO impl, BL impl, entities
EJB-client(as jar library): DAO api, BL api, transfer objcets
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.