> 1) Who defines dependent *value classes*?  The bean provider or the PM?

The bean provider.

> 2) If the bean provider defines them, then how does the PM know how to
> persist dependent value classes?  You are not defining them in the DD
> (9.4.9).

It doesn't. And it shouldn't: dependent value objects should be
relatively short-lived and only be used for data transfer from
EntityBean to clients/other components. Use dependent objects for the
actual persistent storage.

The ability to store dependent value objects as a CMP field is left for
backwards compatibility with EJB 1.1. IMHO this feature should not be
used by EJB 2.0 CMP Entity Beans.

> 3) Can dependent objects or PM-provided collections be marshaled to clients
> that are also EJB components running within the same container?

According to EJB 2.0 section 9.8.4 PM-provided dependent object
implementations does not have to be serializable, so no. Other
components are seen as just another client, and must be communicated
with through dependent value objects.

> 4) If we access a CMP dependent object from a BMP entity bean, how does one
> define the required create() method on the BMP entity bean?

You can't. The implementation of the create<type>() methods is provided
by the PM, so BMP EntityBeans cannot make use of dependent objects at
all.

> 5) What is the point in defining a set accessor for a primary key field?

It must be used in ejbCreate() to set the initial values of the primary
key field(s).

> 6) Section 9.5.3.1: Why does the PM have to persist homes?

A bean may choose to support component inheritance relationships by
storing pk+home of a referenced entity. This way it can look it up when
needed, and be sure that the right home is used.

/Rickard

--
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.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