> Hello,
> I have two questions:
> 1. Is automatic "lazy-loading" implemented in JBoss? I had to write it
myself in
> my EJB...Can you
> give an example?
If you have a CMP field that is another entity then simply activating an
instance will not cause the referenced entity to be loaded.
> 2. Why should a BMP be better than a CMP in terms of performance? Is the
> generated
> data access code that poor in CMP?
More often than not BMP will be worse (or I can't see any reason right now
why it would be faster anyway). But some things such as loading dependent
objects are easier to do in a lazy fashion with BMP which can improve
performance.
All of this is *entirely* dependent on each usecase. There are no easy
answers, and anyone convincing you that "CMP is always right" or "BMP is
always right" or "session with JDBC is always right" is always wrong.
/Rickard
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]