Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes coarse-grained objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "coarse-grained objects" Watch "coarse-grained objects" New topic
Author

coarse-grained objects

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Could someone please provide a definition/explanation of a coarse-grained object as opposed to a fine-grained one? I have a general understanding of the term, but not enough understanding to be able to explain them myself. Thanks
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Java Tom",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.

This name is obviously a pseudonym, and will be turnd off soon, so please choose a new name immediately.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Tom Obermeyer
Greenhorn

Joined: Mar 16, 2001
Posts: 7
Done.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Many thanks. We do appreciate people sticking to our site guidelines.
Paul Caswell
Greenhorn

Joined: Mar 15, 2001
Posts: 3
Originally posted by Java Tom:
Could someone please provide a definition/explanation of a coarse-grained object as opposed to a fine-grained one? I have a general understanding of the term, but not enough understanding to be able to explain them myself. Thanks

Good question. I am also interested in any consensus on the answer.
I will share my current understanding and my personal way of explaining this:
Fine-grained objects are building blocks which traditionally we programmers have glued together at compile-time. They have visibility to the programmers and these objects can be viewed as 'how' we build a component. (in C++ I used to say that they disappeared at compile time - not quite true in Java).
Course-grained objects (e.g. components, applications, libraries) are constructed from many fine-grained objects. These course-grained objects are more commonly glued together at run-time (late-binding). They are often the output of a development process not the input. They have system level visibility, well defined interfaces and can be considered a unit of delivery/deployment. From programmers perspective they can be viewed as �what� is being developed vs �how�.

Communicate<BR>Architect<BR>Simplify
Tom Obermeyer
Greenhorn

Joined: Mar 16, 2001
Posts: 7
Thanks Paul. I left my question broad, but I was really pondering the incorporation of the concept of coarse-grained objects with regards to Enterprise JavaBeans design and development. How would you go about developing coarse-grained EJBs from object models that model "fine-grained" objects? It seems like a coarse-grained object would have the properties and behaviors of several objects in the model. At what point would your EJB be to "coarse?"
 
Don't get me started about those stupid light bulbs.
 
subject: coarse-grained objects
 
Similar Threads
Coarse grained v/s fine-grained objects
FineGrained Objects vs Coarse Grained Object
coarse grained & fine grained
fine-grained and coarse grained
coarse grained and fine grained