| Interstage Application Server J2EE ユーザーズガイド |
目次
索引
![]()
|
| 第2部 Servlet/JSP編 | > 第7章 Webアプリケーションの開発 | > 7.5 Webアプリケーション環境定義ファイル(deployment descriptor) | > 7.5.3 Webアプリケーション環境定義ファイル(deployment descriptor)のタグの詳細 |
Webアプリケーションで参照する外部リソースの定義は、resource-refタグで定義します。
------------------------------------------------------------------------------------
<resource-ref>
<res-ref-name>ref-name</res-ref-name>
<res-type>type</res-type>
<res-auth>signon</res-auth>
</resource-ref>
------------------------------------------------------------------------------------
|
タグ名 |
説明 |
タグの |
複数の |
|---|---|---|---|
|
res-ref-name |
リファレンス名は、Webアプリケーションが外部リソースを識別するために任意に指定することができます。 |
× |
× |
|
res-type |
外部リソースのデータソースの型を定義します。
|
× |
× |
|
res-auth |
リソースの接続情報を、アプリケーションコンポーネントコードがプログラムで指定するかまたはServletコンテナが指定するかを定義します。
|
× |
× |
------------------------------------------------------------------------------------
<web-app>
<resource-ref>
<res-ref-name>jdbc/MyDataBase</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
------------------------------------------------------------------------------------
目次
索引
![]()
|