On Wed, 16 Aug 2000, Rickard [iso-8859-1] �berg wrote:

> You are doing it wrong, and I'm sorry it works; it should crash right
> after re-deploy. (NOTE: not when fail-over is implemented though!)
> 
> This kind of code will be self-defeating in the future though: when
> clustering is added, the load-balancing decisions will most likely be on
> home.create(), so any such caching in your servlet will make the system
> perform worse ('cause the decision will only be made once). This goes
> pretty much for the commercial vendors solutions as well, so it wouldn't
> be just us.
> 
> For each page request, get new InitialContext() (which is cached
> internally anyway, so it is VERY fast to do it!), lookup the home and
> create your session. When fail-over is done this should be changed so
> that you do lookup once, and then home.create on each page request.
> 
> Ok?
> 
> /Rickard

Yikes, didn't grasp this until after I sent the earlier email.  Feel free
to ignore the earlier email.

Thanks!

Kenneth Topp



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to