On Tue, Mar 15, 2016 at 11:28 AM, Himasha Guruge <[email protected]> wrote:

> Hi Sameera,
>
> Thanks for the provided info.In bpmn component   to  build  activiti
> engine, we require the datasource bundle to be available. Therefore we
> tried adding  @Reference annotation  of
> org.wso2.carbon.kernel.datasource.core.internal.DataSourceListenerComponent
> (for activate method of ActivitiEngineBuilder) but this did not work.
>

Why this did not work? What's the issue?

>
>  AFAIU what you suggest is to implement a Listener class that would
> contain onJNDIReady() method, which would require other bundles(activiti
> bundle in this case) to wait until this method is executed.  Could you
> please provide any suggestions on this?
>

To use JNDI in carbon OSGi env, you have to add a mandatory reference to
JNDIContextManager and then wait on until it's available. This will be our
recommendation. Can you explain the use case of activity bundle and
datasources and the ordering issue you are facing with the above approach?



> Regards,
>
>
> On Tue, Mar 15, 2016 at 8:52 AM, Sameera Jayasoma <[email protected]>
> wrote:
>
>> HI Himasha,
>>
>> You can refer following documents and samples.
>>
>> https://github.com/wso2/carbon-jndi
>>
>> https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java
>>
>> On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge <[email protected]>
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> With regards to $subject, so far we have used the workaround of manually
>>> renaming the bundle's symbolic name which works perfectly. However is it
>>> possible to know when this fix will be available?
>>>
>>> Regards,
>>>
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> [email protected]
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: [email protected]
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> [email protected]
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to