OC4Jの-userThreadsオプション

JMS使わないで独自にThread起こした場合,そんなかでContextのlookupすると怒られるという事実を知った.

Caused by: javax.naming.NamingException: Not in an application scope - start OC4J with the -userThreads switch if using user-created threads

単にあたしが不慣れなだけなんだろけど,OTNって調べづらいんだよなー.とブツクサ言いながら探してみたら,User's Guideにちゃんと書いてあった.

-userTheads   Enables context lookup support from user-create threads.

なんともご丁寧なJ2EEコンテナだ.