This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / Jabber's java questions...
-jabber(jabber);
2001-2-5
{632}
(#24524@0)
-
I couldn't find the getEnvironment() in javax.ejb.EJBObject.Dear Jabber,
There is a same methed in the javax.ejb.EJBContext interface, I am not sure if you are talking about this one. It is deprecated. The same effect is achieved through JNDI naming context java:complenv .
-rosemary(kitty);
2001-2-5
{214}
(#24582@0)
-
It is exactly what you meant. Sorry for my mistakes. It is nice to see your correcting it. Thanks a lot.
-jabber(jabber);
2001-2-5
(#24589@0)
-
java.lang.ThreadLocal provides a solution for the dilemma of static and nonstatic fields.When u declare a static field, there is only one value of the field for all objects, when u declare a non-static instance, every object has its own copy of this variable.. If u declare static filed to hold a ThreadLocal, it can holds a different value for each thread. Objects running in the same thread can get the identical value by calling get() while those running in different threads get different value..
-ely(Ely);
2001-2-5
{412}
(#24599@0)
-
java.lang.ref.WeekReference represents a reference which will be held for one week before being finalized by the garbage collector...
-ely(Ely);
2001-2-5
{705}
(#24604@0)