更改到目录 RegistryDomain-base/3.0/jaxr-ebxml。
用文本编辑器打开文件 registry-browser-config.xml。
使用以下格式将条目添加至 registry-browser-config.xml 文件。
此示例配置 Service 对象的非默认显示。
<ObjectTypeConfig className="org.freebxml.omar.client.xml.registry.infomodel.ServiceImpl" id="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Service"> <SearchResultsConfig> <SearchResultsColumn columnClass="java.lang.Object" columnHeader="Object Type" columnWidth="25" editable="false" method="getObjectType"/> <SearchResultsColumn columnClass="java.lang.Object" columnHeader="Name" columnWidth="25" editable="true" method="getName"/> <SearchResultsColumn columnClass="java.lang.Object" columnHeader="Description" columnWidth="30" editable="true" method="getDescription"/> <SearchResultsColumn columnClass="java.lang.Object" columnHeader="Status" columnWidth="15" method="getStatusAsString"/> <SearchResultsColumn columnClass="java.lang.Object" columnHeader="Version" columnWidth="5" method="getVersionName"/> </SearchResultsConfig> </ObjectTypeConfig>
registry-browser-config.xml 提供 ObjectTypeConfig 元素的语法。将文件中已有的元素用作示例。这些元素为 Registry 对象配置默认显示,并为 ExternalLink、ExtrinsicObject 和 ServiceBinding 对象配置非默认显示。
大多数情况下,您可以从 ebXML Registry 信息模型版本 3.0 规范的类属性中推出方法名称(有关详细信息,请参见阅读本书之前)。可以在 RegistryObjectImpl 实现类中找到 getStatusAsString 方法。(但是,此发行版的 Service Registry 不包括 API 文档。)
保存并关闭 registry-browser-config.xml 文件。
按照停止并重新启动用于 Registry 的 Application Server 域中的说明进行操作。
要验证重新配置,请使用 Web 控制台的“搜索”或“资源管理器”菜单来显示已更改其列的对象。