For the life of me I cannot recall why I made them static!!!  There are
a few other variables that I had static as well.  I want to say that
when I was writing the program I was getting compile errors stating that
I cannot reference non-static variables and changing them to static
allowed the program to compile (major newbie mistake/assumption I am
sure).

I just created a copy of my program and removed static from the
serialNumber as well as a few other variables I had made static and
everything compiled fine.  Very strange though that it has been working
fine this entire time??? :-/ I guess the next step is to make this
change in the live program and monitor it very closely...

Thanks again.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-----Original Message-----
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 12:16 PM
To: Tomcat Users List
Subject: RE: Possible thread "crossing"

Ha ! Gotcha !

That's no instance variable !!!!
It's a class variable !!!!

It is shared by all instances of the bean !!!

change it to:

private String serialNumber="";

> -----Original Message-----
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 6:14 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> In the bean there is an instance variable:  
>       private static String serialNumber="";
> 
> And it is set using the regular set method:
>       public void setserialNumber(String sn) { serialNumber = sn; }
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to