Yes and yes. Not only should you cache them for obvious performance and
convenience reasons, but for some vendors, loadbalancing will NOT work
unless you reuse the same EJBHome!
Gene
-----Original Message-----
From: Bryan Field-Elliot
To: [EMAIL PROTECTED]
Sent: 5/25/01 6:42 AM
Subject: Are home interface references thread-safe?
I have a question about EJB home interface references, specifically
about caching and re-using them:
My "client" is a web application (servlet based), with many simultaneous
users.
Are they (home interface references) thread-safe? Can I do a home
interface lookup at initialization time (as a singleton), and reuse it
for each simultaneous user in my servlet?
Thanks,
Bryan
========================================================================
===
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".