EJB design: Coarse-grained and Fine-grained objects ???
can anybody please tell me what exectly mean by coarse grained and fine grained objects or EJBs??
- Posted by: Java EJB
- Posted on: March 21 2001 03:49 EST
- Coarse-grained and Fine-grained objects ??? by Mark McMillan on March 21 2001 16:35 EST
- Coarse-grained and Fine-grained objects ??? by Tim Langlois on March 23 2001 09:41 EST
- http://en.wikipedia.org/wiki/Fine_grained by Rohit Singh on April 01 2009 02:05 EDT
Coarse-grained: A few ojects hold a lot of related data. Example: A single "Account" object holds the customer name, address, account balance, opening date, last change date, etc.
Fine-grained: More objects each holding less data. Example: An Account object holds balance, a Customer object holds name and address, a AccountOpenings object holds opening date, etc. There are relationships defined between these objects.
Best defination http://en.wikipedia.org/wiki/Fine_grained
The choice between using Coarse-grained and Fine-grained objects may become an issue when defining EJB interfaces. Fine-grained interfaces work better in a typical OO design; however, coarse-grained interfaces are often utilized to reduce network "chatter".
best difination http://en.wikipedia.org/wiki/Fine_grained