Hi all,

I noticed that $Subject is not done while investigating issue[1]. Any
reason, known issues for not overriding the above method?

*Suggested fix:*
@Override
public CarbonDataSource getDataSource(String dsName) {
    String appId = Util.getCurrentArtifactName();
    if (!StringUtils.isEmpty(appId)) {
        return getDataSource(dsName, appId);
    }
    return super.getDataSource(dsName);
}

*Usage:*
CarbonDataSource carbonDataSource =
dataSourceManager.getInstance().getDataSourceRepository().getDataSource(dataSourceName);
DataSource dataSource = (DataSource) carbonDataSource.getDSObject();

[1]. https://wso2.org/jira/browse/APPFAC-2901

thank you.

-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to