This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Composite Entity and EJB 2.0  RSS feed

 
Jacek Ostrowski
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers

Composite Entity lost some of its advantages when EJB 2.0 was introduced.
Sun now recommends to implement it with local CMP entity beans.
OK, this makes perfect sense.

My question is: what is the purpose of this pattern now ?
A) to manage (create/delete) dependent object from composite object
B) to hide dependent object from other components thus making composite object act as "facade"

I thought that answer is B, but i found that in Pet Store composite object has getters for dependent objects local interfaces, so it can't be B.

What do you think ?

Jacek
 
Jacek Ostrowski
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is my question too dumb or too tough for you ?

Please help me here.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!