But if he stores the Handle to the bean instead, will cluster decision be
made each time the handle is resolved back to the EJBObject?

Gene

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
Sent: Monday, July 31, 2000 4:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Issue of Session (Urgent)


On Mon, 31 Jul 2000 04:03:42 -0700, Jerson Chua <[EMAIL PROTECTED]>
wrote:
>In order to eliminate the overhead of creating a stateless session bean
every time using
>the home interface, I'm thinking of storing the remote interface in the
HTTP session.  I
>know this is essential for stateful session beans, but what about stateless
session
>beans?  Is this common practice?

This may actually give you worse performance, especially in a clustered
environment! Some implementations make loadbalancing decisions during
the create call, so if you only do it once you risk having ALL of the
workload on only one of the nodes in the cluster.

/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".

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