Rickard
What you say is true, but I thought the main savings were in object creation
and garbage collection. That is why stateless session beans (which normally
will have no state whatsoever) are pooled isn't it?
Cheers
Lawrence
> ----------
> From: Rickard Öberg[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for Enterprise JavaBeans development
> Sent: 01 March 2001 14:42
> To: [EMAIL PROTECTED]
> Subject: Re: Entity Beans
>
> On Thu, 1 Mar 2001 04:52:11 -0800, Kirk Pepperdine <[EMAIL PROTECTED]>
> wrote:
>
> >but what's the point of pooling entity beans?
> >
>
> I'd say there are two cases. If your EntityBeans do not have a lot of
> client and entity identity specific state, then it might just as well be
> better to not to pool Entity instances, since todays JVM's do quite a
> decent job at memory mgmt anyway.
>
> However, if you allocate a lot of state in setEntityContext (i.e. state
> that is not client and not identity dependent) it's another deal. As it
> happens I had a case like this where the pooling of instances was
> absolutely critical to getting decent performance.
>
> So, as usual, it depends on the particular usecase. At least the EJB
> contract allows it.
>
> regards,
> Rickard
>
> --
> Rickard Öberg
>
> Email: [EMAIL PROTECTED]
>
> ==========================================================================
> =
> 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".
>
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE
Internet communications are not secure and therefore Clearstream International does not
accept legal responsibility for the contents of this message.
The information contained in this e-mail is confidential and may be legally
privileged. It is
intended solely for the addressee. If you are not the intended recipient, any
disclosure,
copying, distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are those of the
individual sender, except where the sender specifically states them to be the views of
Clearstream International or of any of its affiliates or subsidiaries.
END OF DISCLAIMER
===========================================================================
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".