On Sat, May 5, 2012 at 11:19 AM, Afkham Azeez <[email protected]> wrote:

> Mediators go as OSGi bundle fragments I think. If so, you cannot add
> activators or service components. I think there is an API for mediators to
> retrieve these OSGi services.
>
> On Sat, May 5, 2012 at 11:12 AM, Sanjeewa Malalgoda <[email protected]>wrote:
>
>> Hi,
>> We wanted to track tenant manager inside a synapse mediator when we were
>> adding new modifications to Autoscaler component. How we can do it.I tried
>> it by adding scr reference to service component but it failed(As normal way
>> we did for other components - add scr to realmservice and then get tenant
>> manager). Even a service tracker may not work since we cant track it by scr
>> reference. Also found that nobody tried this before.
>> Really appreciate if someone can give suggestion.
>>
>
Yes.  You can get a reference to the BundleContext object from the synapse
context. By using the BundleContext, you can do all these things.

Thanks,
Sameera.

>
>> Thanks.
>>
>> --
>> *Sanjeewa Malalgoda*
>> mobile : +94 713068779
>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
Sameera Jayasoma
Technical Lead

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://tech.jayasoma.org

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to