Hi, everyone:
First, thanx for reply.
I change my code make getInstance() synchronized, but the problem hasn't been solved, the two object is still different.But when I execute getInstance() in one method of TaskOAL and not init it by static, this problem is solved.
I run the code in web envieronment, Windows 2000 server + WebSphere + DB2.I create some
thread to init data when my web project run, in WebSphere I meet some other problem, such as my owen thread cann't use JNDI reference access database. I don't confirm whether this Singleton problem raised by WebSphere ???
Thanx.