This isn't really a EJB question. The answer is that the field will be true. Since it is a class level (I am assuming what you are calling "class level" are variables defined as static) it is set for the entire class and therefore not associated with a single instance of an object of that class. BTW, even if it is a instance variable it is possible that it is true. Since stateless session beans can be re-used. But this is totally dependent on the container implementation.
Paul Franz ----- Original Message ----- From: "abhay" <[EMAIL PROTECTED]> To: "JDJList" <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 5:31 AM Subject: [jdjlist] EJB problem > Hello all , > I 'm a novice in EJB . > Here i have prob regarding class level variables in stateless session > beans. > I have set boolean cbflag = false as class level variable. (which > happens to be its default value) > > Two methods are using the same flag. > consider the case: > that client 'A' access a method in (EJB) where he sets the flag cbflag = > true and finishes his processing. > > Now, if that client 'B' connecting to same EJB and accessing a > different method, in which he wants to use the default value of flag, > what will he get? > > whether it would be true or false. > In other words , does the EJB wipe out the variable's value set by other > client ?? > > please help me .. > > Thanks in advance. > > regards > abhay > > > > > > > ____________________________________________________ > To change your JDJList options, please visit: > http://www.sys-con.com/java/list.cfm > > Be respectful! Clean up your posts before replying > ____________________________________________________ ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
