Hi, "No conversational state" means that state will not be maintained with reference to a particular caller of the method. Stateless session beans do maintain state. I have used instance variables to maintain references to resources that are used in every call to the SSB. You can do this as long as you do not need the state to represent any caller dependent state.
Vikas. "Aggrawal, Shelly (Cognizant)" wrote: > In my opinion also, the stmt "no conversational state" can be misleading if > interpreted as "conversational state being wiped out for each call" > > A question to guru's, could there be some other reason why SUN has used the > stme "no conversational state" rather than "not guanranteed". > > -----Original Message----- > From: Gavin Selvaratnam [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 12:07 PM > To: [EMAIL PROTECTED] > Subject: Re: State in stateless session bean > > Hi, > Thats just the case. Going through the EJB specifications I just > couldnt get it that whats is ment when they say "Stateless session beans > are session beans whose instances have no conversational state.". What I > thought was that state is irased for each method invocation. But In the > specification it doesnt tell you anywhere that "State is not garantied". > Dont you think Sun should say those exat words when they describe > stateless session beens ? I got to think about this only after doing a > sample. > > Thanks, > Gavin > > =========================================================================== > 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". > > ------------------------------------------------------------------------ > Name: InterScan_Disclaimer.txt > InterScan_Disclaimer.txt Type: Plain Text (text/plain) > Encoding: 7bit =========================================================================== 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".
