Hitachi

 Hitachi Application Server V10 定義リファレンスWindows®用)


3.12 glassfish-web.xml

Webアプリケーション(WAR)の設定をするためのJava EE RIのDDです。

説明

Webアプリケーション(WAR)に関する、Java EE RI固有の設定をするためのDDです。

glassfish-web.xmlのルート要素はglassfish-web-appです。glassfish-web-app要素は、「要素の階層」で示すように、子要素と属性を含みます(それらの子要素と属性の配下にも、さらに、子要素と属性を含むことがあります)。

スキーマ

<!DOCTYPE glassfish-web-app PUBLIC 
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" 
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">

格納先

DDファイルは次の場所に格納されます。

war_name/WEB-INF ディレクトリー

war_name:Webアプリケーションのアーカイブ名を表します。

要素の階層

glassfish-web-app
. context-root
. security-role-mapping
. . role-name
. . principal-name
. . group-name
. servlet
. . servlet-name
. . principal-name
. . webservice-endpoint
. . . port-component-name
. . . endpoint-address-uri
. . . login-config
. . . . auth-method
. . . message-security-binding
. . . . message-security
. . . . . message
. . . . . . java-method
. . . . . . . method-name
. . . . . . . method-params
. . . . . . . . method-param
. . . . . . operation-name
. . . . . request-protection
. . . . . response-protection
. . . transport-guarantee
. . . service-qname
. . . . namespaceURI
. . . . localpart
. . . tie-class
. . . servlet-impl-class
. . . debugging-enabled
. idempotent-url-pattern
. session-config
. . session-manager
. . . manager-properties
. . . . property
. . . . . description
. . session-properties
. . . property
. . . . description
. . cookie-properties
. . . property
. . . . description
. ejb-ref
. . ejb-ref-name
. . jndi-name
. resource-ref
. . res-ref-name
. . jndi-name
. . default-resource-principal
. . . name
. . . password
. resource-env-ref
. . resource-env-ref-name
. . jndi-name
. service-ref
. . service-ref-name
. . port-info
. . . service-endpoint-interface
. . . wsdl-port
. . . . namespaceURI
. . . . localpart
. . . stub-property
. . . call-property
. . . message-security-binding
. . . . message-security
. . . . . message
. . . . . . java-method
. . . . . . . method-name
. . . . . . . method-params
. . . . . . . . method-param
. . . . . . operation-name
. . . . . request-protection
. . . . . response-protection
. . call-property
. . wsdl-override
. . service-impl-class
. . service-qname
. . . namespaceURI
. . . localpart
. message-destination-ref
. . message-destination-ref-name
. . jndi-name
. class-loader
. . property 
. . . description
. jsp-config
. . property
. . . description
. property 
. . description
. valve
. . description
. . property
. . . description
. message-destination
. . message-destination-name
. . jndi-name
. webservice-description
. . webservice-description-name
. . wsdl-publish-location
. version-identifier

記述例

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC 
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" 
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app>
     <session-config>
         <session-manager/>
     </session-config>
     <resource-ref>
         <res-ref-name>mail/Session</res-ref-name>
         <jndi-name>mail/Session</jndi-name>
     </resource-ref>
     <jsp-config/>
</glassfish-web-app>