Hi Tharindu,

AFAIK C5 doesn't support traditional jar files. You need to convert the jar
file to an OSGi bundle and then put it in lib directory as Raveen
mentioned.
Newer versions of mysql-connector jars are already packaged as OSGi
bundles. That is why it is mentioned to put it in the lib directory. If you
are using some other mysql connector version which is not an OSGi bundle,
first you still have to convert it to a bundle.

Thanks
Thusitha

On Wed, Jun 20, 2018 at 2:27 PM Tharindu Malawaraarachchi <
tharind...@wso2.com> wrote:

> Hi all,
> Thanks a lot!
>
> Tharindu
>
> On Wed, Jun 20, 2018 at 9:45 AM Viduranga Gunarathne <vidura...@wso2.com>
> wrote:
>
>> Hi Tharindu,
>>
>> Please find the comments inline.
>>
>> On Tue, Jun 19, 2018 at 6:33 PM Tharindu Malawaraarachchi <
>> tharind...@wso2.com> wrote:
>>
>>> Hi all,
>>> In Carbon 4 based wso2 products, there are 2 separate folders
>>> (dropins and lib) to keep OSGI bundles and other non OSGI jars. But in wso2
>>> stream processor there is no dropins directory and the lib directory keeps
>>> OSGI bundles.
>>> Is it mandate to convert the non OSGI modules to OSGi with stream
>>> processor?
>>>
>>
>> WSO2 products run on an OSGi environment and it would be best to add as
>> an OSGi bundle rather than a jar. However it is not mandatory. You can add
>> jars also. Accoding to guide[1] you only need to add mysql-connector jars
>> as it is to the lib folder.
>>
>> Also you can refer guide[2] to activate the osgi console and refer
>> blog[3] to see how to debug the osgi bundles at runtime.
>>
>>
>>> Or is there a way to add non OSGI jars [example- sql driver jars] to SP
>>>
>>> Thanks and Regards,
>>> Tharindu
>>> --
>>> *Tharindu Malawaraarachchi*
>>> Software Engineer | WSO2
>>>
>>> tharind...@wso2.com
>>> +94 719340143
>>> https://www.linkedin.com/in/tharindun/
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>> [1] https://docs.wso2.com/display/SP400/Fully+Distributed+Deployment
>> [2] https://docs.wso2.com/display/Carbon447/Product+Startup+Options
>> [3]
>> http://movingaheadblog.blogspot.com/2014/01/how-to-debug-wso2-carbon-products-using.html
>> --
>> Regards*,*
>> *Viduranga Gunarathne*
>> *Software Engineer*
>> *WSO2 (Pvt) Ltd.*
>>
>> *Mobile : *+94712437484
>> *Email   : *vidura...@wso2.com
>> *Web     : *http://wso2.com
>> *Blog    : *http://medium.com/vlgunarathne
>> <http://wso2.com/signature>
>>
>
>
> --
> *Tharindu Malawaraarachchi*
> Software Engineer | WSO2
>
> tharind...@wso2.com
> +94 719340143
> https://www.linkedin.com/in/tharindun/
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Thusitha Thilina Dayaratne*
PhD Student - Cybersecurity Lab
Monash University
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to