If you would like to throw exception if a second client accesses your bean, you can
use an instance variable initialized by
ejbCreate() method. This instance variable counter can be used to track the number of
client calls. After a client exits a business
method, reset the counter. If a client tries to enter a business method while the
counter is not reset, you could an exception.
I am not sure if this is what you wanted. If you could throw some more points on your
requirements, the forum could help you.
--
Regards
Subra
Subramaniam S - Viveka Software Technologies Pvt. Ltd.
http://www.thinktankpartners.com/ +91-80-2996585, 5098251
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Shomnathprabukm
> Sent: Wednesday, January 24, 2001 10:54 AM
> To: [EMAIL PROTECTED]
> Subject: Session Bean Info - WebSphere/Weblogic
>
>
> For a Stateless Session Bean is there any way where I
> can say that only one Client access the bean at any point of time.
>
> I tried setting the MAX/MIN Pool size properties of the bean both to 1.
> But it doen't work.
>
>
> Regards
> ShomnathPrabu KM
> Infosys
> India
===========================================================================
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".