Reputation: 352
all. I have some confusion about the registry.
1.the remote registry mount is done like this in [1] but it is done like in [2] with the port NO. and /registry. are they the same??
2.I gonna install apim and IS and GREG, apim and IS should share their infomation, so that when a new tenant is registered in apim, IS should be able to use this new tenant too. My question is whether both the config and governance of both server should be configurated to GREG? because I don't know which (config or governance) folder contains the user resources?
[1] http://docs.wso2.org/display/CLUSTER420/Clustering+API+Manager
[2] http://docs.wso2.org/display/Governance453/Governance+Partition+in+a+Remote+Registry
Upvotes: 0
Views: 152
Reputation: 2540
To answer your second question, If you wanted to share same tenant information then you need to share user store and the realm database. One way of doing that is, pointing to same ldap from all nodes and refering central database for realm.
<IS_HOME>/repository/conf/user-mgt.xml
and replace the element of user-mgt.xml in other nodes. You need to change ConnectionURL
appropriately with hostname and port. If you have started IS without any port offset and all nodes run on same server, you can use <Property name="ConnectionURL">ldap://localhost:10389</Property>
or, if the IS run on some other machine having the ip 192.168.33.66 and start with portoffset 1, connection url would be like follows,
<Property name="ConnectionURL">ldap://192.168.33.66:10380</Property>
WSO2_REALM_DB
and refer to jndi name of that datasource in user-mgt xml by changing the property <Property name="dataSource">jdbc/WSO2_REALM_DB</Property>
. From this post you can find steps to create database and configuring datasource for that db.Its not clear on your first question but regarding registry mounting in general,
You can more detailed explanation in this article.
Upvotes: 1