• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between Fine-grained and Coarse-grained entity bean

 
Po-yu Chien
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I`m reading the book "Core J2EE Patterns" and come across the definition of fine and coarse grained entity bean. In general, fine-grained entity bean are considered bad practice; however in documentation of Pramati Server "The promise of perfect persistance from EJB2.0", fine grained entity beans are good.
So, the concept that fine-grained entity bean is bad may be a "EJB1.x only" concept?
 
Randy Coates
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fine-grained entity beans work in 2.0 because of the local interfaces that are available. Interacting with entity beans remotely, though, is best done with course-grained interfaces to reduce the number of network communications.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!