Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fine-grained and coarse grained

 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the meaning of fine-grained and coarse-grained in terms of EJB ?
 
Skip Cole
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The amount of detail accessible and needed to do something.
For example, When picard says "Go to Rigelan 4", that is course grained control.
If he said, "turn the ship 195 degrees port, lift 15 degrees, begin accelarating at 200 g forces, achieve a velocity of warp 7, begin decreasing velocity when we are withing 1 light year, ..." and so on, that would be fine-grained control.
Course gained control from the client side decreases network traffic, and is a good thing. The client side app generally doesn't care how things get done, but just that they get done.
Skip
 
Avijeet Dash
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
important type of objects
coarse-grained:
objects with some methods involving business logic.

fine-granied:
objects with only set/get methods.

dependent:
objects that make sense only in a context.

immutable:
objects with only get methods.
some important design strategies.
1. entity beans sould be corase-grained.
2. dependent objects can be used as attributes in their top-level classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic