On Mon, 14 Feb 2000, Chris Raber wrote:
> There are other issue with CMP as it stands though:
>
> 1. EJB spec says it is not a good idea to have entity beans represent only a
> single rdbms table. Rather it suggests that a bean should be a coarser
> grained object whose sub-objects should be modeled as "dependent objects"
> not full beans. This is because there is a fair amount of over head with
> each bean since they are remotable objects...
>
> 2. However the spec does not define how one can specify the mapping for CMP
> beans that included dependent objects in a vendor neutral way. So by
> definition, any CMP implementation that deals with #1 is proprietary.

There's aother non-proprietary option. The Open Source
simscomputing.Enterprise Tool Kit has a framework for writing "dependent
objects", as Chris describes above. You create BMP beans (instead of using
CMP) but by using the framework, you don't have to write any JDBC code. The SQL
is placed in an external XML file. The bean can be represented by many tables,
not just a single row in a single table. In my experience, it feels a lot like
writing CMP beans in Ejipt (although it wasn't planned that way), and it's fully
portable and non-proprietary.

(and it's entirely possible that some future O/R mapping tool could generate
the XML file too. Anyone want to help? hint. hint. :-)

If you're interested, ETK is at http://www.simscomputing.com/products/etk/

cheers,
david

--
David Sims               [EMAIL PROTECTED]
Sims Computing, Inc.       www.simscomputing.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to