要更改 WebSphere® Service Registry and Repository 节点的配置参数,请编辑集成节点或集成服务器的 .conf.yaml 配置文件。
关于此任务
集成节点拥有的集成服务器将继承在 node.conf.yaml 文件中针对集成节点设置的任何属性。 但是,您可以通过在相应的 server.conf.yaml 文件中进行修改,更改集成节点拥有的集成服务器的任何属性。 您可以通过在相应的 server.conf.yaml 文件中进行修改,更改独立集成服务器的任何属性。 有关配置集成服务器的更多信息,请参阅 通过修改 server.conf.yaml 文件来配置集成服务器。
要设置 WSRR 参数,必须编辑
node.conf.yaml 或
server.conf.yaml 配置文件的
ConnectorProviders 部分中的
WSRRConnectorProvider 条目。 当您使用 或
ibmint extract server ibmint extract node 命令将集成服务器和集成节点迁移到
IBM® App Connect Enterprise 13.0 时, DefaultWSRR 可配置服务属性的值会被放置在 文件的 部分
ConnectorProviders.conf.yaml 中。 在创建新的集成节点或新的独立集成服务器时,
.conf.yaml 配置文件包含 WSRR 参数的以下子集。 所有其他 WSRR 参数具有缺省设置,通常无需进行更改。 如果需要更改任何其他 WSRR 参数,必须将它们添加到
.conf.yaml 配置文件。
ConnectorProviders:
#WSRRConnectorProvider: # Requires the optional WSRR component install
#endpointAddress: 'https://host:9443/WSRR8_0/services/WSRRCoreSDOPort' # WSRR server endpoint url
#needCache: true # enable WSRR cache
#predefinedCacheQueries: '' # semicolon-separated XPath querys to initialize WSRR cache at start-up
#enableCacheNotification: false # enable WSRR cache notification
#locationJNDIBinding: 'iiop://host:2809' # WSRR cache WAS JMS provider JNDI bindings url
有关影响 WSRR 使用的配置参数的更多信息,请参阅 WebSphere Service Registry and Repository 节点的配置参数。
完成以下步骤以更新 WSRR 的配置参数:
过程
- 确保集成节点或独立集成服务器正在运行。
- 编辑 .conf.yaml 文件中的 connectionFactoryName 参数,以显示用于缓存通知的 WSRR WebSphere Application Server WebSphere® Application Server JMS 提供商 JMS 连接工厂的名称。 缺省值为
'jms/SRConnectionFactory.connectionFactoryName'
connectionFactoryName: 'jms/SRConnectionFactory' # The name of the WSRR Application Server JMS provider JMS connection factory for Cache Notifications. The default value is 'jms/SRConnectionFactory'.
- 编辑 .conf.yaml 文件中的 connectionTimeout 参数以显示 WSRR 连接超时周期 (以秒计)。 缺省值为 180 秒(3 分钟)。
connectionTimeout: 180 # The WSRR connection timeout period in seconds. The default value is 180 seconds (3 minutes).
- 在文件 .conf.yaml 中将 enableCacheNotification 参数设置为
true ,以启用 IBM App Connect Enterprise WSRR缓存通知。 缺省值为 false。
enableCacheNotification: true # The default value is false. Select true to enable IBM® App Connect Enterprise WSRR Cache Notification.
- 编辑 .conf.yaml 文件中的 endpointAddress 参数以显示 WSRR 服务器的位置或端点。
endpointAddress: 'http://fill.in.your.host.here:9080/WSRRCoreSDO/services/WSRRCoreSDOPort' #The location or endpoint of the WSRR server. The default value for all versions of WSRR is 'http://fill.in.your.host.here:9080/WSRRCoreSDO/services/WSRRCoreSDOPort'
所有版本的 WSRR 的缺省值为 'http://fill.in.your.host.here:9080/WSRRCoreSDO/services/WSRRCoreSDOPort'
例如,要连接到使用 WSRR V7.5 兼容性的服务器,请使用以下值:
'http://fill.in.your.host.here:9080/WSRR7_5/services/WSRRCoreSDOPort'
- 编辑 .conf.yaml 文件中的 initialContextFactory 参数,以显示用于缓存通知的 WSRR WebSphere Application Server WebSphere® Application Server JMS 提供商 JMS 连接工厂的名称。 缺省值为
'com.ibm.websphere.naming.WsnIitialContextFactoryCopy'
initialContextFactory: 'com.ibm.websphere.naming.WsnIitialContextFactoryCopy' # The name of the WSRR WebSphere Application Server JMS provider JMS context factory for Cache Notifications.
The default value is 'com.ibm.websphere.naming.WsnIitialContextFactoryCopy'
- 编辑 locationJNDIBinding .conf.yaml 文件中的参数,以便向JMS提供商JNDI绑定显示 URL。 WebSphere Application Server JMS供应商JNDI绑定。 缺省值为
'iiop://host_name:2809/'
locationJNDIBinding: 'iiop://host_name:2809/' # The URL to the WebSphere Application Server JMS provider JNDI bindings. The default value is 'iiop://host_name:2809/'
- 编辑 .conf.yaml 文件中的 secureJNDIPropertiesFiles 参数,以显示存放 your.props 文件的目录。 例如,
'C:\SSLPropsFiles'
secureJNDIPropertiesFiles: 'C:\SSLPropsFiles' # The directory where your .props files are stored. For example 'C:\SSLPropsFiles'
- 在文件 .conf.yaml 中将 needCache 参数设置为
true ,以指示已启用 IBM App Connect Enterprise 缓存。 缺省值为 true
needCache: true # The default value is true, indicating that the IBM App Connect Enterprise WSRR cache is enabled.
- 编辑 .conf.yaml 文件中的 predefinedCacheQueries 参数,以显示一组用分号分隔的WSRR XPath查询表达式,用于在启动时初始化 IBM App Connect Enterprise 缓存。
predefinedCacheQueries: "//*[@name='Wss100.wsdl'];/WSRR/WSDLService/ports[binding/portType[@name='DemoCustomer' and @namespace='http://demo.sr.eis.ibm.com'] and @PortProperty1='ValueOfPortProperty1' and exactlyClassifiedByAllOf(., 'http://www.ibm.com/xmlns/prod/serviceregistry/6/0/governance/DefaultLifecycle#InitialState1','http://www.ibm.com/xmlns/prod/serviceregistry/6/0/governance/DefaultLifecycle#Approve')]" # A list of semicolon-separated WSRR XPath query expressions with which to initialize the IBM App Connect Enterprise WSRR cache at start-up.
- 根据需要将 .conf.yaml 文件中的 refreshQueriesAfterNotification 参数设置为
true 或 false 。缺省值为 true。 在从 WSRR 接收通知并且 refreshQueriesAfterNotification 设置为 true时,将立即使用新版本的对象更新高速缓存。 如果设置为 false,那么将在下一个请求上更新高速缓存。
refreshQueriesAfter Notification: true # When a notification is received from WSRR, if refreshQueriesAfterNotification is set to true, the Cache is updated with the new version of the object immediately; if it is set to
false, the Cache is updated on the next request. The default value is true.
- 编辑 .conf.yaml 文件中的 subscriptionTopic 参数,以显示用于接收 WebSphere Application Server JMS 提供程序高速缓存通知的主题名称。 缺省值为
'jms/SuccessTopic'。
subscriptionTopic: 'jms/SuccessTopic' # The topic name that is used to receive WebSphere Application Server JMS provider Cache Notifications. The default value is 'jms/SuccessTopic'
- 编辑 .conf.yaml 文件中的 timeout 参数以显示高速缓存到期时间 (以毫秒计)。 缺省值为
100000000,大约为 27.8 小时。
timeout: 100000000 # The cache expiry time in milliseconds. The default value is 100000000, which is approximately 27.8 hours.
- 重新启动集成节点或独立集成服务器。 有关更多信息,请参阅 启动和停止集成节点, 启动集成服务器和 停止集成服务器。