Hello,
kdlitwak wrote:
> I have two questions:
>
> 1. I want to have a shared object in an EJB container. That is, one
> object, one object reference shared by and used by multiple callers at
> once. Can this be done? Can multiple clients share a stateless session
> bean since it has no data values to corrupt?
>
> 2. If I call an EJB method from something besides a servlet or JSP,
> does hat make my application non-J2EE compliant? Thanks.
>
> Ken
>
For 1 :
As per the EJB Specs 1.1 ( refer sequence dia ) regarding the stateless session
bean, we feel that by calling remove() the container calls the ejbRemove()
immediately on its instance but the container calls only if no other client
using the same object. Hence the stateless session beans are shared across the
clients ( pl correct me if I am wrong !! ), but here we are trying out few
protos to check whether these beans are synchronized. I have my own doubt
what happens if multiple threads starts accessing the same stateless session
bean object at the same time ?
For 2 :
The J2EE docs doesn't say it has to be Servlet , JSP or Web server. I dont
think it makes J2EE compliant.
Thank you
G Srinivas
Software Engineer
==========================================
L&T Information Technology Ltd.
Safire Park Galleria,
Next to Shivaji Nagar Rly Station,
1st Floor ,
Mumbai Pune Road,
Shivajinagar,
Pune - 411 005 (India).
Phone : 91-20-5812162/4262/5462//6079/4012
Fax : 91-20-5815742
EMail : [EMAIL PROTECTED]
Web : www.ltitl.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".