SCA组件门类配置
使用该方式可以替换SCA中的Java注解方式。一般情况下,可用组件类型文件来表明属性,而用注解来标示出引用和
服务。创建默认组件类型文件命名习惯:
<componetn-implementation-class>.componentType
例如:ProblemTicketComponentImplNA.componentType:
<componentType
xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<service name="ProblemTicketComponent">
<interface.java
interface="opensoa.book.chapter4_1.ProblemTicketComponent" />
</service>
<reference name="createTicket">
<interface.java
interface="opensoa.book.chapter4_1.CreateTicketComponent" />
</reference>
<property name="username" type="xsd:string" />
<property name="password" type="xsd:string" />
</componentType>