My Requirement is that Serialized access to Stateless Session Bean as
Mentioned by Gene Chuang.
Detailing it - I should have a Stateless Session which has Only One Method
Called ApproveCards.
The Users who have acces to the Bean, will fire this Method and will Approve
a Card by Giving a Card number.
The Logic in the Method is that Only One Card Can be Approved at time, since
Cross Validating with other Approved Card
has to be Done.
I hope U/U all Understood my Requirement.
Regards
Shom
-----Original Message-----
From: Subramaniam S [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 8:08 AM
To: A mailing list for Enterprise JavaBeans development
Cc: [EMAIL PROTECTED]
Subject: RE: Session Bean Info - WebSphere/Weblogic
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".