On Thu, Jul 25, 2013 at 2:10 PM, Lakmali Baminiwatta <lakm...@wso2.com>wrote:

> Hi Shariq,
>
>
> On 25 July 2013 13:36, Shariq Muhammed <sha...@wso2.com> wrote:
>
>> Correction, it should be "ListenerManager-RequiredServices", check the
>> pom.xml file of org.wso2.carbon.mediation.initializer component ...
>>
>
> Thanks for the info. As per my understanding what this does is,
> guranteening that partucular service is available at the server start
> point. But for my case, I need some code to be executed only after the
> server is available.
>

Sorry I misunderstood the initial requirement, guess you'll have to try
Sinthuja's suggestion.

>
> Thanks,
> Lakmali
>
>>
>>
>> On Thu, Jul 25, 2013 at 1:34 PM, Shariq Muhammed <sha...@wso2.com> wrote:
>>
>>> Hi Lakmali,
>>>
>>> You can mark the service as a "ListenerManagerRequiredServices", the 
>>> theserver won't
>>> startup until the osgi service is available ...
>>>
>>>
>>> On Thu, Jul 25, 2013 at 12:19 PM, Lakmali Baminiwatta 
>>> <lakm...@wso2.com>wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have a requirement to publish some internal APIs at the server
>>>> startup. We are planing to use the Publisher API for this. So in order to
>>>> call Publisher API, the publisher web app should be available and in that
>>>> case, the server should have been started.
>>>>
>>>> We thought of writing a new OSGI component, which will activate after
>>>> the server has started. I noticed that there are some components already
>>>> there which always get activated after the server is started.
>>>>
>>>> ex: In API Manager, ThriftAuthenticationServiceComponent[1] activate
>>>> method get invoked after the server has started (ie : server is
>>>> accessible at that point).
>>>>
>>>> I added all the @src references available in the
>>>> ThriftAuthenticationServiceComponent to a new component which I wrote. But
>>>> the new component starts before the server start completion. So I am unable
>>>> to find the reason which makes the ThriftAuthenticationServiceComponent
>>>> startup to happen last.
>>>>
>>>> Is there a way to make a component to start after the server startup is
>>>> completed?
>>>>
>>>>
>>>> [1]
>>>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.thrift.authentication/src/main/java/org/wso2/carbon/identity/thrift/authentication/internal/ThriftAuthenticationServiceComponent.java
>>>>
>>>> Thanks,
>>>> Lakmali
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Lakmali Baminiwatta*
>>>> *
>>>> Software Engineer
>>>> WSO2, Inc.: http://wso2.com
>>>> lean.enterprise.middleware
>>>> mobile:  +94 71 2335936
>>>> blog : lakmali.com
>>>> *
>>>> *
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks,
>>> Shariq.
>>> Phone: +94 777 202 225
>>>
>>
>>
>>
>> --
>> Thanks,
>> Shariq.
>> Phone: +94 777 202 225
>>
>
>
>
> --
> Lakmali Baminiwatta*
> *
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
> *
> *
>



-- 
Thanks,
Shariq.
Phone: +94 777 202 225
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to