On Tue, Jun 28, 2011 at 9:53 AM, Amila Suriarachchi <am...@wso2.com> wrote:

>
>
> On Mon, Jun 27, 2011 at 11:27 PM, Senaka Fernando <sen...@wso2.com> wrote:
>
>> Hi Amila,
>>
>> If you are using the OSGi service, you need to pass the tenant id as a
>> parameter.
>
>
> yes. The question I have put is how to get the tenant id when the
> connection is closed since there is no user associated.
>
>
>> Anyway why do you need to use the OSGi service? You can get an instance of
>> the registry from the CarbonContext right?
>>
>
> This is within the Qpid Authorization plugin. This code actually run
> withing Qpid server. so within the Qpid server there is no way to get the
> carbon context.
>
> Think like this,
>
> A jms client connect to Qpid server as am...@amila.com and password
> amila123.
>
> The only way to get the tenant id is using tenant domain pass with the user
> name.
>

I see. There are some utilities in User Core which can be used to find the
tenant id using the tenant domain.

Thanks,
Senaka.

>
> thanks,
> Amila.
>
>
>>
>> Thanks,
>> Senaka.
>>
>> On Mon, Jun 27, 2011 at 3:42 PM, Amila Suriarachchi <am...@wso2.com>wrote:
>>
>>> hi,
>>>
>>> Currently above functionality is not working since Qpid compoent
>>> RegistryClient always get the supper tenant registry.
>>>
>>> eg UserRegistry registry = registryService.getGovernanceSystemRegistry();
>>> (RegistryClient.java 110)
>>>
>>> We can simply fix this by passing the tenant ID which can be found from
>>> the tenant domain available with the user name.
>>>
>>> But for deleteQueue and deleteSubscription there is no user associated.
>>> These methods are called when closing subscribers, consumers etc ...
>>>
>>> So any Idea of fixing this for above case ?
>>>
>>> thanks,
>>> Amila.
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Stratos-dev mailing list
>> stratos-...@wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev
>>
>>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to