简体   繁体   中英

Java EE Application in Eclipse

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:

  • Enterprise Application Project
  • Webservice Project
  • EJB Project

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM