Title: Coarse vs Fine Design Question

I'm a relative newbie to J2EE and I'm in the process of developing an application using this technology. My intent, from the beginning, is to apply best practices and Sun's pattern catalog and the excellent Core J2EE Patterns seems to have this pretty much covered.

The problem I'm having is finding simple examples that demonstrate how to apply this stuff. Or put it another way: my brain seems stuffed with theory by I don't know where to start in practice.

What, for example, is the best way to model an invoice where there is a many-to-one relationship of invoice lines to header?

Should I model this as a CMP bean for header, a CMP bean for lines and an Invoice stateless session bean that manages the CMP beans?

Should I model this as a single Invoice BMP bean? This is my interpretation of the Aggregate Entity model pattern. Is my interpretation correct?

Should I carry on reading books for a while longer because these questions get answered by every book on ejb's anyway? :)

Is this the right list to pose questions like this?

Thanks for any help.

Martin

Reply via email to