J2EEアプリケーションクライアントでユーザ認証を行うには、JNDI環境プロパティに次の設定が必要です。
FJUserID :ディレクトリサービスのユーザ認証で使用するユーザIDを指定します。
FJPassword:ディレクトリサービスのユーザ認証で使用するパスワードを指定します。
FJUserIDとFJPasswordは、次のいずれかの方法で設定してください。
なお、環境プロパティが重複して指定された場合は、以下の順で上書きされます(“3”で指定された環境プロパティが最も優先されます)。
FJjndi.propertiesファイル
new javax.naming.InitialContext(Hashtable environment)の引数environment
アプリケーション起動時のコマンドラインでの引数(-D)
例
JNDI環境プロパティの設定例を次に示します。
FJjndi.propertiesファイルによる設定
FJUserID=user01 |
new InitialContextの引数による設定
・・・ |
アプリケーション起動時の引数による設定
java -Djava.naming.factory.initial=com.fujitsu.interstage.j2ee.jndi.InitialContextFactoryForClient -Dcom.fujitsu.interstage.j2ee.DeploymentDescriptorClient=/export/home/j2eeapl/application-client.xml -DFJUserID=user01 -DFJPassword=pass01 ClientAPP |
リソース接続者管理機能の設定
リソース接続者管理機能の設定については、“5.1.5 リソース接続者管理機能”を参照してください。