Re: [Dev] [ML][GSOC 2016] Proposal6- Predictive analytics with online data for WSO2 Machine Learner

2016-02-24 Thread Randika Navagamuwa
HI,
 Noted. Will look in to these and get back to you.

Thanks,

On 25 February 2016 at 12:10, Maheshakya Wijewardena 
wrote:

> Hi Randika,
>
> Thank you for showing interest for this project.
>
> I've checked the SPMF library and what this library supports is sequential
> pattern mining which is quite different from machine learning algorithms
> used in WSO2 ML. What this project intends to achieve is to leverage the
> existing algorithms to support streaming data. As an initiative, first you
> can get an idea about the architecture of WSO2 ML[1]. CEP event streams[2]
> / publishers[3] maybe used for feeding data streams in to ML. Since ML is
> using Apache Spark mllib[4] for its' algorithms, you might want to read
> about that.
>
> To get an idea about an architecture, try to understand how Spark
> streaming[5] (see examples) handles input data streams. Also, have a look
> in the streaming algorithms[6][7] supported. In order to use these
> algorithms, you may have to use Scala APIs(Since Spark does not have Java
> implementations yet). There are two approaches indicated in the project
> proposals page. These streaming algorithms can be directly used in the
> first approach. For the other approach, the architecture should contain a
> procedure to create mini batches from streaming data with relevant sizes
> (i.e. a moving window) and do periodic retraining of the same algorithm.
>
> BTW, watching the video referenced in the proposal (reference: 5) will
> help you getting a better idea about machine learning algorithms with
> streaming data.
>
> Let us know if you need any help with these.
>
> Best regards
>
> [1] https://docs.wso2.com/display/ML110/Architecture
> [2] https://docs.wso2.com/display/CEP400/Understanding+Event+Streams
> [3] https://docs.wso2.com/display/CEP400/HTTP+Event+Publisher
> [4] https://spark.apache.org/docs/1.4.1/mllib-guide.html
> [5] https://spark.apache.org/docs/1.4.1/streaming-programming-guide.html
> [6]
> https://spark.apache.org/docs/1.4.1/mllib-linear-methods.html#streaming-linear-regression
> [7]
> https://spark.apache.org/docs/1.4.1/mllib-clustering.html#streaming-k-means
>
> On Thu, Feb 25, 2016 at 10:40 AM, Randika Navagamuwa <
> randika...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>>  I'm a 3rd year undergraduate from Department of Computer Science and
>> Engineering, University of Moratuwa. I went through the project proposals
>> and I want to clarify some things regarding this project.
>>
>>- I've seen two approaches are mentioned, but other than those two
>>methods can the objectives be achieved using this approach
>>   - SPMF[1] library can be used for pattern analysis.
>>   - Then if a data set has a same pattern as a previously modeled
>>   data set same algorithm can be used.
>>
>> According to the deliverables, first step is to come with an
>> architecture. Is there any online material to refer before starting this
>> project.
>>
>> [1]http://www.philippe-fournier-viger.com/spmf/
>>
>>
>> *Best Regards*
>>
>> *Randika Navagamuwa,*
>>
>> *Department of Computer Science & Engineering,*
>>
>> *University of Moratuwa,*
>> *Sri Lanka.*
>>
>> *www.rnavagamuwa.com *[image:
>> lk.linkedin.com/in/rnavagamuwa/]  
>> [image:
>> https://www.facebook.com/rnavagamuwa]
>>  [image:
>> https://twitter.com/rnavagamuwa]  [image:
>> https://plus.google.com/+RandikaNavagamuwa/]
>> 
>>
>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>


-- 

*Best Regards*

*Randika Navagamuwa,*

*Department of Computer Science & Engineering,*

*University of Moratuwa,*
*Sri Lanka.*

*www.rnavagamuwa.com *[image:
lk.linkedin.com/in/rnavagamuwa/]
 [image:
https://www.facebook.com/rnavagamuwa]
 [image:
https://twitter.com/rnavagamuwa]  [image:
https://plus.google.com/+RandikaNavagamuwa/]

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


Re: [Dev] [ML][GSOC 2016] Proposal6- Predictive analytics with online data for WSO2 Machine Learner

2016-02-24 Thread Maheshakya Wijewardena
Hi Randika,

Thank you for showing interest for this project.

I've checked the SPMF library and what this library supports is sequential
pattern mining which is quite different from machine learning algorithms
used in WSO2 ML. What this project intends to achieve is to leverage the
existing algorithms to support streaming data. As an initiative, first you
can get an idea about the architecture of WSO2 ML[1]. CEP event streams[2]
/ publishers[3] maybe used for feeding data streams in to ML. Since ML is
using Apache Spark mllib[4] for its' algorithms, you might want to read
about that.

To get an idea about an architecture, try to understand how Spark
streaming[5] (see examples) handles input data streams. Also, have a look
in the streaming algorithms[6][7] supported. In order to use these
algorithms, you may have to use Scala APIs(Since Spark does not have Java
implementations yet). There are two approaches indicated in the project
proposals page. These streaming algorithms can be directly used in the
first approach. For the other approach, the architecture should contain a
procedure to create mini batches from streaming data with relevant sizes
(i.e. a moving window) and do periodic retraining of the same algorithm.

BTW, watching the video referenced in the proposal (reference: 5) will help
you getting a better idea about machine learning algorithms with streaming
data.

Let us know if you need any help with these.

Best regards

[1] https://docs.wso2.com/display/ML110/Architecture
[2] https://docs.wso2.com/display/CEP400/Understanding+Event+Streams
[3] https://docs.wso2.com/display/CEP400/HTTP+Event+Publisher
[4] https://spark.apache.org/docs/1.4.1/mllib-guide.html
[5] https://spark.apache.org/docs/1.4.1/streaming-programming-guide.html
[6]
https://spark.apache.org/docs/1.4.1/mllib-linear-methods.html#streaming-linear-regression
[7]
https://spark.apache.org/docs/1.4.1/mllib-clustering.html#streaming-k-means

On Thu, Feb 25, 2016 at 10:40 AM, Randika Navagamuwa <
randika...@cse.mrt.ac.lk> wrote:

> Hi,
>  I'm a 3rd year undergraduate from Department of Computer Science and
> Engineering, University of Moratuwa. I went through the project proposals
> and I want to clarify some things regarding this project.
>
>- I've seen two approaches are mentioned, but other than those two
>methods can the objectives be achieved using this approach
>   - SPMF[1] library can be used for pattern analysis.
>   - Then if a data set has a same pattern as a previously modeled
>   data set same algorithm can be used.
>
> According to the deliverables, first step is to come with an architecture.
> Is there any online material to refer before starting this project.
>
> [1]http://www.philippe-fournier-viger.com/spmf/
>
>
> *Best Regards*
>
> *Randika Navagamuwa,*
>
> *Department of Computer Science & Engineering,*
>
> *University of Moratuwa,*
> *Sri Lanka.*
>
> *www.rnavagamuwa.com *[image:
> lk.linkedin.com/in/rnavagamuwa/]  
> [image:
> https://www.facebook.com/rnavagamuwa]
>  [image:
> https://twitter.com/rnavagamuwa]  [image:
> https://plus.google.com/+RandikaNavagamuwa/]
> 
>



-- 
Pruthuvi Maheshakya Wijewardena
mahesha...@wso2.com
+94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kamidu Sachith Punchihewa

2016-02-24 Thread Hasitha Amal De Silva
Congrats Kamidu !! :)

On Thu, Feb 25, 2016 at 11:44 AM, Heshitha Hettihewa 
wrote:

> Congratulations Kamidu ...!!!
>
> On Thu, Feb 25, 2016 at 11:39 AM, Nipuna Chandradasa 
> wrote:
>
>> Congratulations Kamidu ...!
>>
>> On Thu, Feb 25, 2016 at 9:07 AM, Natasha Wijesekara 
>> wrote:
>>
>>> Congratulations Kamidu !!
>>>
>>> On Thu, Feb 25, 2016 at 8:48 AM, Praminda Jayawardana >> > wrote:
>>>
 Congratulations Kamidu!

 On Thu, Feb 25, 2016 at 8:03 AM, Geesara Prathap 
 wrote:

> Congrats bro... !!!
>
> On Wed, Feb 24, 2016 at 12:06 PM, Menaka Jayawardena 
> wrote:
>
>> Congratulations Kamidu.!!!
>>
>> On Wed, Feb 24, 2016 at 11:48 AM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Everyone,
>>>
>>> It's my pleasure to welcome Kamidu Sachith Punchihewa as a WSO2
>>> Committer. Kamidu has been a key member of the EMM/IoT team 
>>> contributing to
>>> many aspects of product development ever since he joined us. In 
>>> recognition
>>> of his contributions, ownership shown towards the tasks/responsibilities
>>> assigned to him, and commitment, he's been voted as a WSO2 committer.
>>>
>>> Kamidu, Welcome aboard and keep up the awesome work!
>>>
>>> Cheers,
>>> Prabath
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Praminda Jayawardana*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 Mobile : +94 (0) 716 590818

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


>>>
>>>
>>> --
>>> *Natasha Wijesekare*
>>>
>>> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
>>> *
>>> *email  : nata...@wso2.com *
>>> *mobile: +94 771358651 <%2B94%20771358651>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Cheers,

Hasitha Amal De Silva
Software Engineer
Mobile : 0772037426
Blog: http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kamidu Sachith Punchihewa

2016-02-24 Thread Heshitha Hettihewa
Congratulations Kamidu ...!!!

On Thu, Feb 25, 2016 at 11:39 AM, Nipuna Chandradasa 
wrote:

> Congratulations Kamidu ...!
>
> On Thu, Feb 25, 2016 at 9:07 AM, Natasha Wijesekara 
> wrote:
>
>> Congratulations Kamidu !!
>>
>> On Thu, Feb 25, 2016 at 8:48 AM, Praminda Jayawardana 
>> wrote:
>>
>>> Congratulations Kamidu!
>>>
>>> On Thu, Feb 25, 2016 at 8:03 AM, Geesara Prathap 
>>> wrote:
>>>
 Congrats bro... !!!

 On Wed, Feb 24, 2016 at 12:06 PM, Menaka Jayawardena 
 wrote:

> Congratulations Kamidu.!!!
>
> On Wed, Feb 24, 2016 at 11:48 AM, Prabath Abeysekera <
> praba...@wso2.com> wrote:
>
>> Hi Everyone,
>>
>> It's my pleasure to welcome Kamidu Sachith Punchihewa as a WSO2
>> Committer. Kamidu has been a key member of the EMM/IoT team contributing 
>> to
>> many aspects of product development ever since he joined us. In 
>> recognition
>> of his contributions, ownership shown towards the tasks/responsibilities
>> assigned to him, and commitment, he's been voted as a WSO2 committer.
>>
>> Kamidu, Welcome aboard and keep up the awesome work!
>>
>> Cheers,
>> Prabath
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Geesara Prathap Kulathunga
 Software Engineer
 WSO2 Inc; http://wso2.com
 Mobile : +940772684174


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


>>>
>>>
>>> --
>>> *Praminda Jayawardana*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> Mobile : +94 (0) 716 590818
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Natasha Wijesekare*
>>
>> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
>> *
>> *email  : nata...@wso2.com *
>> *mobile: +94 771358651 <%2B94%20771358651>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kamidu Sachith Punchihewa

2016-02-24 Thread Nipuna Chandradasa
Congratulations Kamidu ...!

On Thu, Feb 25, 2016 at 9:07 AM, Natasha Wijesekara 
wrote:

> Congratulations Kamidu !!
>
> On Thu, Feb 25, 2016 at 8:48 AM, Praminda Jayawardana 
> wrote:
>
>> Congratulations Kamidu!
>>
>> On Thu, Feb 25, 2016 at 8:03 AM, Geesara Prathap 
>> wrote:
>>
>>> Congrats bro... !!!
>>>
>>> On Wed, Feb 24, 2016 at 12:06 PM, Menaka Jayawardena 
>>> wrote:
>>>
 Congratulations Kamidu.!!!

 On Wed, Feb 24, 2016 at 11:48 AM, Prabath Abeysekera  wrote:

> Hi Everyone,
>
> It's my pleasure to welcome Kamidu Sachith Punchihewa as a WSO2
> Committer. Kamidu has been a key member of the EMM/IoT team contributing 
> to
> many aspects of product development ever since he joined us. In 
> recognition
> of his contributions, ownership shown towards the tasks/responsibilities
> assigned to him, and commitment, he's been voted as a WSO2 committer.
>
> Kamidu, Welcome aboard and keep up the awesome work!
>
> Cheers,
> Prabath
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Menaka Madushanka Jayawardena
 Software Engineering Intern
 men...@wso2.com
 Mobile:- +94 71 8851183/ +94 71 3505470
 LinkedIn - Menaka Jayawardena
 

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


>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> Mobile : +940772684174
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Praminda Jayawardana*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 716 590818
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Natasha Wijesekare*
>
> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
> *
> *email  : nata...@wso2.com *
> *mobile: +94 771358651 <%2B94%20771358651>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Changes to the datamapper operator item providers in generating EMF ecore model

2016-02-24 Thread Sohani Weerasinghe
Hi All,

When generating the EMF ecore model, interfaces like
IEditingDomainItemProvider, IStructuredItemContentProvider,
ITreeItemContentProvider, IItemLabelProvider and IItemPropertySource are
getting removed from the ItemProviders of the operators (
eg: ConcatItemProvider).

But it seems this has no impact since those item providers are extending
the OperatorItemProvider which extends the DataMapperNodeItemProvider which
implements the required interfaces.

Thanks,
Sohani
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Unexpected Behaviour In IS When Loging.

2016-02-24 Thread Kamidu Punchihewa
Hi IS Team,

When Using an AD with multiple organisation units as the user store, users
can login with the Doman Friendly user name.
For example there are two users in two different organisation units as
given below.

   - STAFF.WSO2.COM/user
   - MOBILE.WSO2.COM/user

Both of these users can login just using "user" as the username.
Is this the expected behaviour?
If this is the expected behavior, is there a way to identify the correct
user from these two users when they use the Domain friendly username to
login?

Thanks and Best Regards.
Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Profiling ESB5 engine with message stats and tracing

2016-02-24 Thread Buddhima Wijeweera
Hi All,

Currently we have planned to test the message flow stats and tracing. So
once we get the results,  we'll update the thread.

Thank you,

On Thu, Feb 25, 2016 at 10:58 AM, Srinath Perera  wrote:

> Kasun, first test is to run it with and without tracing and stats enabled
> and see the difference. If there is a significant difference, we should dig
> in.
>
> On Thu, Feb 25, 2016 at 10:24 AM, Kasun Indrasiri  wrote:
>
>> Hi Buddhima/Viraj,
>>
>> We need to profile the ESB with statistics and tracing enabled to
>> identify any possible bottleneck in the stat collection and publishing
>> logics. Can we have a closer look at the JRFs please.
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> 
> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
> Site: http://people.apache.org/~hemapani/
> Photos: http://www.flickr.com/photos/hemapani/
> Phone: 0772360902
>



-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Profiling ESB5 engine with message stats and tracing

2016-02-24 Thread Srinath Perera
Kasun, first test is to run it with and without tracing and stats enabled
and see the difference. If there is a significant difference, we should dig
in.

On Thu, Feb 25, 2016 at 10:24 AM, Kasun Indrasiri  wrote:

> Hi Buddhima/Viraj,
>
> We need to profile the ESB with statistics and tracing enabled to identify
> any possible bottleneck in the stat collection and publishing logics. Can
> we have a closer look at the JRFs please.
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



-- 

Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://people.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB500]Error in Clustering Mode - JMS 2.0 Feature:Shared Topic Subscription

2016-02-24 Thread Dilshani Subasinghe
Hi Ravindra,

Yes I doubled checked libraries and It will work properly when "Clustering"
mode disabled.

Yes, it will be giving an error regarding libraries and jars. But same
error pop up when it can not process with HornetQ. Previously I experienced
that. When HornetQ cannot bind its' host name, it must modify its "run.sh"
script. With that issue also, ESB giving same error with misleading error
message about broker jars [1].


[1]-https://wso2.org/jira/browse/ESBJAVA-4438

Regards,
Dilshani


On Thu, Feb 25, 2016 at 10:20 AM, Ravindra Ranwala 
wrote:

> Hi Dilshani,
>
> AFAIK there's no special configuration for this in ESB side. Have you
> copied all the libraries to the workers properly? If so we have to debug
> and see the root cause of the issue.
>
>
> Thanks & Regards,
>
> On Thu, Feb 25, 2016 at 8:14 AM, Dilshani Subasinghe 
> wrote:
>
>> Hi Malaka,
>>
>> This issue about clustering. Multiple subscribers do not affect to the
>> error.
>>
>> Yes, I am using M2 pack.
>>
>> Regards,
>> Dilshani
>>
>>
>> On Wed, Feb 24, 2016 at 8:38 PM, Malaka Silva  wrote:
>>
>>> Hi Dilshani,
>>>
>>> Just to be clear is this issue related to clustering or issue persist
>>> when there are multiple subscribers?
>>>
>>> Also you must be using esb 5 milestone pack?
>>>
>>> On Wed, Feb 24, 2016 at 7:09 PM, Dilshani Subasinghe 
>>> wrote:
>>>
 Hi ESB Team,

 I am testing new fearure called "JMS 2.0.0 Support"[1] and found an
 error in "JMS 2.0 Feature:Shared Topic Subscription". Feature will
 successfully functioning in Standalone mode. But it clustering mode, it
 will provide an error as follows;

  TID: [-1234] [] [2016-02-24 15:30:13,451]  WARN
 {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -
 Inbound JMS endpoint unable to get a connection.
 {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
 TID: [-1234] [] [2016-02-24 15:30:14,451] ERROR
 {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
 -  Connection cannot bb establish to the broke. Plese check the broker libs
 provided.
 {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}

 This error will pop up from worker nodes. When clustering mode
 disabled, it will work properly.

 Is there any special configuration for HornetQ when ESB in clustering
 mode?

 As I found out, HornetQ "run.sh" script must modify to bind its' host
 name. Likewise is there any special configurations for ESB cluster ?

 Thank you in advance.

 [1] - https://redmine.wso2.com/issues/4121


 --
 Best Regards,

 Software Engineer - QA
 WSO2, Inc.;http://wso2.com/
 
 lean.enterprise.middleware

 Mobile: +94773375185

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>> https://store.wso2.com/store/
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94773375185
>>
>
>
>
> --
> Ravindra Ranwala
> Software Engineer
> WSO2, Inc: http://wso2.com
> 
> Mobile: +94714198770
>
>


-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94773375185
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Profiling ESB5 engine with message stats and tracing

2016-02-24 Thread Kasun Indrasiri
Hi Buddhima/Viraj,

We need to profile the ESB with statistics and tracing enabled to identify
any possible bottleneck in the stat collection and publishing logics. Can
we have a closer look at the JRFs please.


-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB500]Error in Clustering Mode - JMS 2.0 Feature:Shared Topic Subscription

2016-02-24 Thread Ravindra Ranwala
Hi Dilshani,

AFAIK there's no special configuration for this in ESB side. Have you
copied all the libraries to the workers properly? If so we have to debug
and see the root cause of the issue.


Thanks & Regards,

On Thu, Feb 25, 2016 at 8:14 AM, Dilshani Subasinghe 
wrote:

> Hi Malaka,
>
> This issue about clustering. Multiple subscribers do not affect to the
> error.
>
> Yes, I am using M2 pack.
>
> Regards,
> Dilshani
>
>
> On Wed, Feb 24, 2016 at 8:38 PM, Malaka Silva  wrote:
>
>> Hi Dilshani,
>>
>> Just to be clear is this issue related to clustering or issue persist
>> when there are multiple subscribers?
>>
>> Also you must be using esb 5 milestone pack?
>>
>> On Wed, Feb 24, 2016 at 7:09 PM, Dilshani Subasinghe 
>> wrote:
>>
>>> Hi ESB Team,
>>>
>>> I am testing new fearure called "JMS 2.0.0 Support"[1] and found an
>>> error in "JMS 2.0 Feature:Shared Topic Subscription". Feature will
>>> successfully functioning in Standalone mode. But it clustering mode, it
>>> will provide an error as follows;
>>>
>>>  TID: [-1234] [] [2016-02-24 15:30:13,451]  WARN
>>> {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -
>>> Inbound JMS endpoint unable to get a connection.
>>> {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
>>> TID: [-1234] [] [2016-02-24 15:30:14,451] ERROR
>>> {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
>>> -  Connection cannot bb establish to the broke. Plese check the broker libs
>>> provided.
>>> {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
>>>
>>> This error will pop up from worker nodes. When clustering mode disabled,
>>> it will work properly.
>>>
>>> Is there any special configuration for HornetQ when ESB in clustering
>>> mode?
>>>
>>> As I found out, HornetQ "run.sh" script must modify to bind its' host
>>> name. Likewise is there any special configurations for ESB cluster ?
>>>
>>> Thank you in advance.
>>>
>>> [1] - https://redmine.wso2.com/issues/4121
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Software Engineer - QA
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94773375185
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>> https://store.wso2.com/store/
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>



-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

Mobile: +94714198770
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [Update] APIM Subscriber Notification Feature Design Review

2016-02-24 Thread Sam Sivayogam
-- Forwarded message --
From: 
Date: Thu, Feb 25, 2016 at 8:42 AM
Subject: [Update] APIM Subscriber Notification Feature Design Review
To: chami...@wso2.com, cham...@wso2.com, bhath...@wso2.com,
chama...@wso2.com, malint...@wso2.com, thili...@wso2.com, sanje...@wso2.com,
hars...@wso2.com, s...@wso2.com, uvin...@wso2.com, jos...@wso2.com,
lakm...@wso2.com, ros...@wso2.com, prami...@wso2.com, lal...@wso2.com,
nuw...@wso2.com, tharin...@wso2.com, dinus...@wso2.com, jan...@wso2.com,
ruks...@wso2.com
Cc: ros...@wso2.com, cham...@wso2.com, lakm...@wso2.com, tharin...@wso2.com,
hars...@wso2.com, dinus...@wso2.com, ruks...@wso2.com, malint...@wso2.com,
prami...@wso2.com, jos...@wso2.com, jan...@wso2.com, nuw...@wso2.com,
sanje...@wso2.com, s...@ws02.com, uvin...@wso2.com, chama...@wso2.com,
bhath...@wso2.com, thili...@wso2.com, chami...@wso2.com, lal...@wso2.com


Review Notes

Initial implementaion will be supporting single email server configurations
which will be defined in ApiManager.xml.
Email messages and templates are to be saved in tenant configuration file.

To support multiple Notification types use a map to store the the
notifierList

Use a property map to store the API Identifier Objects in NotificationDTO
to make the implementation more generic

use more suitable generic names to the following
NewAPIEmailNotifier class
notifySubscribers method

Thanks,
Sam

APIM Subscriber Notification Feature Design Review
To discuss the design and implementation of APIM Subscriber Notification
Feature.
*When*
Wed Feb 24, 2016 4pm – 4:30pm Colombo

*Where*
LK Trace Ground Floor Training Room - Rivendell (map

)

*Video call*
https://plus.google.com/hangouts/_/wso2.com/apim-subscriber


*Who*
•
Sam Sivayogam - organizer
•
Roshan Wijesena
•
lakm...@wso2.com
•
cham...@wso2.com
•
Tharindu Dharmarathna
•
hars...@wso2.com
•
dinus...@wso2.com
•
ruks...@wso2.com
•
prami...@wso2.com
•
Malintha Amarasinghe
•
Joseph Fonseka
•
Nuwan Dias
•
Janaka Ranabahu
•
Sanjeewa Malalgoda
•
Uvindra Dias Jayasinha
•
Chamalee De Silva
•
Bhathiya Jayasekara
•
thili...@wso2.com
•
Chamila Adhikarinayake
•
Lalaji Sureshika



-- 
*Sam Sivayogam*

Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-Transport Disruptor ExecutorService threads

2016-02-24 Thread Isuru Ranawaka
Hi Azeez,

We will support that .

thanks


On Wed, Feb 24, 2016 at 12:35 PM, Afkham Azeez  wrote:

> In MSS, when a call reaches an operation, we may in turn call another
> microservice or do a DB call, for example. Those scenarios need to be
> supported.
>
> On Wed, Feb 24, 2016 at 10:49 AM, Isuru Ranawaka  wrote:
>
>> Hi Samiyuru,
>>
>> Do you need to do  blocking operations inside EventHandler threads ? If
>> so we can add that functionality in future release
>>
>> thanks
>>
>> On Wed, Feb 24, 2016 at 10:35 AM, Samiyuru Senarathne 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> So what is the a way to have a worker pool [1]?
>>>
>>> [1] -
>>> https://lmax-exchange.github.io/disruptor/docs/com/lmax/disruptor/dsl/Disruptor.html#handleEventsWithWorkerPool(com.lmax.disruptor.WorkHandler...)
>>>
>>> Best Regards,
>>> Samiyuru
>>>
>>>
>>> On Tue, Feb 23, 2016 at 10:30 AM, Isuru Ranawaka 
>>> wrote:
>>>
 Hi samiyuru,

 According to the Disruptor architecture it is written such that to
 minimize thread switching .If we define high number of  threads in Executor
 Service  than no of EventHandlers then it will only pick
 threads equal to EventHandlers.If particular  thread blocked then that
 EventHandler also get blocked. So due to this reason we should not do any
 blocking operation inside Disruptor Handlers.So particular EventHandler is
 always bound to particular thread in ExceutorService for EventHandler life
 time.So I think configuring threads on Executor service  may not have
 significant improvement.

 thanks
 IsuruR


 On Tue, Feb 23, 2016 at 10:04 AM, Samiyuru Senarathne <
 samiy...@wso2.com> wrote:

> Hi Shafreen,
>
> Yeah, the threads in this ExecutorService will be used to execute the
> EventHandler. So, according to the current implementation for one handler
> there will be only one thread right?
>
> In this case, events cannot be processed concurrently. Events will be
> processed one after another sequentially. Therefore, I think we should 
> have
> a way to specify the number of event handlers and the number of threads in
> the  ExecutorService separately.
>
> Best Regards,
> Samiyuru
>
> On Tue, Feb 23, 2016 at 9:24 AM, Shafreen Anfar 
> wrote:
>
>> Hi Samiyuru,
>>
>> AFAIU, for each Disruptor we create an ExecuterService. Threads in
>> this ExecutorService will be used to execute the EventHandler of the
>> Disruptor. Therefore, number of threads in the Executor are the number of
>> EventHanlders for that particular Disruptor.
>>
>> @IsuruR - please correct me if I am wrong :)
>>
>> On Fri, Feb 19, 2016 at 10:34 AM, Samiyuru Senarathne <
>> samiy...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> In carbon-transport, why are the number of event handlers and the
>>> number of threads in the ExecutorService of Disruptor [1] the same? Is
>>> there a way to configure them separately?
>>>
>>> [1] -
>>> https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/common/disruptor/config/DisruptorFactory.java#L47
>>>
>>> Best Regards,
>>> Samiyuru
>>>
>>> --
>>> Samiyuru Senarathne
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 134 6087
>>> samiy...@wso2.com
>>>
>>
>>
>>
>> --
>> Regards,
>> *Shafreen*
>> Software Engineer
>> WSO2 Inc
>> Mobile : 077-556-395-1
>>
>
>
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/

>>>
>>>
>>>
>>> --
>>> Samiyuru Senarathne
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 134 6087
>>> samiy...@wso2.com
>>>
>>
>>
>>
>> --
>> Best Regards
>> Isuru Ranawaka
>> M: +94714629880
>> Blog : http://isurur.blogspot.com/
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [Encoding Special Charactors] Throws an Character Out Of Range exception

2016-02-24 Thread Jerad Rutnam
Hi Kamidu,

Did you try the solutions provided here [1]?

function b64EncodeUnicode(str) {
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
function(match, p1) {
return String.fromCharCode('0x' + p1);
}));}
b64EncodeUnicode('✓ à la mode');


[1] -
https://developer.mozilla.org/en/docs/Web/API/WindowBase64/Base64_encoding_and_decoding

Cheers!
Jerad

On Thu, Feb 25, 2016 at 8:45 AM, Kamidu Punchihewa 
wrote:

> Hi, Ruwan,
>
> Currently both escape and unescape methods are depricated.IMO using
> depricated methods is not advisable.
> WDYT?
>
> Thanks and Regards,
>
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> On Thu, Feb 25, 2016 at 8:11 AM, Ruwan Abeykoon  wrote:
>
>> Hi Kamidu,
>> Have we tried "escape" and "unescape" described on the same article?
>>
>> Cheers,
>>
>>
>> On Wed, Feb 24, 2016 at 11:44 AM, Kamidu Punchihewa 
>> wrote:
>>
>>> Hi Dakshitha/Jerad,
>>>
>>> Any thoughts on the above situation ?
>>>
>>> Thanks and Regards.
>>> Kamidu Sachith Punchihewa
>>> *Software Engineer*
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>>
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, retransmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>> -- Forwarded message --
>>> From: Kamidu Punchihewa 
>>> Date: Mon, Feb 15, 2016 at 11:40 AM
>>> Subject: [Dev][Encoding Special Charactors] Throws an Character Out Of
>>> Range exception
>>> To: WSO2 Developers' List 
>>>
>>>
>>> Hi All,
>>>
>>> When Encoding String including special / Latin characters throws an
>>> Character Out Of Range exception when we use *encodeURIComponent and
>>> decodeURIComponent* methods which was recommended to used behalf of  *escape
>>> and unescape* since there are deprecated.
>>> Using *escape and unescape* does not cause the above issues and Mozilla
>>> Developer Network Publication[1] still encourage to use *escape and
>>> unescape *alone with the *encodeURIComponent and decodeURIComponent. *
>>>
>>> Recommended Approach is given below.
>>>
>>> function utf8_to_b64(str) {
>>> return window.btoa(escape(encodeURIComponent(str)));}
>>> function b64_to_utf8(str) {
>>> return decodeURIComponent(unescape(window.atob(str)));}
>>>
>>>
>>> If we replace *escape and unescape with **encodeURIComponent and
>>> decodeURIComponent *the functions seems recursive as given below.
>>>
>>> function utf8_to_b64(str) {
>>> return window.btoa(encodeURIComponent(encodeURIComponent(str)));
>>> }
>>> function b64_to_utf8(str) {
>>> return decodeURIComponent(decodeURIComponent(window.atob(str)));
>>> }
>>>
>>> Which is the most appropriate way of utilising the above function?
>>>
>>> [1].https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/btoa
>>>
>>> Thanks & Best Regards.
>>> Kamidu Sachith Punchihewa
>>> *Software Engineer*
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>>
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, retransmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept 

Re: [Dev] WSO2 Committers += Kamidu Sachith Punchihewa

2016-02-24 Thread Natasha Wijesekara
Congratulations Kamidu !!

On Thu, Feb 25, 2016 at 8:48 AM, Praminda Jayawardana 
wrote:

> Congratulations Kamidu!
>
> On Thu, Feb 25, 2016 at 8:03 AM, Geesara Prathap  wrote:
>
>> Congrats bro... !!!
>>
>> On Wed, Feb 24, 2016 at 12:06 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Congratulations Kamidu.!!!
>>>
>>> On Wed, Feb 24, 2016 at 11:48 AM, Prabath Abeysekera 
>>> wrote:
>>>
 Hi Everyone,

 It's my pleasure to welcome Kamidu Sachith Punchihewa as a WSO2
 Committer. Kamidu has been a key member of the EMM/IoT team contributing to
 many aspects of product development ever since he joined us. In recognition
 of his contributions, ownership shown towards the tasks/responsibilities
 assigned to him, and commitment, he's been voted as a WSO2 committer.

 Kamidu, Welcome aboard and keep up the awesome work!

 Cheers,
 Prabath

 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

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


>>>
>>>
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Geesara Prathap Kulathunga
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> Mobile : +940772684174
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590818
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Natasha Wijesekare*

*Software Engineering Intern, WSO2  Inc:  http://wso2.com
*
*email  : nata...@wso2.com *
*mobile: +94 771358651*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kamidu Sachith Punchihewa

2016-02-24 Thread Praminda Jayawardana
Congratulations Kamidu!

On Thu, Feb 25, 2016 at 8:03 AM, Geesara Prathap  wrote:

> Congrats bro... !!!
>
> On Wed, Feb 24, 2016 at 12:06 PM, Menaka Jayawardena 
> wrote:
>
>> Congratulations Kamidu.!!!
>>
>> On Wed, Feb 24, 2016 at 11:48 AM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Everyone,
>>>
>>> It's my pleasure to welcome Kamidu Sachith Punchihewa as a WSO2
>>> Committer. Kamidu has been a key member of the EMM/IoT team contributing to
>>> many aspects of product development ever since he joined us. In recognition
>>> of his contributions, ownership shown towards the tasks/responsibilities
>>> assigned to him, and commitment, he's been voted as a WSO2 committer.
>>>
>>> Kamidu, Welcome aboard and keep up the awesome work!
>>>
>>> Cheers,
>>> Prabath
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Praminda Jayawardana*
Software Engineer
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 716 590818
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [Encoding Special Charactors] Throws an Character Out Of Range exception

2016-02-24 Thread Kamidu Punchihewa
Hi, Ruwan,

Currently both escape and unescape methods are depricated.IMO using
depricated methods is not advisable.
WDYT?

Thanks and Regards,

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.

On Thu, Feb 25, 2016 at 8:11 AM, Ruwan Abeykoon  wrote:

> Hi Kamidu,
> Have we tried "escape" and "unescape" described on the same article?
>
> Cheers,
>
>
> On Wed, Feb 24, 2016 at 11:44 AM, Kamidu Punchihewa 
> wrote:
>
>> Hi Dakshitha/Jerad,
>>
>> Any thoughts on the above situation ?
>>
>> Thanks and Regards.
>> Kamidu Sachith Punchihewa
>> *Software Engineer*
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>> -- Forwarded message --
>> From: Kamidu Punchihewa 
>> Date: Mon, Feb 15, 2016 at 11:40 AM
>> Subject: [Dev][Encoding Special Charactors] Throws an Character Out Of
>> Range exception
>> To: WSO2 Developers' List 
>>
>>
>> Hi All,
>>
>> When Encoding String including special / Latin characters throws an
>> Character Out Of Range exception when we use *encodeURIComponent and
>> decodeURIComponent* methods which was recommended to used behalf of  *escape
>> and unescape* since there are deprecated.
>> Using *escape and unescape* does not cause the above issues and Mozilla
>> Developer Network Publication[1] still encourage to use *escape and
>> unescape *alone with the *encodeURIComponent and decodeURIComponent. *
>>
>> Recommended Approach is given below.
>>
>> function utf8_to_b64(str) {
>> return window.btoa(escape(encodeURIComponent(str)));}
>> function b64_to_utf8(str) {
>> return decodeURIComponent(unescape(window.atob(str)));}
>>
>>
>> If we replace *escape and unescape with **encodeURIComponent and
>> decodeURIComponent *the functions seems recursive as given below.
>>
>> function utf8_to_b64(str) {
>> return window.btoa(encodeURIComponent(encodeURIComponent(str)));
>> }
>> function b64_to_utf8(str) {
>> return decodeURIComponent(decodeURIComponent(window.atob(str)));
>> }
>>
>> Which is the most appropriate way of utilising the above function?
>>
>> [1].https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/btoa
>>
>> Thanks & Best Regards.
>> Kamidu Sachith Punchihewa
>> *Software Engineer*
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB500]Error in Clustering Mode - JMS 2.0 Feature:Shared Topic Subscription

2016-02-24 Thread Dilshani Subasinghe
Hi Malaka,

This issue about clustering. Multiple subscribers do not affect to the
error.

Yes, I am using M2 pack.

Regards,
Dilshani


On Wed, Feb 24, 2016 at 8:38 PM, Malaka Silva  wrote:

> Hi Dilshani,
>
> Just to be clear is this issue related to clustering or issue persist when
> there are multiple subscribers?
>
> Also you must be using esb 5 milestone pack?
>
> On Wed, Feb 24, 2016 at 7:09 PM, Dilshani Subasinghe 
> wrote:
>
>> Hi ESB Team,
>>
>> I am testing new fearure called "JMS 2.0.0 Support"[1] and found an error
>> in "JMS 2.0 Feature:Shared Topic Subscription". Feature will successfully
>> functioning in Standalone mode. But it clustering mode, it will provide an
>> error as follows;
>>
>>  TID: [-1234] [] [2016-02-24 15:30:13,451]  WARN
>> {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -
>> Inbound JMS endpoint unable to get a connection.
>> {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
>> TID: [-1234] [] [2016-02-24 15:30:14,451] ERROR
>> {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
>> -  Connection cannot bb establish to the broke. Plese check the broker libs
>> provided.
>> {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
>>
>> This error will pop up from worker nodes. When clustering mode disabled,
>> it will work properly.
>>
>> Is there any special configuration for HornetQ when ESB in clustering
>> mode?
>>
>> As I found out, HornetQ "run.sh" script must modify to bind its' host
>> name. Likewise is there any special configurations for ESB cluster ?
>>
>> Thank you in advance.
>>
>> [1] - https://redmine.wso2.com/issues/4121
>>
>>
>> --
>> Best Regards,
>>
>> Software Engineer - QA
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94773375185
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94773375185
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [Encoding Special Charactors] Throws an Character Out Of Range exception

2016-02-24 Thread Ruwan Abeykoon
Hi Kamidu,
Have we tried "escape" and "unescape" described on the same article?

Cheers,


On Wed, Feb 24, 2016 at 11:44 AM, Kamidu Punchihewa 
wrote:

> Hi Dakshitha/Jerad,
>
> Any thoughts on the above situation ?
>
> Thanks and Regards.
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> -- Forwarded message --
> From: Kamidu Punchihewa 
> Date: Mon, Feb 15, 2016 at 11:40 AM
> Subject: [Dev][Encoding Special Charactors] Throws an Character Out Of
> Range exception
> To: WSO2 Developers' List 
>
>
> Hi All,
>
> When Encoding String including special / Latin characters throws an
> Character Out Of Range exception when we use *encodeURIComponent and
> decodeURIComponent* methods which was recommended to used behalf of  *escape
> and unescape* since there are deprecated.
> Using *escape and unescape* does not cause the above issues and Mozilla
> Developer Network Publication[1] still encourage to use *escape and
> unescape *alone with the *encodeURIComponent and decodeURIComponent. *
>
> Recommended Approach is given below.
>
> function utf8_to_b64(str) {
> return window.btoa(escape(encodeURIComponent(str)));}
> function b64_to_utf8(str) {
> return decodeURIComponent(unescape(window.atob(str)));}
>
>
> If we replace *escape and unescape with **encodeURIComponent and
> decodeURIComponent *the functions seems recursive as given below.
>
> function utf8_to_b64(str) {
> return window.btoa(encodeURIComponent(encodeURIComponent(str)));
> }
> function b64_to_utf8(str) {
> return decodeURIComponent(decodeURIComponent(window.atob(str)));
> }
>
> Which is the most appropriate way of utilising the above function?
>
> [1].https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/btoa
>
> Thanks & Best Regards.
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hasunie Adhikari

2016-02-24 Thread Geesara Prathap
Congratulations Hasunie !!!

On Wed, Feb 24, 2016 at 12:05 PM, Menaka Jayawardena 
wrote:

> Congratulations Hasuni...!!!
>
> On Wed, Feb 24, 2016 at 11:46 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Everyone,
>>
>> It's my pleasure to welcome Hasunie Adhikari as a WSO2 Committer. Hasunie
>> has been a key member of the EMM/IoT team contributing to many aspects of
>> product development ever since she joined us. In recognition of her
>> contributions, ownership shown towards the tasks/responsibilities assigned
>> to her, and commitment, she's been voted as a WSO2 committer.
>>
>> Hasunie, Welcome aboard and keep up the awesome work!
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kamidu Sachith Punchihewa

2016-02-24 Thread Geesara Prathap
Congrats bro... !!!

On Wed, Feb 24, 2016 at 12:06 PM, Menaka Jayawardena 
wrote:

> Congratulations Kamidu.!!!
>
> On Wed, Feb 24, 2016 at 11:48 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Everyone,
>>
>> It's my pleasure to welcome Kamidu Sachith Punchihewa as a WSO2
>> Committer. Kamidu has been a key member of the EMM/IoT team contributing to
>> many aspects of product development ever since he joined us. In recognition
>> of his contributions, ownership shown towards the tasks/responsibilities
>> assigned to him, and commitment, he's been voted as a WSO2 committer.
>>
>> Kamidu, Welcome aboard and keep up the awesome work!
>>
>> Cheers,
>> Prabath
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016: Proposal 7

2016-02-24 Thread Dinanjana Gunaratne
Dear Isuru,

Can you send me a link of api documentation of management package of ESB ?

On Sun, Feb 21, 2016 at 2:34 PM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

> Dear Isuru,
>
> Sorry for bothering you again. I created a sample module with some of the
> requirements you mentioned in gsoc project page. Those requirements are
> creating thread dumps when resources usage increased unexpectedly. Now I
> like to know how to integrate this in to ESB and test the functionality. I
> couldn't find the location of ESB source.
> On Feb 20, 2016 9:33 AM, "Dinanjana Gunaratne" <
> dinanjanagunara...@gmail.com> wrote:
>
>> Dear Isuru,
>>
>> Are we looking at an implementation like this ?
>> "Dashboard is a remote monitoring system which was developed to monitor
>> the status(server's aliveness and management details) of software deployed
>> remotely. This monitoring system is highly scalable and does not depend on
>> any component which is being monitored. With Dashboard comes a Java library
>> called "HeartBeat".HeartBeat is a client which was developed by us for
>> connects to Dashboard and share information. So any component wish to
>> register with Dashboard monitoring system must implement that Java
>> library."
>>
>> I did this during my internship. I think we are looking at an
>> implementation within esb for debugging and monitoring. am i correct ? :)
>>
>>
>> On Sat, Feb 20, 2016 at 9:12 AM, Isuru Udana  wrote:
>>
>>> Great...!
>>>
>>> btw, don't call me "Sir" :)
>>>
>>> On Sat, Feb 20, 2016 at 8:58 AM, Dinanjana Gunaratne <
>>> dinanjanagunara...@gmail.com> wrote:
>>>
 Dear Isuru,
 Found the solution :)

 On Sat, Feb 20, 2016 at 8:49 AM, Dinanjana Gunaratne <
 dinanjanagunara...@gmail.com> wrote:

> Dear Isuru,
> Sorry for bothering you. Found the solution for earlier problem from
> here [1
> ].
> Now i am facing a new problem. axis2 server looking for axis2.xml on wrong
> directory. below is the stack trace
>
> [2016-02-20 08:41:21,491] FATAL
> {samples.util.SampleAxis2ServerManager} -  [SimpleAxisServer] Shutti
> ng down. Error starting SimpleAxisServer
> org.apache.axis2.AxisFault: System can not find the given axis2.xml
> E:\Project\wso2esb-4.9.0\samples
> \axis2Serverrepository\conf\axis2.xml
> at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigu
> rator.java:118)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(Configura
> tionContextFactory.java:64)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSy
> stem(ConfigurationContextFactory.java:210)
> at
> samples.util.SampleAxis2ServerManager.start(SampleAxis2ServerManager.java:93)
> at
> samples.util.SampleAxis2Server.startServer(SampleAxis2Server.java:61)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at samples.util.Bootstrap.main(Bootstrap.java:132)
>
> I have defined AXIS2_HOME correctly
>
> [1]
> http://stackoverflow.com/questions/32866263/axis2server-packed-with-esb-4-9-0-doesnt-start-while-it-works-fine-4-8-0
>
> On Sat, Feb 20, 2016 at 7:55 AM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Dear sir,
>>
>> When i tried to run axis2server.bat came bundled with wso2esb i am
>> getting this
>>
>> Usage: java [-options] class [args...]
>>(to execute a class)
>>or  java [-options] -jar jarfile [args...]
>>(to execute a jar file)
>> where options include:
>> -d32  use a 32-bit data model if available
>> -d64  use a 64-bit data model if available
>> -server   to select the "server" VM
>>   The default VM is server.
>>
>> -cp 
>> -classpath 
>>   A ; separated list of directories, JAR archives,
>>   and ZIP archives to search for class files.
>> -D=
>>   set a system property
>> -verbose:[class|gc|jni]
>>   enable verbose output
>> -version  print product version and exit
>> -version:
>>   require the specified version to run
>> -showversion  print product version and continue
>> -jre-restrict-search | -no-jre-restrict-search
>> 

Re: [Dev] [EMM][APPM]How to call from emm jaggery apps to publisher jaggery apps

2016-02-24 Thread Udara Rathnayake
Out of $subject, but try not to hardcode application name(eg:- publisher).
Users tend to rename applications etc.. read it from a config at least, so
we have only one place to update.

On Wed, Feb 24, 2016 at 11:04 AM, Lakshman Udayakantha 
wrote:

> Hi,
>
> I have called using below code snippet a store rest API.
>
> var serviceURL = 
> "/publisher/api/asset/get/uuid/mobileapp"+provider+"/"+name+"/"+version;
> invokerUtil.get(
> serviceURL,
> function (data) {
> console.log("call succeeded...!");
> },
> function (data) {
> console.log("error occured.!!!");
> }
> );
>
>
> This call is done in a javascript method from emm to publisher jaggery
> app. But this call will fail with 401 unauthorised error. How do I get
> authenticate this call?
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM][APPM]How to call from emm jaggery apps to publisher jaggery apps

2016-02-24 Thread Sajith Abeywardhana
Hi Laksman,

It seems API url is wrong. It should be
"/publisher/api/asset/get/uuid/mobileapp/"+provider+"/"+name+"/"+version;
instead
of  "/publisher/api/asset/get/uuid/mobileapp"+provider+"/"+name+"/"+version;


*API code for your reference. *

//get uuid of given asset for-> provider,name,version
routeManager.register('GET', 'publisher',
'/publisher/api/asset/get/uuid/{type}/{provider}/{name}/{version}',
function (context) {
var assetProvider = context.params.provider;
var assetName = context.params.name;
var assetVersion = context.params.version;
var shortName = context.params.type;
var artifactManager = rxtManager.getArtifactManager(shortName);

var fn = function (asset) {
var cond1 = (asset.attributes.overview_provider ==
assetProvider ) ? true : false;
var cond2 = (asset.attributes.overview_name ==
assetName ) ? true : false;
var cond3 = (asset.attributes.overview_version ==
assetVersion ) ? true : false;
return (cond1 && cond2 && cond3);
}

var artifact = artifactManager.find(fn, null);
if (artifact && artifact != null && artifact.length > 0) {
var artifactId = artifact[0].id;
var res = {error: false, uuid: artifactId};
response.contentType = "application/json";
print(res);
} else {
var res = {error: false, uuid: null , message :'Could
not find UUID for given webapp'};
response.contentType = "application/json";
print(res);
}


});


*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
Email: saji...@wso2.com | Web: www.wso2.com

On Wed, Feb 24, 2016 at 9:34 PM, Lakshman Udayakantha 
wrote:

> Hi,
>
> I have called using below code snippet a store rest API.
>
> var serviceURL = 
> "/publisher/api/asset/get/uuid/mobileapp"+provider+"/"+name+"/"+version;
> invokerUtil.get(
> serviceURL,
> function (data) {
> console.log("call succeeded...!");
> },
> function (data) {
> console.log("error occured.!!!");
> }
> );
>
>
> This call is done in a javascript method from emm to publisher jaggery
> app. But this call will fail with 401 unauthorised error. How do I get
> authenticate this call?
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-24 Thread Tanya Madurapperuma
Hi Devs,

This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0

Please download DS 2.0.0 RC2 and test the functionality and vote. Vote will
be open for 72 hours or as needed.

Source & binary distribution files:
https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/

The tag to be voted upon:
https://github.com/wso2/product-ds/tree/v2.0.0-RC2


[+] Stable - go ahead and release
[-]  Broken - do not release (explain why)

Thanks and Regards,
~ WSO2 DS Team ~

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC]Proposal 3: [ML] Visual (Deep) Neural Network Builder

2016-02-24 Thread dinali dabarera
Hi,
Thank you for the advice. I am ready to engage in this project.

*Dinali Rosemin Dabarera*
BSc. Computer Engineering (2016)
Faculty of Engineering
University Of Peradeniya
Mobile:+94770198933
Blog: dinalirosemindabarera.blogspot.com
LinkedIn 

On Wed, Feb 24, 2016 at 9:48 PM, Dinali Dabarera  wrote:

>
>
> On Wed, Feb 24, 2016 at 11:50 AM, Upul Bandara  wrote:
>
>> Hi Dinali,
>>
>> We can give a quick introduction to the project.
>>
>> Please come and have a chat.
>>
>> Thanks,
>> Upul
>>
>> On Wed, Feb 24, 2016 at 11:32 AM, Dinali Dabarera 
>> wrote:
>>
>>> Can I get some more details on this project?
>>>
>>> On Wed, Feb 24, 2016 at 10:04 AM, Dinali Dabarera 
>>> wrote:
>>>
 Hi,
 I am a final year Computer Engineering undergraduate of University of
 Peradeniya. Currently I am working with wso2 products and I prefer machine
 learning , neural networks and research stuff. I am interested in this
 project  Neural Network Builder and I would like to proceed with this
 project.
 I have some hands on experience with some of the wso2 products and
 analytic stuff such as SPARK. I would like to know what exactly I have to
 do in this project so I study more deeper on those stuff.

 Thank you!


 --
 Dinali Rosemin
 University of Peradeniya (Computer Engineering)
 WSO2 Intern
 077-0198933

>>>
>>>
>>>
>>> --
>>> Dinali Rosemin
>>> University of Peradeniya (Computer Engineering)
>>> WSO2 Intern
>>> 077-0198933
>>>
>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345.
>>
>
>
>
> --
> Dinali Rosemin
> University of Peradeniya (Computer Engineering)
> WSO2 Intern
> 077-0198933
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM][APPM]How to call from emm jaggery apps to publisher jaggery apps

2016-02-24 Thread Lakshman Udayakantha
Hi,

I have called using below code snippet a store rest API.

var serviceURL =
"/publisher/api/asset/get/uuid/mobileapp"+provider+"/"+name+"/"+version;
invokerUtil.get(
serviceURL,
function (data) {
console.log("call succeeded...!");
},
function (data) {
console.log("error occured.!!!");
}
);


This call is done in a javascript method from emm to publisher jaggery app.
But this call will fail with 401 unauthorised error. How do I get
authenticate this call?

Thanks
-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0714388124*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB500]Error in Clustering Mode - JMS 2.0 Feature:Shared Topic Subscription

2016-02-24 Thread Malaka Silva
Hi Dilshani,

Just to be clear is this issue related to clustering or issue persist when
there are multiple subscribers?

Also you must be using esb 5 milestone pack?

On Wed, Feb 24, 2016 at 7:09 PM, Dilshani Subasinghe 
wrote:

> Hi ESB Team,
>
> I am testing new fearure called "JMS 2.0.0 Support"[1] and found an error
> in "JMS 2.0 Feature:Shared Topic Subscription". Feature will successfully
> functioning in Standalone mode. But it clustering mode, it will provide an
> error as follows;
>
>  TID: [-1234] [] [2016-02-24 15:30:13,451]  WARN
> {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -
> Inbound JMS endpoint unable to get a connection.
> {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
> TID: [-1234] [] [2016-02-24 15:30:14,451] ERROR
> {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
> -  Connection cannot bb establish to the broke. Plese check the broker libs
> provided.
> {org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
>
> This error will pop up from worker nodes. When clustering mode disabled,
> it will work properly.
>
> Is there any special configuration for HornetQ when ESB in clustering
> mode?
>
> As I found out, HornetQ "run.sh" script must modify to bind its' host
> name. Likewise is there any special configurations for ESB cluster ?
>
> Thank you in advance.
>
> [1] - https://redmine.wso2.com/issues/4121
>
>
> --
> Best Regards,
>
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB500]Error in Clustering Mode - JMS 2.0 Feature:Shared Topic Subscription

2016-02-24 Thread Dilshani Subasinghe
Hi ESB Team,

I am testing new fearure called "JMS 2.0.0 Support"[1] and found an error
in "JMS 2.0 Feature:Shared Topic Subscription". Feature will successfully
functioning in Standalone mode. But it clustering mode, it will provide an
error as follows;

 TID: [-1234] [] [2016-02-24 15:30:13,451]  WARN
{org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} -
Inbound JMS endpoint unable to get a connection.
{org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
TID: [-1234] [] [2016-02-24 15:30:14,451] ERROR
{org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}
-  Connection cannot bb establish to the broke. Plese check the broker libs
provided.
{org.wso2.carbon.inbound.endpoint.protocol.jms.factory.JMSConnectionFactory}

This error will pop up from worker nodes. When clustering mode disabled, it
will work properly.

Is there any special configuration for HornetQ when ESB in clustering mode?

As I found out, HornetQ "run.sh" script must modify to bind its' host name.
Likewise is there any special configurations for ESB cluster ?

Thank you in advance.

[1] - https://redmine.wso2.com/issues/4121


-- 
Best Regards,

Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94773375185
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Complex Event Processor 4.1.0 RC2

2016-02-24 Thread Sriskandarajah Suhothayan
Hi Isabelle

We'll add the results to the docs page. It's currently working in progress
we'll update this thread with more details.

Regards
Suho

On Wed, Feb 24, 2016 at 2:33 PM, Isabelle Mauny  wrote:

> All,
>
> Where are the performance and long-running tests results hosted ?
>
> Isabelle.
>
>
> -
> *Isabelle Mauny*
> VP, Product Management - WSO2, Inc. - http://wso2.com/
> email: isabe...@wso2.com - mobile (Spain) : +34 616050684 - mobile (Sri
> Lanka) +94 (0)774777663
> Landline:  +1 (650) 745 4499  (USA)  or +94 (11) 214 534 (SL) Extension :
> 7302
>
> On Wed, Feb 24, 2016 at 12:58 PM, Damith Wickramasinghe 
> wrote:
>
>> Thank you all.
>>
>> We are closing this vote and this vote passes with 7 +1 and 0 -1 votes.
>> We will proceed with publishing the maven artifacts.
>>
>> Regards,
>> Damith.
>>
>> On Wed, Feb 24, 2016 at 12:36 PM, Dilini Muthumala 
>> wrote:
>>
>>> Tested event simulator:
>>> - Sending single event
>>> - Sending multiple events by uploading file and data source
>>>
>>> No blockers or major issues found.
>>>
>>> My vote:
>>> [x] Stable - Go ahead and release
>>>
>>> Thanks,
>>> Dilini
>>>
>>>
>>> On Tue, Feb 23, 2016 at 9:14 PM, Tharik Kanaka  wrote:
>>>
 Tested Execution Manager and Siddhi Try it. No issues find

 On Wed, Feb 24, 2016 at 12:35 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

>
> Tested the Execution Plan Creation.
>
> No issues found
> [x] Stable - Go ahead and release
>
> Thanks,
> Suho
>
> On Sun, Feb 21, 2016 at 10:02 PM, Lasantha Fernando  > wrote:
>
>> Tested the Event Metrics feature and input part of arbitrary maps in
>> standalone mode.
>>
>> No issues found.
>> [x] Stable - Please go ahead and release
>>
>> Thanks,
>> Lasantha
>>
>> On 21 February 2016 at 07:00, Damith Wickramasinghe > > wrote:
>>
>>> Tested dashboard and related samples.
>>>
>>> No issues found.
>>> [+] Stable - Please go ahead and release..
>>>
>>> Regards,
>>> Damith.
>>>
>>> On Sun, Feb 21, 2016 at 4:42 PM, Grainier Perera 
>>> wrote:
>>>
 Tested following scenarios/features.

 1. Distributed deployment of CEP.
 2. High availability deployment of CEP.
 3. High availability deployment with state persistence (Single
 Node, Clustered).
 4. Siddhi Extensions in Storm (Map, Reorder, Time Series, Event
 Table, ML, Kalman, Geo).

 No issues found.
 [x] Stable - Please go ahead and release.

 Regards,

 On Sun, Feb 21, 2016 at 4:04 PM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> Tested following scenarios/features..
>
> 1. All Samples(-0022) related to Event Receivers
> 2. Basic end-to-end execution Flow
> 3. Execution Manager
> 4. Event Tracer
>
> No issues found.
> [x] Stable - Please go ahead and release..
>
> Thanks,
> Mohan
>
> On Fri, Feb 19, 2016 at 2:04 AM, Grainier Perera <
> grain...@wso2.com> wrote:
> > Hi Devs,
> >
> > This is the second release candidate of WSO2 Complex Event
> Processor 4.1.0.
> >
> > This release fixes the following issues:
> > https://wso2.org/jira/issues/?filter=12644
> >
> > Please download CEP 4.1.0 RC2 and test the functionality and
> vote. Vote will
> > be open for 72 hours or as needed.
> >
> > Source & binary distribution files:
> > https://github.com/wso2/product-cep/releases/tag/v4.1.0-RC2
> >
> > The tag to be voted upon:
> > https://github.com/wso2/product-cep/tree/release-4.1.0-RC2
> >
> > [+] Stable - go ahead and release
> > [-] Broken - do not release (explain why)
> >
> > Thanks and Regards,
> > WSO2 CEP Team.
> >
> > --
> > Grainier Perera
> > Software Engineer
> > Mobile : +94716122384
> > WSO2 Inc. | http://wso2.com
> > lean.enterprise.middleware
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> V. Mohanadarshan
> Senior Software Engineer,
> Data Technologies Team,
> WSO2, Inc. http://wso2.com
> lean.enterprise.middleware.
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>




Re: [Dev] [DAS] Compressed Event Analytics Relation Provider

2016-02-24 Thread Supun Sethunga
Thanks!

Regards,
Supun

On Wed, Feb 24, 2016 at 2:20 PM, Anjana Fernando  wrote:

> Merged the PR.
>
> Cheers,
> Anjana.
>
> On Wed, Feb 24, 2016 at 1:00 PM, Supun Sethunga  wrote:
>
>> Hi,
>>
>> I have done the changes suggested during the code review. Please review
>> and merge [1].
>>
>> Will send a separate PR for Compressing the json string.
>>
>>
>> Thanks,
>> Supun
>>
>> On Fri, Feb 19, 2016 at 3:37 PM, Anjana Fernando  wrote:
>>
>>> Hi Supun,
>>>
>>> Can you please schedule a code review for this.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Tue, Feb 16, 2016 at 4:30 PM, Supun Sethunga  wrote:
>>>
 Hi,

 Attached [1] is the PR for $subject. Please review and merge.

 [1] https://github.com/wso2/carbon-analytics/pull/156

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94 716546324

>>>
>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Compressing JSON payload in ESB Analytics

2016-02-24 Thread Supun Sethunga
Hi Viraj/Buddhima,

It seems like if we convert the compressed string to UTF-8 string (as in
[1]), we can't decompress it. AFAIU, we need to send the byte array after
compressing, then only we can use that byte array to decompress.

Were you able to convert it back to string?

[1]
https://github.com/wso2/carbon-mediation/blob/master/components/mediation-monitor/mediation-data-publisher/org.wso2.carbon.das.messageflow.data.publisher/src/main/java/org/wso2/carbon/das/messageflow/data/publisher/publish/Publisher.java#L203

Thanks,
Supun

-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Complex Event Processor 4.1.0 RC2

2016-02-24 Thread Isabelle Mauny
All,

Where are the performance and long-running tests results hosted ?

Isabelle.

-
*Isabelle Mauny*
VP, Product Management - WSO2, Inc. - http://wso2.com/
email: isabe...@wso2.com - mobile (Spain) : +34 616050684 - mobile (Sri
Lanka) +94 (0)774777663
Landline:  +1 (650) 745 4499  (USA)  or +94 (11) 214 534 (SL) Extension :
7302

On Wed, Feb 24, 2016 at 12:58 PM, Damith Wickramasinghe 
wrote:

> Thank you all.
>
> We are closing this vote and this vote passes with 7 +1 and 0 -1 votes.
> We will proceed with publishing the maven artifacts.
>
> Regards,
> Damith.
>
> On Wed, Feb 24, 2016 at 12:36 PM, Dilini Muthumala 
> wrote:
>
>> Tested event simulator:
>> - Sending single event
>> - Sending multiple events by uploading file and data source
>>
>> No blockers or major issues found.
>>
>> My vote:
>> [x] Stable - Go ahead and release
>>
>> Thanks,
>> Dilini
>>
>>
>> On Tue, Feb 23, 2016 at 9:14 PM, Tharik Kanaka  wrote:
>>
>>> Tested Execution Manager and Siddhi Try it. No issues find
>>>
>>> On Wed, Feb 24, 2016 at 12:35 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>

 Tested the Execution Plan Creation.

 No issues found
 [x] Stable - Go ahead and release

 Thanks,
 Suho

 On Sun, Feb 21, 2016 at 10:02 PM, Lasantha Fernando 
 wrote:

> Tested the Event Metrics feature and input part of arbitrary maps in
> standalone mode.
>
> No issues found.
> [x] Stable - Please go ahead and release
>
> Thanks,
> Lasantha
>
> On 21 February 2016 at 07:00, Damith Wickramasinghe 
> wrote:
>
>> Tested dashboard and related samples.
>>
>> No issues found.
>> [+] Stable - Please go ahead and release..
>>
>> Regards,
>> Damith.
>>
>> On Sun, Feb 21, 2016 at 4:42 PM, Grainier Perera 
>> wrote:
>>
>>> Tested following scenarios/features.
>>>
>>> 1. Distributed deployment of CEP.
>>> 2. High availability deployment of CEP.
>>> 3. High availability deployment with state persistence (Single Node,
>>> Clustered).
>>> 4. Siddhi Extensions in Storm (Map, Reorder, Time Series, Event
>>> Table, ML, Kalman, Geo).
>>>
>>> No issues found.
>>> [x] Stable - Please go ahead and release.
>>>
>>> Regards,
>>>
>>> On Sun, Feb 21, 2016 at 4:04 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 Tested following scenarios/features..

 1. All Samples(-0022) related to Event Receivers
 2. Basic end-to-end execution Flow
 3. Execution Manager
 4. Event Tracer

 No issues found.
 [x] Stable - Please go ahead and release..

 Thanks,
 Mohan

 On Fri, Feb 19, 2016 at 2:04 AM, Grainier Perera 
 wrote:
 > Hi Devs,
 >
 > This is the second release candidate of WSO2 Complex Event
 Processor 4.1.0.
 >
 > This release fixes the following issues:
 > https://wso2.org/jira/issues/?filter=12644
 >
 > Please download CEP 4.1.0 RC2 and test the functionality and
 vote. Vote will
 > be open for 72 hours or as needed.
 >
 > Source & binary distribution files:
 > https://github.com/wso2/product-cep/releases/tag/v4.1.0-RC2
 >
 > The tag to be voted upon:
 > https://github.com/wso2/product-cep/tree/release-4.1.0-RC2
 >
 > [+] Stable - go ahead and release
 > [-] Broken - do not release (explain why)
 >
 > Thanks and Regards,
 > WSO2 CEP Team.
 >
 > --
 > Grainier Perera
 > Software Engineer
 > Mobile : +94716122384
 > WSO2 Inc. | http://wso2.com
 > lean.enterprise.middleware
 >
 > ___
 > Dev mailing list
 > Dev@wso2.org
 > http://wso2.org/cgi-bin/mailman/listinfo/dev
 >



 --
 V. Mohanadarshan
 Senior Software Engineer,
 Data Technologies Team,
 WSO2, Inc. http://wso2.com
 lean.enterprise.middleware.

 email: mo...@wso2.com
 phone:(+94) 771117673

>>>
>>>
>>>
>>> --
>>> Grainier Perera
>>> Software Engineer
>>> Mobile : +94716122384
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; 

Re: [Dev] [DAS] Compressed Event Analytics Relation Provider

2016-02-24 Thread Anjana Fernando
Merged the PR.

Cheers,
Anjana.

On Wed, Feb 24, 2016 at 1:00 PM, Supun Sethunga  wrote:

> Hi,
>
> I have done the changes suggested during the code review. Please review
> and merge [1].
>
> Will send a separate PR for Compressing the json string.
>
>
> Thanks,
> Supun
>
> On Fri, Feb 19, 2016 at 3:37 PM, Anjana Fernando  wrote:
>
>> Hi Supun,
>>
>> Can you please schedule a code review for this.
>>
>> Cheers,
>> Anjana.
>>
>> On Tue, Feb 16, 2016 at 4:30 PM, Supun Sethunga  wrote:
>>
>>> Hi,
>>>
>>> Attached [1] is the PR for $subject. Please review and merge.
>>>
>>> [1] https://github.com/wso2/carbon-analytics/pull/156
>>>
>>> Thanks,
>>> Supun
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Microservices in fat jar mode should have inbuilt HTTPS support

2016-02-24 Thread Afkham Azeez
We have the transport file as well as the keystore file for HTTPS. It is
possible to embed the transport file but then we can't edit it. However,
embedding the keystore file in the jar is not practical because the
developer will not have access to the production keystore file while doing
day to day development.

On Wed, Feb 24, 2016 at 1:39 PM, Asanka Vithanage  wrote:

> Hi,
>
> In this case cant we implement same approach as OSGI for fat jar mode.
> Basically at Micro service development stage we define the config file in a
> default path and bundle it inside Jar file. Then execution level read the
> config and define HTTPS transport accordingly.
>
> On Wed, Feb 24, 2016 at 12:38 PM, Afkham Azeez  wrote:
>
>> It is not practical to allow hardcoding of HTTP related parameters such
>> as keystore password etc. so the best approach is passing in the config
>> file. For OSGi mode, the Netty transport bundle will look for the transport
>> config file in the default path and load it if found.
>>
>> On Wed, Feb 24, 2016 at 12:28 PM, Asanka Vithanage 
>> wrote:
>>
>>> Hi All,
>>>
>>> Currently if we need to enable HTTPS for micro service [in fat jar mode]
>>> we should define it on a netty-transports.yml file and run the jar file
>>> with define configuration. check the doc [1].
>>>
>>> I believe we should provide both HTTP and HTTPS inbuilt support in fat
>>> jar mode.Since current way supporting HTTPS is not much user friendly. Do
>>> we have an any technical limitation in providing this support?  WDYT?
>>>
>>> Further we don't have any documentation or sample which explains how to
>>> enable HTTPS on osgi mode as well.
>>>
>>> [1]
>>> https://docs.wso2.com/display/MSF4J100/Invoking+Your+Microservice+via+HTTPS
>>>
>>> --
>>> Asanka Vithanage
>>> Senior Software Engineer -QA
>>> Mobile: +94 0716286708
>>> Email: asan...@wso2.com
>>> WSO2 Inc. www.wso2.com
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSF4J framework support for transports like JMS, AMQP, VFS, ...

2016-02-24 Thread Afkham Azeez
We won't support VFS but we will support JMS. Currently we only support
HTTP.

On Wed, Feb 24, 2016 at 2:09 PM, Asanka Vithanage  wrote:

> Hi All,
>
> Do we support $Subject. I didn't see any documentation or samples on this
> area.
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MSF4J framework support for transports like JMS, AMQP, VFS, ...

2016-02-24 Thread Asanka Vithanage
Hi All,

Do we support $Subject. I didn't see any documentation or samples on this
area.


-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] create separate log4j log file for proxy service in ESB

2016-02-24 Thread Lakshani Gamage
Hi Akila,

Yes, You need to restart the server.

Thank,
Lakshani

On Wed, Feb 24, 2016 at 1:31 PM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

> Hi all,
>
>
>
> Do I need to restart ESB server after changing log4j.properties file???
>
>
>
> What I want to do is to stop logs in the wso2carbon.log file and create a
> separate log file for a specific proxy service.
>
>
>
> What I did was added below lines to the log4j file,
>
>
>
> log4j.category.SERVICE_LOGGER.TestService =INFO, PROXY_APPENDER
>
> log4j.additivity.SERVICE_LOGGER.TestService=false
>
> log4j.appender.PROXY_APPENDER=org.apache.log4j.DailyRollingFileAppender
>
>
> log4j.appender.PROXY_APPENDER.File=${carbon.home}/repository/logs/${instance.log}/TestService${instance.log}.log
>
> log4j.appender.PROXY_APPENDER.Append=true
>
> log4j.appender.PROXY_APPENDER.layout=org.apache.log4j.PatternLayout
>
> log4j.appender.PROXY_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS}
> [%X{ip}-%X{host}] [%t] %5p %c{1} %m%
>
>
>
> Regards,
>
> Akila Rathnayake
>
>
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] create separate log4j log file for proxy service in ESB

2016-02-24 Thread Udara Liyanage
Hi Akila,

Yes, you need to restart to see the changes in log4j.properties file.
However you can change logging by following [1] where you don't need to
restart server.

[1] https://docs.wso2.com/display/ESB490/Setting+Up+Logging

On Wed, Feb 24, 2016 at 1:36 PM, Udara Liyanage  wrote:

> Hi Akila,
>
> Yes, you need to restart to see the changes in log4j.properties file.
> However you can change logging by following [1] where you don't need to
> restart server.
>
> [1] https://docs.wso2.com/display/ESB490/Setting+Up+Logging
>
> On Wed, Feb 24, 2016 at 1:31 PM, Akila Nimantha [IT/EKO/LOITS] <
> aki...@lolctech.com> wrote:
>
>> Hi all,
>>
>>
>>
>> Do I need to restart ESB server after changing log4j.properties file???
>>
>>
>>
>> What I want to do is to stop logs in the wso2carbon.log file and create a
>> separate log file for a specific proxy service.
>>
>>
>>
>> What I did was added below lines to the log4j file,
>>
>>
>>
>> log4j.category.SERVICE_LOGGER.TestService =INFO, PROXY_APPENDER
>>
>> log4j.additivity.SERVICE_LOGGER.TestService=false
>>
>> log4j.appender.PROXY_APPENDER=org.apache.log4j.DailyRollingFileAppender
>>
>>
>> log4j.appender.PROXY_APPENDER.File=${carbon.home}/repository/logs/${instance.log}/TestService${instance.log}.log
>>
>> log4j.appender.PROXY_APPENDER.Append=true
>>
>> log4j.appender.PROXY_APPENDER.layout=org.apache.log4j.PatternLayout
>>
>> log4j.appender.PROXY_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS}
>> [%X{ip}-%X{host}] [%t] %5p %c{1} %m%
>>
>>
>>
>> Regards,
>>
>> Akila Rathnayake
>>
>>
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facsimile or (ii) delete this message immediately if this
>> is an electronic communication. Thank you.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Microservices in fat jar mode should have inbuilt HTTPS support

2016-02-24 Thread Asanka Vithanage
Hi,

In this case cant we implement same approach as OSGI for fat jar mode.
Basically at Micro service development stage we define the config file in a
default path and bundle it inside Jar file. Then execution level read the
config and define HTTPS transport accordingly.

On Wed, Feb 24, 2016 at 12:38 PM, Afkham Azeez  wrote:

> It is not practical to allow hardcoding of HTTP related parameters such as
> keystore password etc. so the best approach is passing in the config file.
> For OSGi mode, the Netty transport bundle will look for the transport
> config file in the default path and load it if found.
>
> On Wed, Feb 24, 2016 at 12:28 PM, Asanka Vithanage 
> wrote:
>
>> Hi All,
>>
>> Currently if we need to enable HTTPS for micro service [in fat jar mode]
>> we should define it on a netty-transports.yml file and run the jar file
>> with define configuration. check the doc [1].
>>
>> I believe we should provide both HTTP and HTTPS inbuilt support in fat
>> jar mode.Since current way supporting HTTPS is not much user friendly. Do
>> we have an any technical limitation in providing this support?  WDYT?
>>
>> Further we don't have any documentation or sample which explains how to
>> enable HTTPS on osgi mode as well.
>>
>> [1]
>> https://docs.wso2.com/display/MSF4J100/Invoking+Your+Microservice+via+HTTPS
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] create separate log4j log file for proxy service in ESB

2016-02-24 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

Do I need to restart ESB server after changing log4j.properties file???

What I want to do is to stop logs in the wso2carbon.log file and create a 
separate log file for a specific proxy service.

What I did was added below lines to the log4j file,

log4j.category.SERVICE_LOGGER.TestService =INFO, PROXY_APPENDER
log4j.additivity.SERVICE_LOGGER.TestService=false
log4j.appender.PROXY_APPENDER=org.apache.log4j.DailyRollingFileAppender
log4j.appender.PROXY_APPENDER.File=${carbon.home}/repository/logs/${instance.log}/TestService${instance.log}.log
log4j.appender.PROXY_APPENDER.Append=true
log4j.appender.PROXY_APPENDER.layout=org.apache.log4j.PatternLayout
log4j.appender.PROXY_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} 
[%X{ip}-%X{host}] [%t] %5p %c{1} %m%

Regards,
Akila Rathnayake


This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

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