[EMAIL PROTECTED] wrote:
> 
> I just wondered when JOnAS to load a CMP Entity Bean. If I do a findAll (emtpy 
>WHERE), does JOnAS load a bean for each
> instance at that time? Or does JOnAS perform the load when that instance is first 
>used? The problem is that I tried the EB
> example from JOnAS on a table that holds 6000 rows of data. The findAllAccounts 
>needs many, many seconds. I tried this from a
> simple JDBC application, and this returns immediately after executing the query. So, 
>is there room for improvement?
Jonas does not load every bean instance on a findAll, but it does
instanciate the EJBObject (remote
objects) and allocate en entry in the hashtable with the Primary Key,
etc... So, there is some
work that can be longer than a simple JDBC request. It's the price to
pay when you decide
to use EJB instead of pure JDBC.
-- 
Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]
-> Download our EJBServer at http://www.evidian.com/ejb <-
----
This list is cross-posted to two mail lists.  To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".

Reply via email to