以下のdeployment descriptorを記述します。
webservices.xml
web.xml (WARファイルの場合)
ejb-jar.xml (ejb-jarファイルの場合)
webservices.xmlについては、“18.6.1 webservices.xmlの記述形式”、“18.6.2 webservices.xmlのタグ”を参照してください。
web.xmlについては、“18.6.3 web.xml”を参照してください。
ejb-jar.xmlでは以下のようにdeployment descriptorファイルに作成したサービスエンドポイントインタフェース名を定義してください。
例
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"> <display-name>BankJAR</display-name> <enterprise-beans> <session> <ejb-name>CreditCardEndpointBean</ejb-name> <home>com.fujitsu.j2ee.bank.creditcardservice.StatelessHome</home> <remote>com.fujitsu.j2ee.bank.creditcardservice.StatelessRemote</remote> <service-endpoint> com.fujitsu.j2ee.bank.creditcardservice.CreditCardIntf </service-endpoint> <ejb-class> com.fujitsu.j2ee.bank.creditcardservice.CreditCardEndpointBean </ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>CreditCardEndpointBean</ejb-name> <method-intf>ServiceEndpoint</method-intf> <method-name>validateCreditCard</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar>