Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JNDI を使用して維持している J2SE アプリケーションを持っています。(JNDI を使用して J2EE アプリケーション サーバーを見つけます。)
JNDI サーバーの検出に失敗したというエラー報告はかなり貧弱です。
InitialContext が通信しようとしているサーバーを表示する方法を探しています。
誰かがこれを行うためのきちんとした方法を持っていますか?
の値を報告するInitialContext.getEnvironment().get(Context.PROVIDER_URL)と役立つ場合があります。
InitialContext.getEnvironment().get(Context.PROVIDER_URL)