[Dev] How to get Realm configuration in carbon 4.3.0

2015-01-15 Thread Lakshman Udayakantha
Hi Devs,

In carbon 4.2.0 below is the way it gets.

RealmConfiguration realmConfig =
TenantMgtServiceComponent.getRealmService().getBootstrapRealmConfiguration();

But in carbon 4.3.0 after I get realmConfig in above way, when I call

realmConfig.getRealmProperty(JDBCRealmConstants.URL);

is returns null. Even though url property is in masterdatasource.xml in
relevant datasource property. Is there any specific way to get realmConfig
in carbon 4.3.0?

-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get Realm configuration in carbon 4.3.0

2015-01-15 Thread Lakshman Udayakantha
I am checking this in wso2as-6.0.0-SNAPSHOT. Anyone has any idea the reason
for this?

On Fri, Jan 16, 2015 at 10:19 AM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 Hi Devs,

 In carbon 4.2.0 below is the way it gets.

 RealmConfiguration realmConfig =
 TenantMgtServiceComponent.getRealmService().getBootstrapRealmConfiguration();

 But in carbon 4.3.0 after I get realmConfig in above way, when I call

 realmConfig.getRealmProperty(JDBCRealmConstants.URL);

 is returns null. Even though url property is in masterdatasource.xml in
 relevant datasource property. Is there any specific way to get realmConfig
 in carbon 4.3.0?

 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get Realm configuration in carbon 4.3.0

2015-01-15 Thread Lakshman Udayakantha
Hi All,

problem solved by making a JNDI lookup for the datasourceName that came
with realmConfig.

Thanks

On Fri, Jan 16, 2015 at 11:49 AM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 I am checking this in wso2as-6.0.0-SNAPSHOT. Anyone has any idea the
 reason for this?

 On Fri, Jan 16, 2015 at 10:19 AM, Lakshman Udayakantha lakshm...@wso2.com
  wrote:

 Hi Devs,

 In carbon 4.2.0 below is the way it gets.

 RealmConfiguration realmConfig =
 TenantMgtServiceComponent.getRealmService().getBootstrapRealmConfiguration();

 But in carbon 4.3.0 after I get realmConfig in above way, when I call

 realmConfig.getRealmProperty(JDBCRealmConstants.URL);

 is returns null. Even though url property is in masterdatasource.xml in
 relevant datasource property. Is there any specific way to get realmConfig
 in carbon 4.3.0?

 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev