- If you are worried about performance, consider using JDBC.

- If you do not expose your entity beans are remote object (i.e. only
use them inside session beans or Servlets) don't use entity beans. Use
JDBC or a good O/R mapping tool.

- If you are exposing your date objects are remote objects, can pay the
performance overhead for the functionality, then a good CMP engine might
perform even better than a BMP engine and require less lines of code,
while a bad CMP engine is not worth using.

arkin


Karl Roberts wrote:
>
> Hi Guys,
>         I'm struggling with a design issue related to entity beans and in order
> to get it right I wanted to make sure I knew all the Pros and Cons.
>
> Clearly writing a container managed entity bean is easier than writing a
> bean managed one (though maybe not as flexible if it maps down to a
> complex table/database join :-).
>
> Also writing an Entity bean allows me to refer to the underlying data as
> an object and allows me to program in such a way as to not worry to much
> about ties to a particular database, i.e. they are transportable.
>
> But, my worry is performance related. If my bean maps to a table of
> millions of rows I would have potentially millions of objects swimming
> around all making remote method calls. I can see that as Entity beans
> are persistent I could do whatever I like to then bean then remove it
> and bring it back again if I need it, but this seems like a lot of
> overhead as well. The other option is a bean pool where a bean is
> brought out of the Pooled State to the Ready State, which means that
> although I could only have a few beans they could by used to handle
> (from the client side view) millions of beans.
> In a Container managed bean this is left up to the container to manage,
> but how do I do it with bean managed Entity beans?
>
> Does anyone have a rule or design pattern for when to use Entity beans
> and how to make them system resource friendly.
>
> Any advice is appreciated.
>
> Karl
>
> ===========================================================================
> 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".

--
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

===========================================================================
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