Hi sameera,

yes, service component is also active


On Mon, Jan 25, 2016 at 5:29 PM, Sameera Jayasoma <same...@wso2.com> wrote:

> Just to be clear, I need service component activation status, not the
> bundle status.
>
> On Mon, Jan 25, 2016 at 5:09 PM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> Can you check whether your service component is activated? You can type
>> the "ls" command.
>>
>>
>>
>> On Mon, Jan 25, 2016 at 4:56 PM, Nipuna Prashan <pras...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am writing an osgi component. This same component wants to be
>>> deployed in both Appfactory and APIManager servers. Here, I have
>>> imported some of the appfactory packages such as
>>> org.wso2.carbon.appfactory.application.mgt.* which will not be
>>> resolved in APIM 1.9.1.
>>> Then I used ;resolution:=optional in the pom file for those packages
>>> and I set service component reference cardinality to "0..1"
>>>
>>> @scr.reference name="application.applicationInfoService"
>>>
>>> interface="org.wso2.carbon.appfactory.application.mgt.service.ApplicationInfoService"
>>> cardinality="0..1"
>>> policy="dynamic" bind="setApplicationInfoService"
>>> unbind="unsetApplicationInfoService"
>>>
>>> When I start the server(APIM 1.9.1) the log that gets printed when the
>>> component gets activated is not printed implying it has not been
>>> activated, but osgi console says that the bundle has activated.
>>>
>>> What would be the problem? Any suggestions would be appreciated.
>>>
>>> --
>>> Nipuna Prashan
>>> Software Engineering Intern
>>> +94711852792
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
*Nipuna Prashan*
Software Engineering Intern
+94711852792
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to