Retrieves the name of the object bound to the naming context that is also bound to the current thread.
()
| 184 | * Retrieves the name of the object bound to the naming context that is also bound to the current thread. |
| 185 | */ |
| 186 | static String getThreadName() throws NamingException { |
| 187 | Object obj = threadObjectBindings.get(Thread.currentThread()); |
| 188 | if (obj == null) { |
| 189 | throw new NamingException(sm.getString("contextBindings.noContextBoundToThread")); |
| 190 | } |
| 191 | return obj.toString(); |
| 192 | } |
| 193 | |
| 194 | |
| 195 | /** |
no test coverage detected