axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meeusen, Christopher W." <Meeusen.Christop...@mayo.edu>
Subject Field level variables
Date Wed, 18 Aug 2010 22:20:23 GMT
I'm looking through some of my colleagues code and I'm noticing some
field level variables declared inside one of our pojos.  Something
similar to this:

 

Public class classA

{

                private classB aClassb;

 

                Public classC[] aMethod()

{

                                aClassb= new classB();

}              

}

 

aMethod() is exposed as a web service and is called several thousand
times per minute.  Is this thread safe?  I know it is bad to have field
level variables unless they are really needed but I don't know if this
behavior is ok inside of the axis2 environment.

 

Thanks,

Chris


Mime
View raw message