Sharing registry and user store between WSO2 ESB and IDS - wso2

We are using WSO2 products ESB and IS in our product. We have configured MySql datasource for user stores and registry in Identity Server. We also have tenant specific user stores configured in Identity Server.
We would like to configure ESB to use the same user stores that are of Identity Server.
We have tried configuring the datasources and user-mgt.xml with the same user stores. When ESB is being launched we're getting some exceptions.
Kindly advise the following:
If we want to share registry and user stores, can we just add the datasources in master-datasources.xml and refer them in respective xml in ESB? Or, anything different?
Thanks in advance!

Yes. You can just share same user-mgt.xml and master-datasources.xml file with both ESB and IS. If you want to point to the same user store, user management database and same registry. (if registry.xml file has not been changed). But there can be issues, if ESB and IS are not release with same carbon platform. Because there can be slightly different between the user kernel implementation of two different carbon versions. Could you let us know the ESB and IS version that you are using? Also errors that you see in ESB startup?

Related

WSO2 APIM storing files in gov registry

I have another question on WSO2 APIM 2.6.0
I am working in one scenario where I have to store one file which is in json in gov registry. I can do that manually from the dashboard but I am looking for a way to perform that using API or in automated way.
Research done till now
1) Checking on the link which ideally enable WSO2 ESB to maintain a remote registry. But I am unable to get how the registry DB will be shared between the applications (APIM and ESB).
Like, ESB has property where we can store the data in registry directly from proxy or an API and also enables us to retrieve them accordingly.
But how do we do in APIM to store the file with json content.
Any suggestions here.
Thanks

WSO2 common registry space and multitenancy

I have installed WSO2 Identity server and WSO2 API manager according to documentation of Products Clustering & Deployment Guide "Configuring the Pre-Packaged Identity Server 5.1.0 with API Manager 1.10.0".
According to this configuration WSO2 IS and WSO2 AM use common registry data-source (for governance and configuration).
Later in WSO2 IS I have added additional tenant - for example vu.lt.
And now when I login to WSO2 IS and WSO2 AM management console as super-tenant admin, all works OK.
When I login to WSO2 IS management console as admin of vu.lt tenant - all is OK.
But when I login to WSO2 AM as admin of vu.lt tenant I get a little strange view: the header of page is from Identity Manager, but content is from API manager.
After some tests I found out that css file (main.css) is loaded from governance part of registry .../governance/repository/theme/admin/main.css. It means that main.css is loaded from data-source. The same css is loaded when I login from WSO2 IS. The same happen if install one more server (for example BPS) and configure it to use common registry space.
Maybe this situation is not very bad, but I don't know which consequences can I get later.
So, the question is: could I have common registry space in multi-tenancy environment or I have configured something wrong.
Finally I would like to install WSO2 IS, BPS, AM and DAS with LDAP user store and to use this system for Identity Management purposes in our university. I'm not sure which configuration of registry space should I choose: common governance and different configuration, or maybe common configuration too, like in "Configuring the Pre-Packaged Identity Server 5.1.0 with API Manager 1.10.0"?
Did you try setting the host names?.. Refer to jira [1].
[1]. https://wso2.org/jira/browse/CARBON-6686

Accessing WSO2 BPS and ESB registry from code

I am trying to access the registry of WSO2 BPS and WSO2 ESB from Java in order to automatically fill the registry based on the data I provide.
I have already found a number of resources about the required Java code and dependencies, this being the most helpful one: [WSO2 Governance Registry]Using WSRegistryServiceClient. However, the approach described in these resources depends on the WSRegistryService service. This service is included in Governance Registry by default, but not in the other WSO2 products. I have verified that my code works for the Governance Registry. For any other WSO2 product on my machine, I get this error:
The service cannot be found for the endpoint reference (EPR) https://localhost:9445/services/WSRegistryService
I found an old thread suggesting that it should be possible to install the WSRegistryService on other WSO2 products as well, but I have not been able to find out how to do so. I can't seem to find it within the features I can install from the web console of the products. I have also tried manually copying the relevant jar from the plugins directory of Governance Registry into the plugins directory of other products, but that doesn't seem to be sufficient.
Note that my application for filling the registry will not be running on the carbon server whose registry I want to access, so using CarbonContext.getThreadLocalCarbonContext() (an approach I found in some other articles) is not an option.
I think your referring to how to install features to WSO2 products,
Please find this documentation.

WSO2 Registry master-datasources.xml and WSO2AM_DB

The release 4.5.3 differs from the 4.5.1 in the sense that in the master-datasources.xml appears a new datasource for the WSO2AM_DB
What does this means?
How the two product relate to each other?
If I have a registry host and, API host and a MySQL host how can I have a shared registry?
As for what I configured before API manager was dependent from registry and BAM so I needed to have the DB for the registry and BAM (so install registry than BAM than API).
How do the new datasource change this dependancy path does Registry also be dependant on the API manager, but who creates the DB first?
Thanks
Luca
This does not mean Governance Registry is dependent on Api Manager. This is a datasource defined for API manager to use if available to store it is runtime data. You can use the same WSO2_CARBON_DB if you need but then you need to do some configurations. So this is purely to store API related run-time data additionally to Carbon database. (JNDI lookup for this datasource happens from API manager).
We configured WSO2_CARBON_DB datasource to point to our organization's Oracle database. GReg distribution includes specific scripts required to setup the data model.
In case we need to point WSO2AM_DB datasource to the same Oracle DB, we could not find any scripts or documentation for that.

wso2 product Registry menu (config, governance, local)

Is there any authoritative documentation available for data found under the Registry UI menu (for example as found in WSO2 ESB admin screens)?
I have seen snippets of information about this registry, for example:
The configuration registry contains product specific configuration
that can be shared across multiple instances of the same product (a
cluster of ESB nodes for example).
Source: link
To start with, I have a few questions:
What is the difference between this registry and the WSO2 Governance Registry?
What are the typical use cases for a WSO2 esb admin user for interacting with this Registry?
What are the typical use cases for a WSO2 esb developer for interacting with this Registry?
Is there a description of all the meta data stored in this registry?
In All WSO2 products there is an internal registry which is used to store resources. WSo2 Governance Registry uses the same core features + some more feature that gives complete Governance scenario. If you need you can mount to an external WSo2 Governance Registry without using the internal registry you referred.You can find more details here.