Has anybody made any experinece or even come up with a solution to implementing the Composite Pattern using EJB's?! We have to model a Catalog, that consists of Categories an Products - Categories can contain Products and other Categories - so using Composite is obvious, although I don't have the slightest Idea how to map this Pattern to EJB's. Anybody else having an idea?!
COMPOSITE AS IN MULTI TABLES
PLEASE CORRECT IF I GOT IT WRONG.
Check the design pattern java companion by james w cooper
for an example.
Yes, nice link: cooper has all the things I would want to see in the next edition of Design Patterns: However, the book lacks an example using ejb's - I don't think, that implementing the pattern using Ejb's will be all trivial (Just look at the Implementation of the Observer-pattern) - but i Think i will know more next week (just have to try if it maps simple or complicated...)