• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Detached Entities in the Web Layer

 
Billy Vandory
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We load balance multiple Tomcat+Apache servers on the frontend which runs the web servers, and the web layer makes requests to clustered geronimo servers in another, more secure zone. So all my calls to the persistence layer are via remote lookups. Also, we have terminals that also access the same persistence layer, so we're ***not allowed*** to use JPA at all in the web layer. (except for detached entities as read-only)

We would like to pass detached entities into the web layer, and I've been after doing this for a while now, but the problem is, to do this, we need to include the persistence/ejb jar file in the web war (to have access to the entity beans), and it ends up deploying all the hibernate jars in web-inf/lib, which is a real pain for development deployment (as its so slow)

so right now, dev-team concensus is to use DTO's instead, but that sucks too... I hate being forced to using DTO's just because the deployment is slow, that's ridiculous..

Anyone have a workaround to this? I just want to read the JPA entities in the web layer, all the JPA calls are made in the persistence layer, behind the session facades...



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic