static variable is a kind of global variable in the server class.  All terminals are against this single server class.  Certainly, they will share the same static variable.  So you cannot use static variable to hold the user information.  You have to use instance member variable to do it

解决方案 »

  1.   

    instance member variable 
    java里有这种变量吗?
    我怎么在websphere没见到,谢谢
      

  2.   

    instance member variable 
    java里有这种变量吗?
    我怎么在websphere没见到,谢谢
      

  3.   

    In java, there are two different member variables, one is called " static member variable ", the other is called " instance member variable ".  However,
    instance member variable without and modifier before the variable name.  This is very basic concepts.  You need to re view Java book for them.
    Good Luck!
      

  4.   

    但是我要在很多类都用到这个变量,我希望能像调用静态,直接调用,
    不用每次new一个类,或者在这些类中传变量
      

  5.   

    我怎么给不了分,不知道是公司的网有限制,还是csdn的问题