java - Design pattern for modular application (how to reuse entities) -


i have following scenario:

  1. a jax-rs webservice responsable business logic , database interactions.
  2. a webapp used end users.
  3. a webapp used administrators.

my problem want reuse entities webservice on other apps, highly wrapped frameworks jpa, jax-rs, cdi, among others... having hard time isolate them. want know best workaround , why should use instead of others.

maybe dto way go (with support object mapper library dozer)

please take @ following article more details: http://zezutom.blogspot.com/2012/02/thoughts-on-data-transfer-objects.html


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -