[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    Re: [Dev] Lib directory in Stream Processor contains OSGI bundles
From:       Thusitha Thilina Dayaratne <thusithathilina () gmail ! com>
Date:       2018-06-25 0:16:19
Message-ID: CANVncXBQJ5C1YEcoHLJZDDtwsCFVjarA9xXCY0So8jzrjjJwVw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <
tharinduma@wso2.com> wrote:

> Hi all,
> Thanks a lot!
>
> Tharindu
>
> On Wed, Jun 20, 2018 at 9:45 AM Viduranga Gunarathne <viduranga@wso2.com>
> wrote:
>
>> Hi Tharindu,
>>
>> Please find the comments inline.
>>
>> On Tue, Jun 19, 2018 at 6:33 PM Tharindu Malawaraarachchi <
>> tharinduma@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
>>>
>>> tharinduma@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   : *viduranga@wso2.com
>> *Web     : *http://wso2.com
>> *Blog    : *http://medium.com/vlgunarathne
>> <http://wso2.com/signature>
>>
>
>
> --
> *Tharindu Malawaraarachchi*
> Software Engineer | WSO2
>
> tharinduma@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

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi Tharindu,</div><div><br></div><div>AFAIK C5 doesn&#39;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. <br></div><div>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.</div><div><br></div><div>Thanks</div><div>Thusitha<br></div></div><br><div \
class="gmail_quote"><div dir="ltr">On Wed, Jun 20, 2018 at 2:27 PM Tharindu \
Malawaraarachchi &lt;<a href="mailto:tharinduma@wso2.com">tharinduma@wso2.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,  <div>Thanks \
a lot!</div><div><br></div><div>Tharindu</div></div><br><div class="gmail_quote"><div \
dir="ltr">On Wed, Jun 20, 2018 at 9:45 AM Viduranga Gunarathne &lt;<a \
href="mailto:viduranga@wso2.com" target="_blank">viduranga@wso2.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi \
Tharindu,<div><br></div><div>Please find the comments inline.<br><br><div \
class="gmail_quote"><div dir="ltr">On Tue, Jun 19, 2018 at 6:33 PM Tharindu \
Malawaraarachchi &lt;<a href="mailto:tharinduma@wso2.com" \
target="_blank">tharinduma@wso2.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,  <div>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.  </div><div>Is it mandate to convert the \
non OSGI modules to OSGi with stream processor? \
</div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>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.</div><div>  </div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Or is there a way to add non \
OSGI jars [example- sql driver jars] to SP</div><div><div><br></div><div>Thanks and \
Regards,  </div><div>Tharindu</div>-- <br><div dir="ltr" \
class="m_7315076250806029884m_2719680869869402960gmail-m_2733027835833358412gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><span style="text-align:left" dir="ltr"><b>Tharindu \
Malawaraarachchi</b><br>Software Engineer | WSO2<br><br></span></div><div \
dir="ltr"><span style="text-align:left" dir="ltr"><a rel="nofollow noreferrer" \
href="mailto:tharinduma@wso2.com" dir="ltr" target="_blank">tharinduma@wso2.com</a>  \
</span></div><div dir="ltr"><span style="text-align:left" dir="ltr">+94 \
719340143<br></span><a href="https://www.linkedin.com/in/tharindun/" \
target="_blank">https://www.linkedin.com/in/tharindun/</a><br><img \
src="https://c.content.wso2.com/signatures/wso2-signature-general.png"><br></div></div></div></div></div></div>
 _______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
</blockquote></div><br clear="all"><div>[1]  <a \
href="https://docs.wso2.com/display/SP400/Fully+Distributed+Deployment" \
target="_blank">https://docs.wso2.com/display/SP400/Fully+Distributed+Deployment</a></div><div>[2] \
<a href="https://docs.wso2.com/display/Carbon447/Product+Startup+Options" \
target="_blank">https://docs.wso2.com/display/Carbon447/Product+Startup+Options</a></div><div>[3] \
<a href="http://movingaheadblog.blogspot.com/2014/01/how-to-debug-wso2-carbon-products-using.html" \
target="_blank">http://movingaheadblog.blogspot.com/2014/01/how-to-debug-wso2-carbon-products-using.html</a></div>-- \
<br><div dir="ltr" class="m_7315076250806029884m_2719680869869402960gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr">Regards<b>,</b><div><b>Viduranga Gunarathne</b></div><div><b>Software \
Engineer</b></div><div><b>WSO2 (Pvt) \
Ltd.</b></div><div><b><br></b></div><div><b>Mobile : \
</b>+94712437484</div><div><b>Email     : </b><a href="mailto:viduranga@wso2.com" \
target="_blank">viduranga@wso2.com</a></div><div><b>Web        : </b><a \
href="http://wso2.com" target="_blank">http://wso2.com</a></div><div><b>Blog      : \
</b><a href="http://medium.com/vlgunarathne" \
target="_blank">http://medium.com/vlgunarathne</a></div><div><a \
href="http://wso2.com/signature" target="_blank"><img \
src="http://c.content.wso2.com/signatures/wso2-signature-general.png"></a><br></div></div></div></div></div></div></div></div></div></div>
 </blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="m_7315076250806029884gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><span style="text-align:left" dir="ltr"><b>Tharindu \
Malawaraarachchi</b><br>Software Engineer | WSO2<br><br></span></div><div \
dir="ltr"><span style="text-align:left" dir="ltr"><a rel="nofollow noreferrer" \
href="mailto:tharinduma@wso2.com" dir="ltr" target="_blank">tharinduma@wso2.com</a>  \
</span></div><div dir="ltr"><span style="text-align:left" dir="ltr">+94 \
719340143<br></span><a href="https://www.linkedin.com/in/tharindun/" \
target="_blank">https://www.linkedin.com/in/tharindun/</a><br><img \
src="https://c.content.wso2.com/signatures/wso2-signature-general.png"><br></div></div></div></div>
 _______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b>Thusitha Thilina \
Dayaratne</b><br></div><div><span>PhD Student - Cybersecurity \
Lab<br></span></div><div><span>Monash \
University<br></span></div><div><br></div></div></div></div></div></div></div></div></div></div></div>




_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic