Re: [Dev] Publish data set in DAS

2016-03-01 Thread Gimantha Bandara
Hi Lakshitha,

Also make sure that the stream is persisted, otherwise the data will not be
persisted in DAS. Please refer to [1]

[1]
https://docs.wso2.com/display/DAS300/Persisting+Data+for+Interactive+Analytics

On Wed, Mar 2, 2016 at 1:22 PM, Sinthuja Ragendran 
wrote:

> Hi Lakshitha,
>
>
> On Wed, Mar 2, 2016 at 1:20 PM, Lakshitha Warnakulasuriya <
> lakshitha...@gmail.com> wrote:
>
>> Thanx Ayyoob.
>>
>> I'm using ESB(4.8.1) and DAS(3.0.0) for publish data from ESB to DAS.
>>
>> For the testing, I want to publish string from ESB to DAS. I followed
>> below steps for do that. But it's not working.
>>
>>1. First I create a soap service for return a simple string like
>>'Hello World'.
>>2. Create BAM Profile in ESB.
>>3. Create a *Pass Through Proxy* in ESB using this soap wsdl.
>>4. Create *BAM Mediator* using above proxy service.
>>5. After invoke the service, there is a new stream created in DAS.
>>6. Create *soap event receiver* for the above stream.
>>
>> This needs to be wso2event receiver, not soap event receiver because the
> events are published as wso2 events not soap events.
>
> Thanks,
> Sinthuja.
>
>>
>>1. Check Data Explore in DAS.
>>
>> Any help can be really appreciated.
>>
>>
>> Thanks and Regards,
>> Lakshitha.
>>
>> On Tue, Mar 1, 2016 at 7:19 PM, Ayyoob Hamza  wrote:
>>
>>> Hi Lakshitha,
>>> WSO2 DAS has different event receivers[1] to receive events and there is
>>> one for soap[2]. Please refer the sample give in [2] which receive xml
>>> based events.
>>>
>>> [1] https://docs.wso2.com/display/DAS300/Configuring+Event+Receivers
>>> [2] https://docs.wso2.com/display/DAS300/SOAP+Event+Receiver
>>>
>>> Thanks
>>>
>>> *Ayyoob Hamza*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>>
>>> On Tue, Mar 1, 2016 at 1:01 PM, Lakshitha Warnakulasuriya <
>>> lakshitha...@gmail.com> wrote:
>>>
 I'll get some backend data set using soap service. I want to publish
 that data set in WSO2 DAS. How can i do this?
 Any help can be really appreciated.

 Thanks and Regards,
 Lakshitha.

 ___
 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
>>
>>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSOC2016: Proposal 6: [ML]

2016-03-01 Thread Mahesh Dananjaya
Hi all,
I am interesting on contribute to proposal 6: "Predictive analytic with
online data for WSO2 Machine Learner" for GSOC2 this time. Since i have
been engaging with some similar projects i think it will be a great
experience for me. Please let me know what you think and what you suggest.
I have been going through your documents.thank you.
regards,
Mahesh Dananjaya.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publish data set in DAS

2016-03-01 Thread Sinthuja Ragendran
Hi Lakshitha,


On Wed, Mar 2, 2016 at 1:20 PM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> Thanx Ayyoob.
>
> I'm using ESB(4.8.1) and DAS(3.0.0) for publish data from ESB to DAS.
>
> For the testing, I want to publish string from ESB to DAS. I followed
> below steps for do that. But it's not working.
>
>1. First I create a soap service for return a simple string like
>'Hello World'.
>2. Create BAM Profile in ESB.
>3. Create a *Pass Through Proxy* in ESB using this soap wsdl.
>4. Create *BAM Mediator* using above proxy service.
>5. After invoke the service, there is a new stream created in DAS.
>6. Create *soap event receiver* for the above stream.
>
> This needs to be wso2event receiver, not soap event receiver because the
events are published as wso2 events not soap events.

Thanks,
Sinthuja.

>
>1. Check Data Explore in DAS.
>
> Any help can be really appreciated.
>
>
> Thanks and Regards,
> Lakshitha.
>
> On Tue, Mar 1, 2016 at 7:19 PM, Ayyoob Hamza  wrote:
>
>> Hi Lakshitha,
>> WSO2 DAS has different event receivers[1] to receive events and there is
>> one for soap[2]. Please refer the sample give in [2] which receive xml
>> based events.
>>
>> [1] https://docs.wso2.com/display/DAS300/Configuring+Event+Receivers
>> [2] https://docs.wso2.com/display/DAS300/SOAP+Event+Receiver
>>
>> Thanks
>>
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>> On Tue, Mar 1, 2016 at 1:01 PM, Lakshitha Warnakulasuriya <
>> lakshitha...@gmail.com> wrote:
>>
>>> I'll get some backend data set using soap service. I want to publish
>>> that data set in WSO2 DAS. How can i do this?
>>> Any help can be really appreciated.
>>>
>>> Thanks and Regards,
>>> Lakshitha.
>>>
>>> ___
>>> 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
>
>


-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publish data set in DAS

2016-03-01 Thread Lakshitha Warnakulasuriya
Thanx Ayyoob.

I'm using ESB(4.8.1) and DAS(3.0.0) for publish data from ESB to DAS.

For the testing, I want to publish string from ESB to DAS. I followed below
steps for do that. But it's not working.

   1. First I create a soap service for return a simple string like 'Hello
   World'.
   2. Create BAM Profile in ESB.
   3. Create a *Pass Through Proxy* in ESB using this soap wsdl.
   4. Create *BAM Mediator* using above proxy service.
   5. After invoke the service, there is a new stream created in DAS.
   6. Create *soap event receiver* for the above stream.
   7. Check Data Explore in DAS.

Any help can be really appreciated.


Thanks and Regards,
Lakshitha.

On Tue, Mar 1, 2016 at 7:19 PM, Ayyoob Hamza  wrote:

> Hi Lakshitha,
> WSO2 DAS has different event receivers[1] to receive events and there is
> one for soap[2]. Please refer the sample give in [2] which receive xml
> based events.
>
> [1] https://docs.wso2.com/display/DAS300/Configuring+Event+Receivers
> [2] https://docs.wso2.com/display/DAS300/SOAP+Event+Receiver
>
> Thanks
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Tue, Mar 1, 2016 at 1:01 PM, Lakshitha Warnakulasuriya <
> lakshitha...@gmail.com> wrote:
>
>> I'll get some backend data set using soap service. I want to publish that
>> data set in WSO2 DAS. How can i do this?
>> Any help can be really appreciated.
>>
>> Thanks and Regards,
>> Lakshitha.
>>
>> ___
>> 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] Fwd: GSOC2016: Proposal 6: [ML]

2016-03-01 Thread Mahesh Dananjaya
Hi all,
I am interesting on contribute to proposal 6: "Predictive analytic with
online data for WSO2 Machine Learner" for GSOC2 this time. Since i have
been engaging with some similar projects i think it will be a great
experience for me. Please let me know what you think and what you suggest.
I have been going through your documents.thank you.
regards,
Mahesh Dananjaya.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [PET] Could not pass ftp over http proxy.

2016-03-01 Thread Vivekananthan Sivanayagam
Hi ,

I have implemented a method to support FTP Over proxy in file connector
version 2, I used Java Client [1](commons-net 3.4) and configured "Squid"
proxy[2].

I am getting the following errors when I invoke a method.

[2016-03-02 10:56:19,535] ERROR - FileFtpOverProxy Error occurred while
uploading:Connection is not open
java.io.IOException: Connection is not open
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:474)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:608)
at org.apache.commons.net.ftp.FTP.user(FTP.java:753)
at org.apache.commons.net.ftp.FTPClient.login(FTPClient.java:1034)
at
org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:151)
at
org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:47)
at
org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
at
org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:185)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:363)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

I have attached a FileFtpOverProxy.java here.

[1] https://commons.apache.org/proper/commons-net/
[2] http://www.tecmint.com/configure-squid-server-in-linux/






*Thank youVivekananthan SivanayagamAssociate Software Engineer |
WSO2E:vivekanant...@wso2.com M:+94752786138
<%2B94752786138>*
package org.wso2.carbon.connector;

import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.impl.builder.StAXOMBuilder;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPConnectionClosedException;
import org.apache.commons.net.ftp.FTPHTTPClient;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.synapse.MessageContext;
import org.apache.synapse.commons.json.JsonUtil;
import org.codehaus.jettison.json.JSONException;
import org.wso2.carbon.connector.core.AbstractConnector;
import org.wso2.carbon.connector.core.Connector;
import org.wso2.carbon.connector.core.util.ConnectorUtils;
import org.wso2.carbon.connector.util.FileConstants;
import org.wso2.carbon.connector.util.ResultPayloadCreate;

import javax.xml.stream.XMLStreamException;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;

public class FileFtpOverProxy extends AbstractConnector implements Connector {
private static final Log log = LogFactory.getLog(FileFtpOverProxy.class);

public void connect(MessageContext messageContext) {
String proxyHost = (String) ConnectorUtils.lookupTemplateParamater(messageContext,
FileConstants.PROXY_HOST);
String proxyPort = (String) ConnectorUtils.lookupTemplateParamater(messageContext,
FileConstants.PROXY_PORT);
String proxyUsername = (String) ConnectorUtils.lookupTemplateParamater(messageContext,
FileConstants.PROXY_USERNAME);
String proxyPassword = (String) ConnectorUtils.lookupTemplateParamater
(messageContext, FileConstants.PROXY_PASSWORD);
String ftpServer = (String) ConnectorUtils.lookupTemplateParamater
(messageContext, FileConstants.FTP_SERVER);
String ftpPort = (String) ConnectorUtils.lookupTemplateParamater(messageContext,
FileConstants.FTP_PORT);
String ftpUsername = (String) ConnectorUtils.lookupTemplateParamater(messageContext,
FileConstants.FTP_USERNAME);

[Dev] Drag and Drop not being supported by default in GMF gen code

2016-03-01 Thread Awanthika Senarath
Hi,

The issue of  datamapper operators not being drag, drop able, the issue is
that GMF auto gen code by default does not support drag drop ability.
Instead it support select and drop.

This could be fixed as follows according to [1].

In the gen code the DataMapperPaletteFactory class contains an internal
class *NodeToolEntry*  which by default extends ToolEntry class. It needs
to extend PaletteToolEntry class for the tool items to have drag and drop
capability.

I have done the changes and added a class comment "Generated NOT" to the
modified class.


[1] http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/msg01537.html

Regards
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Nuwan Pallewela
+1 for using "attr_" .


On Wed, Mar 2, 2016 at 11:35 AM, Sohani Weerasinghe  wrote:

> Thanks for the input. Let's use -  "name" : "attr_gender"
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 11:31 AM, Susinda Perera  wrote:
>
>> How about *attr* (lowercase)
>>
>> On Wed, Mar 2, 2016 at 11:29 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> I think it's better if we can use "ATR" instead of "ATT"
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Mar 2, 2016 at 11:25 AM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 When representing attributes in avro schema,  according to [1] the
 suggested approach is to use @ as a prefix.

 Since avro name should start with [A-Za-z] and subsequently contain
 only  [A-Za-z0-9_], shall we represent it as below (adding ATT as a prefix)

 "name" : "*ATT*_gender"

 [1]
 https://docs.google.com/spreadsheets/d/15eyRuxn9rFazULASqtB2DZaSAVznKqSNnIGrwvdpzic/edit?ts=56d5250b#gid=0

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

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Wed, Mar 2, 2016 at 7:47 AM, Sohani Weerasinghe 
 wrote:

>
> ​Please find the attached image which represents the prefix in the
> tree view
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe 
> wrote:
>
>>
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake <
>> jasin...@wso2.com> wrote:
>>
>>>
>>>
>>> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Thanks Nuwan for the response.

 When generating the avro schema by adding elements to the tree
 view, user can specify the namespace (xml namespace) with the prefix, 
 so
 that when generating the the avro schema we can map the namespace to 
 doc
 and prefix to the namespace in avro.

>>>
>>> Yes that's mapping is fine , somehow we need to show at least prefix
>>> in the tree view otherwise user experience won't be nice since user 
>>> have to
>>> check it explicitly while doing the mapping
>>>
>>
>> Yes, I have implemented that and the prefix will be shown in the tree
>> view.
>>
>>>
>>> Thanks and Regards
>>> /Jasintha.
>>>

 Thanks,
 Sohani

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

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela 
 wrote:

>
>
> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe <
> soh...@wso2.com> wrote:
>
>> Hi All,
>>
>> If we consider an XML which has multiple namespaces as below ,
>>
>> 
>> http://www.w3.org/TR/html4/;>
>>   Asian Coffee Table
>>   74
>>   129
>> 
>> http://www.w3schools.com/furniture;>
>>   African Coffee Table
>>   80
>>   120
>> 
>> 
>>
>> The avro schema should be as follows ,
>>
>> {
>>   "type" : "record",
>>   "name" : "root",
>>   "fields" : [ {
>> "type" : "record",
>> "name" : "tableRecord",
>>* "doc" : "http://www.w3.org/TR/html4/
>> ",*
>> "namespace" : "http://www.w3.org/TR/html4/;
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ]
>>   "doc" : "http://www.w3.org/TR/html4/;
>>   } , {
>>   "name" : "width",
>>   "type" : [ 

Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
Thanks for the input. Let's use -  "name" : "attr_gender"

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 2, 2016 at 11:31 AM, Susinda Perera  wrote:

> How about *attr* (lowercase)
>
> On Wed, Mar 2, 2016 at 11:29 AM, Sohani Weerasinghe 
> wrote:
>
>> I think it's better if we can use "ATR" instead of "ATT"
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 2, 2016 at 11:25 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> When representing attributes in avro schema,  according to [1] the
>>> suggested approach is to use @ as a prefix.
>>>
>>> Since avro name should start with [A-Za-z] and subsequently contain only
>>>  [A-Za-z0-9_], shall we represent it as below (adding ATT as a prefix)
>>>
>>> "name" : "*ATT*_gender"
>>>
>>> [1]
>>> https://docs.google.com/spreadsheets/d/15eyRuxn9rFazULASqtB2DZaSAVznKqSNnIGrwvdpzic/edit?ts=56d5250b#gid=0
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Mar 2, 2016 at 7:47 AM, Sohani Weerasinghe 
>>> wrote:
>>>

 ​Please find the attached image which represents the prefix in the tree
 view

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

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe 
 wrote:

>
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake  > wrote:
>
>>
>>
>> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Thanks Nuwan for the response.
>>>
>>> When generating the avro schema by adding elements to the tree view,
>>> user can specify the namespace (xml namespace) with the prefix, so that
>>> when generating the the avro schema we can map the namespace to doc and
>>> prefix to the namespace in avro.
>>>
>>
>> Yes that's mapping is fine , somehow we need to show at least prefix
>> in the tree view otherwise user experience won't be nice since user have 
>> to
>> check it explicitly while doing the mapping
>>
>
> Yes, I have implemented that and the prefix will be shown in the tree
> view.
>
>>
>> Thanks and Regards
>> /Jasintha.
>>
>>>
>>> Thanks,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela 
>>> wrote:
>>>


 On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> If we consider an XML which has multiple namespaces as below ,
>
> 
> http://www.w3.org/TR/html4/;>
>   Asian Coffee Table
>   74
>   129
> 
> http://www.w3schools.com/furniture;>
>   African Coffee Table
>   80
>   120
> 
> 
>
> The avro schema should be as follows ,
>
> {
>   "type" : "record",
>   "name" : "root",
>   "fields" : [ {
> "type" : "record",
> "name" : "tableRecord",
>* "doc" : "http://www.w3.org/TR/html4/
> ",*
> "namespace" : "http://www.w3.org/TR/html4/;
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ]
>   "doc" : "http://www.w3.org/TR/html4/;
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ]
>   }]
> }, {
> "type" : "record",
> "name" : "tableRecord",
>   *  "doc" : 

Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Awanthika Senarath
+1 to attr

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Mar 2, 2016 at 11:31 AM, Susinda Perera  wrote:

> How about *attr* (lowercase)
>
> On Wed, Mar 2, 2016 at 11:29 AM, Sohani Weerasinghe 
> wrote:
>
>> I think it's better if we can use "ATR" instead of "ATT"
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 2, 2016 at 11:25 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> When representing attributes in avro schema,  according to [1] the
>>> suggested approach is to use @ as a prefix.
>>>
>>> Since avro name should start with [A-Za-z] and subsequently contain only
>>>  [A-Za-z0-9_], shall we represent it as below (adding ATT as a prefix)
>>>
>>> "name" : "*ATT*_gender"
>>>
>>> [1]
>>> https://docs.google.com/spreadsheets/d/15eyRuxn9rFazULASqtB2DZaSAVznKqSNnIGrwvdpzic/edit?ts=56d5250b#gid=0
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Mar 2, 2016 at 7:47 AM, Sohani Weerasinghe 
>>> wrote:
>>>

 ​Please find the attached image which represents the prefix in the tree
 view

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

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe 
 wrote:

>
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake  > wrote:
>
>>
>>
>> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Thanks Nuwan for the response.
>>>
>>> When generating the avro schema by adding elements to the tree view,
>>> user can specify the namespace (xml namespace) with the prefix, so that
>>> when generating the the avro schema we can map the namespace to doc and
>>> prefix to the namespace in avro.
>>>
>>
>> Yes that's mapping is fine , somehow we need to show at least prefix
>> in the tree view otherwise user experience won't be nice since user have 
>> to
>> check it explicitly while doing the mapping
>>
>
> Yes, I have implemented that and the prefix will be shown in the tree
> view.
>
>>
>> Thanks and Regards
>> /Jasintha.
>>
>>>
>>> Thanks,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela 
>>> wrote:
>>>


 On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> If we consider an XML which has multiple namespaces as below ,
>
> 
> http://www.w3.org/TR/html4/;>
>   Asian Coffee Table
>   74
>   129
> 
> http://www.w3schools.com/furniture;>
>   African Coffee Table
>   80
>   120
> 
> 
>
> The avro schema should be as follows ,
>
> {
>   "type" : "record",
>   "name" : "root",
>   "fields" : [ {
> "type" : "record",
> "name" : "tableRecord",
>* "doc" : "http://www.w3.org/TR/html4/
> ",*
> "namespace" : "http://www.w3.org/TR/html4/;
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ]
>   "doc" : "http://www.w3.org/TR/html4/;
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ]
>   }]
> }, {
> "type" : "record",
> "name" : "tableRecord",
>   *  "doc" : "http://www.w3schools.com/furniture
> ",*
> "namespace" : "http://www.w3schools.com/furniture;
> "fields" : 

Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Susinda Perera
How about *attr* (lowercase)

On Wed, Mar 2, 2016 at 11:29 AM, Sohani Weerasinghe  wrote:

> I think it's better if we can use "ATR" instead of "ATT"
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 11:25 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> When representing attributes in avro schema,  according to [1] the
>> suggested approach is to use @ as a prefix.
>>
>> Since avro name should start with [A-Za-z] and subsequently contain only
>>  [A-Za-z0-9_], shall we represent it as below (adding ATT as a prefix)
>>
>> "name" : "*ATT*_gender"
>>
>> [1]
>> https://docs.google.com/spreadsheets/d/15eyRuxn9rFazULASqtB2DZaSAVznKqSNnIGrwvdpzic/edit?ts=56d5250b#gid=0
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 2, 2016 at 7:47 AM, Sohani Weerasinghe 
>> wrote:
>>
>>>
>>> ​Please find the attached image which represents the prefix in the tree
>>> view
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe 
>>> wrote:
>>>


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

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake 
 wrote:

>
>
> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
> wrote:
>
>> Thanks Nuwan for the response.
>>
>> When generating the avro schema by adding elements to the tree view,
>> user can specify the namespace (xml namespace) with the prefix, so that
>> when generating the the avro schema we can map the namespace to doc and
>> prefix to the namespace in avro.
>>
>
> Yes that's mapping is fine , somehow we need to show at least prefix
> in the tree view otherwise user experience won't be nice since user have 
> to
> check it explicitly while doing the mapping
>

 Yes, I have implemented that and the prefix will be shown in the tree
 view.

>
> Thanks and Regards
> /Jasintha.
>
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela 
>> wrote:
>>
>>>
>>>
>>> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 If we consider an XML which has multiple namespaces as below ,

 
 http://www.w3.org/TR/html4/;>
   Asian Coffee Table
   74
   129
 
 http://www.w3schools.com/furniture;>
   African Coffee Table
   80
   120
 
 

 The avro schema should be as follows ,

 {
   "type" : "record",
   "name" : "root",
   "fields" : [ {
 "type" : "record",
 "name" : "tableRecord",
* "doc" : "http://www.w3.org/TR/html4/
 ",*
 "namespace" : "http://www.w3.org/TR/html4/;
 "fields" : [ {
   "name" : "name",
   "type" : [ "null", "string" ]
   "doc" : "http://www.w3.org/TR/html4/;
   } , {
   "name" : "width",
   "type" : [ "null", "int" ]
   },{
   "name" : "length",
   "type" : [ "null", "int" ]
   }]
 }, {
 "type" : "record",
 "name" : "tableRecord",
   *  "doc" : "http://www.w3schools.com/furniture
 ",*
 "namespace" : "http://www.w3schools.com/furniture;
 "fields" : [ {
   "name" : "name",
   "type" : [ "null", "string" ]
   } , {
   "name" : "width",
   "type" : [ "null", "int" ]
   },{
   "name" : "length",
   "type" : [ "null", "int" ]
   }]

Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
I think it's better if we can use "ATR" instead of "ATT"

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 2, 2016 at 11:25 AM, Sohani Weerasinghe  wrote:

> Hi All,
>
> When representing attributes in avro schema,  according to [1] the
> suggested approach is to use @ as a prefix.
>
> Since avro name should start with [A-Za-z] and subsequently contain only
>  [A-Za-z0-9_], shall we represent it as below (adding ATT as a prefix)
>
> "name" : "*ATT*_gender"
>
> [1]
> https://docs.google.com/spreadsheets/d/15eyRuxn9rFazULASqtB2DZaSAVznKqSNnIGrwvdpzic/edit?ts=56d5250b#gid=0
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 7:47 AM, Sohani Weerasinghe 
> wrote:
>
>>
>> ​Please find the attached image which represents the prefix in the tree
>> view
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe 
>> wrote:
>>
>>>
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake 
>>> wrote:
>>>


 On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
 wrote:

> Thanks Nuwan for the response.
>
> When generating the avro schema by adding elements to the tree view,
> user can specify the namespace (xml namespace) with the prefix, so that
> when generating the the avro schema we can map the namespace to doc and
> prefix to the namespace in avro.
>

 Yes that's mapping is fine , somehow we need to show at least prefix in
 the tree view otherwise user experience won't be nice since user have to
 check it explicitly while doing the mapping

>>>
>>> Yes, I have implemented that and the prefix will be shown in the tree
>>> view.
>>>

 Thanks and Regards
 /Jasintha.

>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela 
> wrote:
>
>>
>>
>> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> If we consider an XML which has multiple namespaces as below ,
>>>
>>> 
>>> http://www.w3.org/TR/html4/;>
>>>   Asian Coffee Table
>>>   74
>>>   129
>>> 
>>> http://www.w3schools.com/furniture;>
>>>   African Coffee Table
>>>   80
>>>   120
>>> 
>>> 
>>>
>>> The avro schema should be as follows ,
>>>
>>> {
>>>   "type" : "record",
>>>   "name" : "root",
>>>   "fields" : [ {
>>> "type" : "record",
>>> "name" : "tableRecord",
>>>* "doc" : "http://www.w3.org/TR/html4/
>>> ",*
>>> "namespace" : "http://www.w3.org/TR/html4/;
>>> "fields" : [ {
>>>   "name" : "name",
>>>   "type" : [ "null", "string" ]
>>>   "doc" : "http://www.w3.org/TR/html4/;
>>>   } , {
>>>   "name" : "width",
>>>   "type" : [ "null", "int" ]
>>>   },{
>>>   "name" : "length",
>>>   "type" : [ "null", "int" ]
>>>   }]
>>> }, {
>>> "type" : "record",
>>> "name" : "tableRecord",
>>>   *  "doc" : "http://www.w3schools.com/furniture
>>> ",*
>>> "namespace" : "http://www.w3schools.com/furniture;
>>> "fields" : [ {
>>>   "name" : "name",
>>>   "type" : [ "null", "string" ]
>>>   } , {
>>>   "name" : "width",
>>>   "type" : [ "null", "int" ]
>>>   },{
>>>   "name" : "length",
>>>   "type" : [ "null", "int" ]
>>>   }]
>>> } ]
>>> }
>>>
>>> When representing this using the Visual DataMapper Editor, in order
>>> to differentiate the two records, we can add a namespace prefix to the 
>>> name
>>> of the record as shown below.
>>>
>>>
>>> ​But when 

[Dev] Fwd: GSoC '16 - Proposal 1

2016-03-01 Thread Malaka Silva
Hi
​
Danushka,

Sounds good. Please proceed.

-- Forwarded message --
From: Danushka Menikkumbura 
Date: Wed, Mar 2, 2016 at 11:07 AM
Subject: GSoC '16 - Proposal 1
To: mal...@wso2.com, saj...@wso2.com


Hi Malaka & Sajini,

I am an ex-WOS2er and Purdue CS grad student at the moment.

I am planning to take part in GSoC '16 and find $SUBJECT interesting. I can
go through the references given on the proposals page just to start with.
Anyways please let me know what you think.

Cheers,
​​
Danushka



-- 

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


Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
Hi All,

When representing attributes in avro schema,  according to [1] the
suggested approach is to use @ as a prefix.

Since avro name should start with [A-Za-z] and subsequently contain only
 [A-Za-z0-9_], shall we represent it as below (adding ATT as a prefix)

"name" : "*ATT*_gender"

[1]
https://docs.google.com/spreadsheets/d/15eyRuxn9rFazULASqtB2DZaSAVznKqSNnIGrwvdpzic/edit?ts=56d5250b#gid=0

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 2, 2016 at 7:47 AM, Sohani Weerasinghe  wrote:

>
> ​Please find the attached image which represents the prefix in the tree
> view
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe 
> wrote:
>
>>
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake 
>> wrote:
>>
>>>
>>>
>>> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Thanks Nuwan for the response.

 When generating the avro schema by adding elements to the tree view,
 user can specify the namespace (xml namespace) with the prefix, so that
 when generating the the avro schema we can map the namespace to doc and
 prefix to the namespace in avro.

>>>
>>> Yes that's mapping is fine , somehow we need to show at least prefix in
>>> the tree view otherwise user experience won't be nice since user have to
>>> check it explicitly while doing the mapping
>>>
>>
>> Yes, I have implemented that and the prefix will be shown in the tree
>> view.
>>
>>>
>>> Thanks and Regards
>>> /Jasintha.
>>>

 Thanks,
 Sohani

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

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela 
 wrote:

>
>
> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> If we consider an XML which has multiple namespaces as below ,
>>
>> 
>> http://www.w3.org/TR/html4/;>
>>   Asian Coffee Table
>>   74
>>   129
>> 
>> http://www.w3schools.com/furniture;>
>>   African Coffee Table
>>   80
>>   120
>> 
>> 
>>
>> The avro schema should be as follows ,
>>
>> {
>>   "type" : "record",
>>   "name" : "root",
>>   "fields" : [ {
>> "type" : "record",
>> "name" : "tableRecord",
>>* "doc" : "http://www.w3.org/TR/html4/
>> ",*
>> "namespace" : "http://www.w3.org/TR/html4/;
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ]
>>   "doc" : "http://www.w3.org/TR/html4/;
>>   } , {
>>   "name" : "width",
>>   "type" : [ "null", "int" ]
>>   },{
>>   "name" : "length",
>>   "type" : [ "null", "int" ]
>>   }]
>> }, {
>> "type" : "record",
>> "name" : "tableRecord",
>>   *  "doc" : "http://www.w3schools.com/furniture
>> ",*
>> "namespace" : "http://www.w3schools.com/furniture;
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ]
>>   } , {
>>   "name" : "width",
>>   "type" : [ "null", "int" ]
>>   },{
>>   "name" : "length",
>>   "type" : [ "null", "int" ]
>>   }]
>> } ]
>> }
>>
>> When representing this using the Visual DataMapper Editor, in order
>> to differentiate the two records, we can add a namespace prefix to the 
>> name
>> of the record as shown below.
>>
>>
>> ​But when generating the Avro Schema, if we pass this value as the
>> name of the node it  throws *org.apache.avro.SchemaParseException:
>> Illegal character in: y:tableRecord.*
>>
>
> AVRO name should start with [A-Za-z] and subsequently contain only  
> [A-Za-z0-9_].
> So we can not pass name with namespace prefix.
>
>>
>> So, if we use only the name (tableRecord, by removing the prefix) to
>> create the avro schema, how are we going to differentiate the records
>> 

Re: [Dev] [ML] Visual (Deep) Neural Network Builder(GSoc Application)

2016-03-01 Thread Upul Bandara
[Looping dev]


On Wed, Mar 2, 2016 at 11:09 AM, shubham kumar 
wrote:

> Hi Upul,
>
> I want to work on this project during summers. I am very good at doing
> tasks. I learn and implement things quickly. Presently I am in BTech 4rth
> year and I am working as Big Data Intern in Valiance Solutions on Spark and
> Hadoop.
>
> Please give me any tasks so that I can proof my skills.
>
> Thanks & Regards
> Shubham Kumar
>



-- 
Upul Bandara,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Puppet-Modules] Puppet Error: cwd must be a fully qualified path

2016-03-01 Thread Thanuja Uruththirakodeeswaran
Thanks Manula. I'll update the code.

On Wed, Mar 2, 2016 at 10:51 AM, Manula Waidyanatha  wrote:

> Hi Thanuja,
>
> Always follow the Puppetlabs language style guide [1] when writing puppet
> manifests.
> Even the above code is working, the best practice to surround the
> variables with curly braces.
>
> [1] https://docs.puppetlabs.com/guides/style_guide.html#variables
>
> On Tue, Mar 1, 2016 at 6:59 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Thanks Manula !!!
>>
>> The error is because of the syntax error that we need to use *" " *for
>> if the value has variable. Here the cwd attribute value has carbon_home
>> variable. Following code will resolve the above puppet error:
>>
>> exec { "Applying secure vault":
>>   user   => $user,
>>   path   => 
>> '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
>>   cwd=> "$carbon_home/bin",
>>   command=> "sh ciphertool.sh -Dconfigure 
>> -Dpassword=$key_store_password",
>>   logoutput  => 'on_failure'
>> }
>>
>> Thanks.
>>
>> On Tue, Mar 1, 2016 at 6:27 PM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying to change the cipher tool execution command at [1] so that
>>> first I need to go inside the $carbon_home/bin directory and then trying to
>>> execute the cipher tool with the following code snippet (We need to do this
>>> for carbon kernel 4.2.0 based products as discussed in [2]) :
>>>
>>> exec { "Applying secure vault":
>>>   user   => $user,
>>>   path   => 
>>> '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
>>>   cwd=> '$carbon_home/bin',
>>>   command=> 'sh ciphertool.sh -Dconfigure 
>>> -Dpassword=$key_store_password',
>>>   logoutput  => 'on_failure'
>>> }
>>>
>>> But the above exec fails with below error:
>>>
>>> ==> brs.dev.wso2.org: Error: Parameter cwd failed on Exec[Applying
>>> secure vault]: cwd must be a fully qualified path at
>>> /tmp/vagrant-puppet/modules-3737bfc9b53e65d741f2b9b350c2e2ca/wso2base/manifests/apply_secure_vault.pp:28
>>> ==> brs.dev.wso2.org: Wrapped exception:
>>> ==> brs.dev.wso2.org: cwd must be a fully qualified path
>>>
>>> Please give suggestion to resolve this error.
>>>
>>> [1].
>>> https://github.com/wso2/puppet-modules/blob/master/modules/wso2base/manifests/apply_secure_vault.pp#L25
>>> [2]. http://mail.wso2.org/mailarchive/dev/2014-April/029446.html
>>>
>>> Thanks.
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>
>>
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>
>
>
> --
> Regards,
> Manula Waidyanatha
> Systems Engineer, WSO2, Inc.
> Phone: +94 774 195853
> Blog: blog.manula.org
>



-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [Puppet-Modules] Puppet Error: cwd must be a fully qualified path

2016-03-01 Thread Manula Waidyanatha
Hi Thanuja,

Always follow the Puppetlabs language style guide [1] when writing puppet
manifests.
Even the above code is working, the best practice to surround the variables
with curly braces.

[1] https://docs.puppetlabs.com/guides/style_guide.html#variables

On Tue, Mar 1, 2016 at 6:59 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Thanks Manula !!!
>
> The error is because of the syntax error that we need to use *" " *for if
> the value has variable. Here the cwd attribute value has carbon_home
> variable. Following code will resolve the above puppet error:
>
> exec { "Applying secure vault":
>   user   => $user,
>   path   => 
> '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
>   cwd=> "$carbon_home/bin",
>   command=> "sh ciphertool.sh -Dconfigure 
> -Dpassword=$key_store_password",
>   logoutput  => 'on_failure'
> }
>
> Thanks.
>
> On Tue, Mar 1, 2016 at 6:27 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi All,
>>
>> I'm trying to change the cipher tool execution command at [1] so that
>> first I need to go inside the $carbon_home/bin directory and then trying to
>> execute the cipher tool with the following code snippet (We need to do this
>> for carbon kernel 4.2.0 based products as discussed in [2]) :
>>
>> exec { "Applying secure vault":
>>   user   => $user,
>>   path   => 
>> '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
>>   cwd=> '$carbon_home/bin',
>>   command=> 'sh ciphertool.sh -Dconfigure 
>> -Dpassword=$key_store_password',
>>   logoutput  => 'on_failure'
>> }
>>
>> But the above exec fails with below error:
>>
>> ==> brs.dev.wso2.org: Error: Parameter cwd failed on Exec[Applying
>> secure vault]: cwd must be a fully qualified path at
>> /tmp/vagrant-puppet/modules-3737bfc9b53e65d741f2b9b350c2e2ca/wso2base/manifests/apply_secure_vault.pp:28
>> ==> brs.dev.wso2.org: Wrapped exception:
>> ==> brs.dev.wso2.org: cwd must be a fully qualified path
>>
>> Please give suggestion to resolve this error.
>>
>> [1].
>> https://github.com/wso2/puppet-modules/blob/master/modules/wso2base/manifests/apply_secure_vault.pp#L25
>> [2]. http://mail.wso2.org/mailarchive/dev/2014-April/029446.html
>>
>> Thanks.
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



-- 
Regards,
Manula Waidyanatha
Systems Engineer, WSO2, Inc.
Phone: +94 774 195853
Blog: blog.manula.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] No such method when loading third party jar in eclipse

2016-03-01 Thread Awanthika Senarath
The fix is available at git branch core-update-4.0.0.201603020233

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Mar 2, 2016 at 10:35 AM, Awanthika Senarath 
wrote:

> I have fixed this by moving the datamapper specific libraries from the
> kernel libraries plugin into the datamapper plugin. This will give us the
> flexibility to change and add different libraries required for datamapper
> independent of kernel releases,
>
> We can release the composite zip for the ESB plugin milestone including
> this kernel update to the library feature. This fix also contains the fix
> for cache mediator jar required by ESB diagram.
>
> update is org.wso2.developerstudio.kernel.core.feature_4.0.0.201603020233.
>
> This is available in the builder machine P2
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Tue, Mar 1, 2016 at 9:21 AM, Awanthika Senarath 
> wrote:
>
>> Hi all,
>>
>> Apart from the kernel libraries bundle exporting the jackson libraries, I
>> could also observe that org.wso2.datamapper.engine-0.0.1.jar bundling
>> jackson packages.
>>
>> this bundle export all jackson packages without any version declaration.
>>
>> @Susinda/ Nuwan : Any idea why this composite library was introduced
>> including all avro, jackson dependency libraries bundled under a separate
>> name?
>>
>>
>> Regards
>> Awanthika
>>
>>
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Mon, Feb 29, 2016 at 4:48 PM, Awanthika Senarath 
>> wrote:
>>
>>> I have added the library into the libs folder and added them to the
>>> class-path only. Since it is in the same plugin I did not export and import
>>> explicitly.
>>>
>>> Regards
>>> Awanthika
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Mon, Feb 29, 2016 at 4:13 PM, Nuwan Pallewela 
>>> wrote:
>>>
 Hi Awanthika,

 Have you exported the packages you need to use?

 Thanks,
 Nuwan

 On Mon, Feb 29, 2016 at 3:47 PM, Awanthika Senarath  wrote:

> The issue is,
>
> We are using two jackson jars in our source namely,
>
> jackson-mapper-asl-1.9.3.jar and jackson-mapper-asl-1.8.10.jar,
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Feb 29, 2016 at 3:41 PM, Awanthika Senarath <
> awanth...@wso2.com> wrote:
>
>> Hello All,
>>
>> I have a third party dependency in my eclipse RCP plugin to the
>> following jars,
>>
>> jaxb-impl-2.2.4-1.jar,
>> jaxb-xjc-2.2.4-1.jar,
>> jackson-mapper-asl-1.9.3.jar,
>> jackson-core-asl-1.9.3.jar,
>> jackson-annotations-2.1.0.jar
>>
>> I have loaded them through a lib folder, added to eclipse class-path
>> and have the entry [1] in my META-INF file.
>>
>> There are no errors shown in the project explorer or in the java
>> editor of the classes.
>>
>> During runtime all the other libs are loaded fine, the firt jar
>> loaded is jaxb-xjc-2.2.4-1.jar,, "Driver" method. But it throws a runtime
>> error [2] saying method not found. When I cheked the source of the jar 
>> [3]
>> I could see that the method exists.
>>
>> Appreciate any help on resolving this.
>>
>>
>> [1]  lib/jaxb-impl-2.2.4-1.jar,
>>  lib/jaxb-xjc-2.2.4-1.jar,
>>  lib/jackson-mapper-asl-1.9.3.jar,
>>  lib/jackson-core-asl-1.9.3.jar,
>>  lib/jackson-annotations-2.1.0.jar
>>
>> [2] java.util.ServiceConfigurationError: com.sun.tools.xjc.Plugin:
>> Provider
>> org.wso2.developerstudio.visualdatamapper.diagram.avro.generators.AvroSchemagenPlugin
>> could not be instantiated
>> at java.util.ServiceLoader.fail(ServiceLoader.java:232)
>> at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
>> at
>> java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
>> at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
>> at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
>> at com.sun.tools.xjc.Options.findServices(Options.java:931)
>> at com.sun.tools.xjc.Options.getAllPlugins(Options.java:367)
>> at com.sun.tools.xjc.Options.parseArgument(Options.java:671)
>> at com.sun.tools.xjc.Driver$OptionsEx.parseArgument(Driver.java:501)
>> at com.sun.tools.xjc.Options.parseArguments(Options.java:781)
>> at com.sun.tools.xjc.Driver.run(Driver.java:239)
>> at com.sun.tools.xjc.Driver.run(Driver.java:199)
>> at com.sun.tools.xjc.Driver._main(Driver.java:122)
>> at com.sun.tools.xjc.Driver.access$000(Driver.java:79)
>> at com.sun.tools.xjc.Driver$1.run(Driver.java:102)
>> Caused by: java.lang.NoSuchMethodError:
>> 

Re: [Dev] No such method when loading third party jar in eclipse

2016-03-01 Thread Awanthika Senarath
I have fixed this by moving the datamapper specific libraries from the
kernel libraries plugin into the datamapper plugin. This will give us the
flexibility to change and add different libraries required for datamapper
independent of kernel releases,

We can release the composite zip for the ESB plugin milestone including
this kernel update to the library feature. This fix also contains the fix
for cache mediator jar required by ESB diagram.

update is org.wso2.developerstudio.kernel.core.feature_4.0.0.201603020233.

This is available in the builder machine P2

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, Mar 1, 2016 at 9:21 AM, Awanthika Senarath 
wrote:

> Hi all,
>
> Apart from the kernel libraries bundle exporting the jackson libraries, I
> could also observe that org.wso2.datamapper.engine-0.0.1.jar bundling
> jackson packages.
>
> this bundle export all jackson packages without any version declaration.
>
> @Susinda/ Nuwan : Any idea why this composite library was introduced
> including all avro, jackson dependency libraries bundled under a separate
> name?
>
>
> Regards
> Awanthika
>
>
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Feb 29, 2016 at 4:48 PM, Awanthika Senarath 
> wrote:
>
>> I have added the library into the libs folder and added them to the
>> class-path only. Since it is in the same plugin I did not export and import
>> explicitly.
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Mon, Feb 29, 2016 at 4:13 PM, Nuwan Pallewela  wrote:
>>
>>> Hi Awanthika,
>>>
>>> Have you exported the packages you need to use?
>>>
>>> Thanks,
>>> Nuwan
>>>
>>> On Mon, Feb 29, 2016 at 3:47 PM, Awanthika Senarath 
>>> wrote:
>>>
 The issue is,

 We are using two jackson jars in our source namely,

 jackson-mapper-asl-1.9.3.jar and jackson-mapper-asl-1.8.10.jar,

 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



 On Mon, Feb 29, 2016 at 3:41 PM, Awanthika Senarath  wrote:

> Hello All,
>
> I have a third party dependency in my eclipse RCP plugin to the
> following jars,
>
> jaxb-impl-2.2.4-1.jar,
> jaxb-xjc-2.2.4-1.jar,
> jackson-mapper-asl-1.9.3.jar,
> jackson-core-asl-1.9.3.jar,
> jackson-annotations-2.1.0.jar
>
> I have loaded them through a lib folder, added to eclipse class-path
> and have the entry [1] in my META-INF file.
>
> There are no errors shown in the project explorer or in the java
> editor of the classes.
>
> During runtime all the other libs are loaded fine, the firt jar loaded
> is jaxb-xjc-2.2.4-1.jar,, "Driver" method. But it throws a runtime error
> [2] saying method not found. When I cheked the source of the jar [3] I
> could see that the method exists.
>
> Appreciate any help on resolving this.
>
>
> [1]  lib/jaxb-impl-2.2.4-1.jar,
>  lib/jaxb-xjc-2.2.4-1.jar,
>  lib/jackson-mapper-asl-1.9.3.jar,
>  lib/jackson-core-asl-1.9.3.jar,
>  lib/jackson-annotations-2.1.0.jar
>
> [2] java.util.ServiceConfigurationError: com.sun.tools.xjc.Plugin:
> Provider
> org.wso2.developerstudio.visualdatamapper.diagram.avro.generators.AvroSchemagenPlugin
> could not be instantiated
> at java.util.ServiceLoader.fail(ServiceLoader.java:232)
> at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
> at
> java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
> at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
> at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
> at com.sun.tools.xjc.Options.findServices(Options.java:931)
> at com.sun.tools.xjc.Options.getAllPlugins(Options.java:367)
> at com.sun.tools.xjc.Options.parseArgument(Options.java:671)
> at com.sun.tools.xjc.Driver$OptionsEx.parseArgument(Driver.java:501)
> at com.sun.tools.xjc.Options.parseArguments(Options.java:781)
> at com.sun.tools.xjc.Driver.run(Driver.java:239)
> at com.sun.tools.xjc.Driver.run(Driver.java:199)
> at com.sun.tools.xjc.Driver._main(Driver.java:122)
> at com.sun.tools.xjc.Driver.access$000(Driver.java:79)
> at com.sun.tools.xjc.Driver$1.run(Driver.java:102)
> Caused by: java.lang.NoSuchMethodError:
> org.codehaus.jackson.map.introspect.VisibilityChecker.with(Lorg/codehaus/jackson/annotate/JsonAutoDetect$Visibility;)Lorg/codehaus/jackson/map/introspect/VisibilityChecker;
>
>
> [3]
> 

Re: [Dev] [GSoC] Proposal 8: HTTP Load balancer on top of WSO2 Gateway

2016-03-01 Thread Kasun Indrasiri
Hi Pubudu,

Can you come up with the use cases that you are planning to add on top of
HTTP GW. Also, come up with a design of the existing GW and how the LB
related features will be implemented on the GW. These things will be
critical in order to proceed with the project.

Thanks,
Kasun

On Wed, Mar 2, 2016 at 9:28 AM, Isuru Ranawaka  wrote:

> Hi Pubudu,
>
> First you can evaluate  existing  loadbalancers (ex Nginx , HA ) and look
> in to main features related to HTTP loadbalancing such as  Load balancing
> methods (roundrobin, iphash, leastconnected) , session persistence,  ..etc.
> Try to identify how those concepts works within those and come up with a
> set of features that needs to be implemented.
>
> thanks
> IsuruR
>
> On Wed, Mar 2, 2016 at 1:12 AM, Pubudu Fernando 
> wrote:
>
>> Hi,
>>
>> I'm a 3rd year Computer Engineering undergraduate student from University
>> of Moratuwa and I am interested in contributing to proposal 8, developing a
>> HTTP load balancer on top of Gateway for GSoC. I am a bit familiar with
>> load balancing concepts and WSO2 Gateway and I have configured and used
>> Ngnix as a load balancer when configuring WSO2 server clusters. And I also
>> did some background reading ([1], [2]) in order to gain a better
>> understanding of concepts behind the construction of a load balancer.
>>
>> I would be grateful if you can advise me (topics and libraries that I
>> should look up etc), regarding how to proceed with this project. Also, can
>> you please elaborate a bit more about the requirements? Which load
>> balancing algorithms do you expect to be implemented in this project?
>>
>> [1] - http://www.aosabook.org/en/nginx.html
>> [2] -
>> https://www.digitalocean.com/community/tutorials/understanding-nginx-http-proxying-load-balancing-buffering-and-caching
>>
>> Thank you.
>>
>> Best Regards,
>>
>> *Pubudu Fernando*
>> Batch '12
>> Department of Computer Science and Engineering
>> University of Moratuwa
>>
>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



-- 
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] [ML][GSOC] Ensemble learning for WSO2 ML

2016-03-01 Thread Supun Sethunga
Hi Minudika,

Which options should be available for the user to get decisions? For
> example, if the user is going to use the bagging method, the number of
> samples can be pre-defined by the user.


I think that depends on the implementation. As you've mentioned, # of
samples, would definitely has to be a user-input. Other than that, sample
size, algorithm to be used, its hyper-parameters, aggregation criteria (if
there are multiple ways of aggregating), etc might have to be taken from
the user.

Similarly, for stacking, we might have to get from user: the # of models,
algorithm for each model, hyper-parameters for each model, algorithm for
aggregation, and etc..

Regards,
Supun

On Wed, Mar 2, 2016 at 3:16 AM, Minudika Malshan 
wrote:

> Hi,
>
> Please help me to be clarified on this.
> Apart from the implementation of those ensemble methods at the back end,
> we're supposed to develop some UI features.
> Which options should be available for the user to get decisions? For
> example, if the user is going to use the bagging method, the number of
> samples can be pre-defined by the user.
>
> Regards,
> Minudika
>
> Minudika Malshan
> Undergraduate
> Department of Computer Science and Engineering
> University of Moratuwa.
>
>
>
>
> On Mon, Feb 29, 2016 at 11:04 AM, Supun Sethunga  wrote:
>
>> Hi Minudika,
>>
>> Thank you for your interest in the project.
>>
>> GBT and Random Forest are well known ensemble methods, and are readily
>> available as a single algorithm OOB in spark. So we need not be
>> implementing them again. You may treat them as any other simpler algorithm,
>> for the project.
>>
>> Let me clarify the few things. For ensemble methods, you can consider the
>> following three options:
>>
>>- Stacking - Training multiple algos on the same data, and combining
>>them using another algo.
>>- Bagging - Training a single algo over subsets of data.
>>- Boosting - Training multiple algos on the same data, and combining
>>them over a weighted average.
>>
>> Personally I would prefer picking Stacking (since Boosting is a special
>> case of Stacking, later would cover both) and Bagging for
>> implementation, but you may pick appropriately. AFAIK these three methods
>> are not available OOB in spark. (except for Boosting in GBT and and bagging
>> in Random Forest).  Expectation of the project is to implement such a
>> logic, where a user can use any algorithm(s), pick the ensemble method, and
>> train a model.
>>
>> For bagging, you can use sampling techniques available in spark (eg:
>> rdd.sample(), df.sample() etc ) [1].
>>
>> Please do let us know if you need further clarifications.
>>
>> [1] http://spark.apache.org/docs/latest/api/java/
>>
>> Regards,
>> Supun
>>
>> On Mon, Feb 29, 2016 at 12:07 AM, Minudika Malshan > > wrote:
>>
>>> Hi,
>>>
>>> I found out that spark.ml Lib supports two ensemble algorithms, GBT and
>>> Random Forest.
>>> Will it be possible to implement Bagging  and boosting methods using ml
>>> Lib features?
>>>
>>> Also I'm grateful if you can give me some resources to getting started
>>> with implementation of Bagging method using ml Lib functionalities. If
>>> there's any other library which is allowed to use for this implementation,
>>> please let me know.
>>>
>>> Thanks and regards.
>>> Minudika
>>>
>>> Minudika Malshan
>>> Undergraduate
>>> Department of Computer Science and Engineering
>>> University of Moratuwa.
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>


-- 
*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] [GSoC] Proposal 8: HTTP Load balancer on top of WSO2 Gateway

2016-03-01 Thread Isuru Ranawaka
Hi Pubudu,

First you can evaluate  existing  loadbalancers (ex Nginx , HA ) and look
in to main features related to HTTP loadbalancing such as  Load balancing
methods (roundrobin, iphash, leastconnected) , session persistence,  ..etc.
Try to identify how those concepts works within those and come up with a
set of features that needs to be implemented.

thanks
IsuruR

On Wed, Mar 2, 2016 at 1:12 AM, Pubudu Fernando 
wrote:

> Hi,
>
> I'm a 3rd year Computer Engineering undergraduate student from University
> of Moratuwa and I am interested in contributing to proposal 8, developing a
> HTTP load balancer on top of Gateway for GSoC. I am a bit familiar with
> load balancing concepts and WSO2 Gateway and I have configured and used
> Ngnix as a load balancer when configuring WSO2 server clusters. And I also
> did some background reading ([1], [2]) in order to gain a better
> understanding of concepts behind the construction of a load balancer.
>
> I would be grateful if you can advise me (topics and libraries that I
> should look up etc), regarding how to proceed with this project. Also, can
> you please elaborate a bit more about the requirements? Which load
> balancing algorithms do you expect to be implemented in this project?
>
> [1] - http://www.aosabook.org/en/nginx.html
> [2] -
> https://www.digitalocean.com/community/tutorials/understanding-nginx-http-proxying-load-balancing-buffering-and-caching
>
> Thank you.
>
> Best Regards,
>
> *Pubudu Fernando*
> Batch '12
> Department of Computer Science and Engineering
> University of Moratuwa
>



-- 
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] GSOC2016 Project of Machine Learning

2016-03-01 Thread Nirmal Fernando
Hi Mahesh,

Thanks for your interest on machine learning projects. Could you please let
us know what projects you are interested in ? Will be able to provide more
details surely.

PS: call me Nirmal not sir :)

On Tue, Mar 1, 2016 at 10:41 PM, Mahesh Dananjaya  wrote:

> dear sir,
> I am Mahesh, student from electronic department of university of moratuwa.
> I am looking forward to engage with machine learning and data fusion
> related projects in GSOC this time since i am specializing researches on
> machine learning and big data analysis and also internet of things. I saw
> couple of projects of you in GSOC this time related to those areas. I am
> very interested to contribute to those projects.can you please tell me bit
> about the projects sir. How can i contribute to the projects. you can see m
> past projects in my linkedin page also.it is 
> https://lk.linkedin.com/in/dananjayamahesh
> . Thank you very much.
> regards,
> Mahesh Dananjaya.
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Adding new API store themes for tenants via admin-dashboard

2016-03-01 Thread Shenavi de Mel
Hi Jo,

Just another concern. Is there a particular reason why the deployment of
web fonts with the theme is also not allowed. If user wants to change the
default web fonts is that going to be of any harm to the product and it's
functions?

Regards
Shenavi

*Shenavi de Mel*
Software Engineer
WSO2 Inc: http://wso2.com
email: shen...@wso2.com
mobile: 0711644470


On Tue, Mar 1, 2016 at 12:15 PM, Shenavi de Mel  wrote:

> Hi Jo,
>
> Thanks for the quick response. For the first issue we can remove the files
> which are included in the sample and provide that for the users and
> probably mention the supported file extensions as well in the
> documentation. I guess the 2nd issue would have to be fixed and i created a
> JIRA to track it [1]. It would be great if you could let us know if this
> would be fixed in the upcoming release of APIM.
>
> [1] https://wso2.org/jira/browse/APIMANAGER-4570
>
> Thanks
> Shenavi
>
> *Shenavi de Mel*
> Software Engineer
> WSO2 Inc: http://wso2.com
> email: shen...@wso2.com
> mobile: 0711644470
>
>
> On Tue, Mar 1, 2016 at 11:53 AM, Joseph Fonseka  wrote:
>
>> Hi Shenavi
>>
>> Both issues you mention are valid.
>> 1. The reason to add a white list is to prevent users from uploading
>> malicious script. And we should remove the unsupported files from the
>> sample. Also we might need to move the white-list to a config file.
>>
>> 2. And yes we should replace the entire directory instead of copying the
>> files in to the existing theme.
>>
>> Regards
>> Jo
>>
>> On Tue, Mar 1, 2016 at 10:44 AM, Shenavi de Mel  wrote:
>>
>>> Hi APIM team,
>>>
>>> I have a few question regarding the uploading of tenant themes to the
>>> APIM.
>>>
>>> 1. When i was uploading a tenant theme for a tenant following the
>>> tutorial [1] i noticed some warn logs in my console. Further i noticed that
>>> the files mentioned in those warnings are not deployed as well and are
>>> mentioned as unsupported. Only thing i did not follow according to this
>>> document is that i did not delete the folders that i did not change. When i
>>> went through the code of TenantManagerHostObject.java class i noticed
>>> that the file extensions other than "css", "jpg", "png", "gif", "svg",
>>> "ttf", "html", "js are not considered as valid extensions and will not be
>>> deployed with the theme. In that case is there any reason why those
>>> unsupported files are included in the sample template [1] given for the
>>> users to customize?
>>>
>>> If you could confirm or point to a documentation of what are the
>>> supported file types which can be customized in the custom theme uploaded
>>> via the admin-dashboard of the tenant if it is not already in the docs i
>>> feel it might be better to include them in the docs to avoid confusion [1].
>>>
>>> 2. Also i noticed if i upload a theme for the tenant and say I include a
>>> custom css file. And later upload another theme for the same tenant hoping
>>> to replace the previously uploaded theme and remove that css file it will
>>> still be available. I assume it replaces the existing folder with the new
>>> theme hence old files will not get deleted. Is there a way to make sure the
>>> old theme is deleted and replaced by the new theme when uploading via the
>>> admin-dashboard application or is that the default and expected behavior?
>>>
>>> Your thoughts would be much appreciated to understand this better and
>>> also improve our documentation [2] to avoid confusion and provide more
>>> information for the users.
>>>
>>> [1] https://docs.wso2.com/display/AM191/Adding+a+new+API+Store+Theme
>>> [2] https://docs.wso2.com/display/APICloud/Customize+the+API+Store+Theme
>>>
>>> Thanks and Regards
>>> Shenavi.
>>>
>>>
>>
>>
>> --
>>
>> --
>> *Joseph Fonseka*
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 772 512 430
>> skype: jpfonseka
>>
>> * *
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
​Please find the attached image which represents the prefix in the tree view

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 2, 2016 at 7:45 AM, Sohani Weerasinghe  wrote:

>
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake 
> wrote:
>
>>
>>
>> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Thanks Nuwan for the response.
>>>
>>> When generating the avro schema by adding elements to the tree view,
>>> user can specify the namespace (xml namespace) with the prefix, so that
>>> when generating the the avro schema we can map the namespace to doc and
>>> prefix to the namespace in avro.
>>>
>>
>> Yes that's mapping is fine , somehow we need to show at least prefix in
>> the tree view otherwise user experience won't be nice since user have to
>> check it explicitly while doing the mapping
>>
>
> Yes, I have implemented that and the prefix will be shown in the tree
> view.
>
>>
>> Thanks and Regards
>> /Jasintha.
>>
>>>
>>> Thanks,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela  wrote:
>>>


 On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
 wrote:

> Hi All,
>
> If we consider an XML which has multiple namespaces as below ,
>
> 
> http://www.w3.org/TR/html4/;>
>   Asian Coffee Table
>   74
>   129
> 
> http://www.w3schools.com/furniture;>
>   African Coffee Table
>   80
>   120
> 
> 
>
> The avro schema should be as follows ,
>
> {
>   "type" : "record",
>   "name" : "root",
>   "fields" : [ {
> "type" : "record",
> "name" : "tableRecord",
>* "doc" : "http://www.w3.org/TR/html4/
> ",*
> "namespace" : "http://www.w3.org/TR/html4/;
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ]
>   "doc" : "http://www.w3.org/TR/html4/;
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ]
>   }]
> }, {
> "type" : "record",
> "name" : "tableRecord",
>   *  "doc" : "http://www.w3schools.com/furniture
> ",*
> "namespace" : "http://www.w3schools.com/furniture;
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ]
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ]
>   }]
> } ]
> }
>
> When representing this using the Visual DataMapper Editor, in order to
> differentiate the two records, we can add a namespace prefix to the name 
> of
> the record as shown below.
>
>
> ​But when generating the Avro Schema, if we pass this value as the
> name of the node it  throws *org.apache.avro.SchemaParseException:
> Illegal character in: y:tableRecord.*
>

 AVRO name should start with [A-Za-z] and subsequently contain only  
 [A-Za-z0-9_].
 So we can not pass name with namespace prefix.

>
> So, if we use only the name (tableRecord, by removing the prefix) to
> create the avro schema, how are we going to differentiate the records
> separately when generating the mapping config?
>

  We should add above xml namespace prefix as the namespace of AVRO
 record. Then two elements can be differentiated.
 For Eg:

 {
   "type" : "record",
   "name" : "root",
   "fields" : [ {
 "type" : "record",
 "name" : "tableRecord",
* "doc" : "http://www.w3.org/TR/html4/
 ",*
 "namespace" : "N1",
 "fields" : [ {
   "name" : "name",
   "type" : [ "null", "string" ],
   "doc" : "http://www.w3.org/TR/html4/;
   } , {
   "name" : "width",
   "type" : [ "null", "int" ],
   "doc" : "http://www.w3.org/TR/html4/;
   },{
   "name" : 

Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 2, 2016 at 6:28 AM, Jasintha Dasanayake 
wrote:

>
>
> On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe 
> wrote:
>
>> Thanks Nuwan for the response.
>>
>> When generating the avro schema by adding elements to the tree view, user
>> can specify the namespace (xml namespace) with the prefix, so that when
>> generating the the avro schema we can map the namespace to doc and prefix
>> to the namespace in avro.
>>
>
> Yes that's mapping is fine , somehow we need to show at least prefix in
> the tree view otherwise user experience won't be nice since user have to
> check it explicitly while doing the mapping
>

Yes, I have implemented that and the prefix will be shown in the tree view.

>
> Thanks and Regards
> /Jasintha.
>
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela  wrote:
>>
>>>
>>>
>>> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 If we consider an XML which has multiple namespaces as below ,

 
 http://www.w3.org/TR/html4/;>
   Asian Coffee Table
   74
   129
 
 http://www.w3schools.com/furniture;>
   African Coffee Table
   80
   120
 
 

 The avro schema should be as follows ,

 {
   "type" : "record",
   "name" : "root",
   "fields" : [ {
 "type" : "record",
 "name" : "tableRecord",
* "doc" : "http://www.w3.org/TR/html4/
 ",*
 "namespace" : "http://www.w3.org/TR/html4/;
 "fields" : [ {
   "name" : "name",
   "type" : [ "null", "string" ]
   "doc" : "http://www.w3.org/TR/html4/;
   } , {
   "name" : "width",
   "type" : [ "null", "int" ]
   },{
   "name" : "length",
   "type" : [ "null", "int" ]
   }]
 }, {
 "type" : "record",
 "name" : "tableRecord",
   *  "doc" : "http://www.w3schools.com/furniture
 ",*
 "namespace" : "http://www.w3schools.com/furniture;
 "fields" : [ {
   "name" : "name",
   "type" : [ "null", "string" ]
   } , {
   "name" : "width",
   "type" : [ "null", "int" ]
   },{
   "name" : "length",
   "type" : [ "null", "int" ]
   }]
 } ]
 }

 When representing this using the Visual DataMapper Editor, in order to
 differentiate the two records, we can add a namespace prefix to the name of
 the record as shown below.


 ​But when generating the Avro Schema, if we pass this value as the name
 of the node it  throws *org.apache.avro.SchemaParseException: Illegal
 character in: y:tableRecord.*

>>>
>>> AVRO name should start with [A-Za-z] and subsequently contain only  
>>> [A-Za-z0-9_].
>>> So we can not pass name with namespace prefix.
>>>

 So, if we use only the name (tableRecord, by removing the prefix) to
 create the avro schema, how are we going to differentiate the records
 separately when generating the mapping config?

>>>
>>>  We should add above xml namespace prefix as the namespace of AVRO
>>> record. Then two elements can be differentiated.
>>> For Eg:
>>>
>>> {
>>>   "type" : "record",
>>>   "name" : "root",
>>>   "fields" : [ {
>>> "type" : "record",
>>> "name" : "tableRecord",
>>>* "doc" : "http://www.w3.org/TR/html4/
>>> ",*
>>> "namespace" : "N1",
>>> "fields" : [ {
>>>   "name" : "name",
>>>   "type" : [ "null", "string" ],
>>>   "doc" : "http://www.w3.org/TR/html4/;
>>>   } , {
>>>   "name" : "width",
>>>   "type" : [ "null", "int" ],
>>>   "doc" : "http://www.w3.org/TR/html4/;
>>>   },{
>>>   "name" : "length",
>>>   "type" : [ "null", "int" ],
>>>   "doc" : "http://www.w3.org/TR/html4/;
>>>   }]
>>> }, {
>>> "type" : "record",
>>> "name" : "tableRecord",
>>>   *  "doc" : "http://www.w3schools.com/furniture
>>> ",*
>>> "namespace" : "N2",
>>> "fields" : [ {
>>>   "name" : "name",
>>>   "type" : [ "null", "string" ],
>>>   *"doc" : "http://www.w3schools.com/furniture
>>> 

Re: [Dev] XML to json array in ESB

2016-03-01 Thread Chanaka Fernando
Hi Shazni,

There should some information in the xml message to tell that it is an
array when there is only one element. Otherwise, JSON builder cannot figure
out it is an array. You can use the following in the xml message to
instruct the consumers about array.

**



user1







On Wed, Mar 2, 2016 at 12:35 AM, Shazni Nazir  wrote:

> Hi,
>
> Say for example used a proxy below [1] to convert an xml to json.
>
> [1]
>
> http://ws.apache.org/ns/synapse; name="XmlToJSON"
> transports="https,http" statistics="disable" trace="disable"
> startOnLoad="true">
> 
> 
>  scope="axis2"/>
> 
> 
> 
> 
> 
>
> using a payload like [2] returns a response like [3] with a json array.
>
> [2]
> 
> user1
> user2
> 
>
> [3]
>
> {
>   "users": {
> "user": [
>   "user1",
>   "user2"
> ]
>   }
> }
>
> using a payload like [4] returns a response like [5] without square brackets, 
> since there's only one element.
>
> [4]
>   
>   user1
>   
>
> [5]
>
> {
>   "users": {
> "user": "user1"
>   }
> }
>
> But I need to get this user1 in an array even if there's only one element in 
> the array. I can however use a payload factory with a filter mediator like 
> below to achieve this. Wondering if there's any other simple way to achieve 
> without this? Your input is appreciated.
>
> [6]
>
> 
> 
> 
> { "StockQuotes": { "Stock": $1 } }
> 
> 
> 
> 
> 
> 
> 
> { "StockQuotes": { "Stock": [ $1 ] } }
> 
> 
> 
> 
> 
> 
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Business Process Server 3.5.1 RC3

2016-03-01 Thread Himasha Guruge
Hi,

Tested following against mysql db.

1. Bpmn samples and bpmn explorer.

2. Human task sample and human-task explorer.

3. Bpel samples.

4.Email/sms notifications of humantasks.

5.Bpmn/bpel cleanup script execution with a load of 1000 instances each.

[ ] Stable - go ahead and release.

Thanks,

Himasha

On Tue, Mar 1, 2016 at 11:44 AM, Amal Gunatilake  wrote:

> Hi Devs,
>
> This is the third release candidate of WSO2 Business Process Server 3.5.1
>
> *This release fixes the following issues:*
> https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide=12625
>
> Please download, test and vote.
>
> *Source & binary distribution files:*
> Source : https://github.com/wso2/product-bps/archive/v3.5.1-RC3.zip
> Binary :
> https://github.com/wso2/product-bps/releases/download/v3.5.1-RC3/wso2bps-3.5.1.zip
>
> *Maven staging repo:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-394/
>
> The tag to be voted upon:
>
> https://github.com/wso2/product-bps/releases/tag/v3.5.1-RC3
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Best regards,
> Amal.
> --
> *Amal Gunatilake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Jasintha Dasanayake
On Tue, Mar 1, 2016 at 9:07 PM, Sohani Weerasinghe  wrote:

> Thanks Nuwan for the response.
>
> When generating the avro schema by adding elements to the tree view, user
> can specify the namespace (xml namespace) with the prefix, so that when
> generating the the avro schema we can map the namespace to doc and prefix
> to the namespace in avro.
>

Yes that's mapping is fine , somehow we need to show at least prefix in the
tree view otherwise user experience won't be nice since user have to check
it explicitly while doing the mapping

Thanks and Regards
/Jasintha.

>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela  wrote:
>
>>
>>
>> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> If we consider an XML which has multiple namespaces as below ,
>>>
>>> 
>>> http://www.w3.org/TR/html4/;>
>>>   Asian Coffee Table
>>>   74
>>>   129
>>> 
>>> http://www.w3schools.com/furniture;>
>>>   African Coffee Table
>>>   80
>>>   120
>>> 
>>> 
>>>
>>> The avro schema should be as follows ,
>>>
>>> {
>>>   "type" : "record",
>>>   "name" : "root",
>>>   "fields" : [ {
>>> "type" : "record",
>>> "name" : "tableRecord",
>>>* "doc" : "http://www.w3.org/TR/html4/
>>> ",*
>>> "namespace" : "http://www.w3.org/TR/html4/;
>>> "fields" : [ {
>>>   "name" : "name",
>>>   "type" : [ "null", "string" ]
>>>   "doc" : "http://www.w3.org/TR/html4/;
>>>   } , {
>>>   "name" : "width",
>>>   "type" : [ "null", "int" ]
>>>   },{
>>>   "name" : "length",
>>>   "type" : [ "null", "int" ]
>>>   }]
>>> }, {
>>> "type" : "record",
>>> "name" : "tableRecord",
>>>   *  "doc" : "http://www.w3schools.com/furniture
>>> ",*
>>> "namespace" : "http://www.w3schools.com/furniture;
>>> "fields" : [ {
>>>   "name" : "name",
>>>   "type" : [ "null", "string" ]
>>>   } , {
>>>   "name" : "width",
>>>   "type" : [ "null", "int" ]
>>>   },{
>>>   "name" : "length",
>>>   "type" : [ "null", "int" ]
>>>   }]
>>> } ]
>>> }
>>>
>>> When representing this using the Visual DataMapper Editor, in order to
>>> differentiate the two records, we can add a namespace prefix to the name of
>>> the record as shown below.
>>>
>>>
>>> ​But when generating the Avro Schema, if we pass this value as the name
>>> of the node it  throws *org.apache.avro.SchemaParseException: Illegal
>>> character in: y:tableRecord.*
>>>
>>
>> AVRO name should start with [A-Za-z] and subsequently contain only  
>> [A-Za-z0-9_].
>> So we can not pass name with namespace prefix.
>>
>>>
>>> So, if we use only the name (tableRecord, by removing the prefix) to
>>> create the avro schema, how are we going to differentiate the records
>>> separately when generating the mapping config?
>>>
>>
>>  We should add above xml namespace prefix as the namespace of AVRO
>> record. Then two elements can be differentiated.
>> For Eg:
>>
>> {
>>   "type" : "record",
>>   "name" : "root",
>>   "fields" : [ {
>> "type" : "record",
>> "name" : "tableRecord",
>>* "doc" : "http://www.w3.org/TR/html4/
>> ",*
>> "namespace" : "N1",
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ],
>>   "doc" : "http://www.w3.org/TR/html4/;
>>   } , {
>>   "name" : "width",
>>   "type" : [ "null", "int" ],
>>   "doc" : "http://www.w3.org/TR/html4/;
>>   },{
>>   "name" : "length",
>>   "type" : [ "null", "int" ],
>>   "doc" : "http://www.w3.org/TR/html4/;
>>   }]
>> }, {
>> "type" : "record",
>> "name" : "tableRecord",
>>   *  "doc" : "http://www.w3schools.com/furniture
>> ",*
>> "namespace" : "N2",
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ],
>>   *"doc" : "http://www.w3schools.com/furniture
>> "*
>>   } , {
>>   "name" : "width",
>>   "type" : [ "null", "int" ]
>>   *"doc" : "http://www.w3schools.com/furniture
>> "*
>>   },{
>>   "name" : "length",
>>   "type" : [ "null", "int" ],
>>   *"doc" : "http://www.w3schools.com/furniture
>> "*
>>   }]
>> } ]
>> }
>>
>> Then the full names of the two tableRecords will be N1.tableRecord 

Re: [Dev] [ML][GSOC] Ensemble learning for WSO2 ML

2016-03-01 Thread Minudika Malshan
Hi,

Please help me to be clarified on this.
Apart from the implementation of those ensemble methods at the back end,
we're supposed to develop some UI features.
Which options should be available for the user to get decisions? For
example, if the user is going to use the bagging method, the number of
samples can be pre-defined by the user.

Regards,
Minudika

Minudika Malshan
Undergraduate
Department of Computer Science and Engineering
University of Moratuwa.




On Mon, Feb 29, 2016 at 11:04 AM, Supun Sethunga  wrote:

> Hi Minudika,
>
> Thank you for your interest in the project.
>
> GBT and Random Forest are well known ensemble methods, and are readily
> available as a single algorithm OOB in spark. So we need not be
> implementing them again. You may treat them as any other simpler algorithm,
> for the project.
>
> Let me clarify the few things. For ensemble methods, you can consider the
> following three options:
>
>- Stacking - Training multiple algos on the same data, and combining
>them using another algo.
>- Bagging - Training a single algo over subsets of data.
>- Boosting - Training multiple algos on the same data, and combining
>them over a weighted average.
>
> Personally I would prefer picking Stacking (since Boosting is a special
> case of Stacking, later would cover both) and Bagging for implementation,
> but you may pick appropriately. AFAIK these three methods are not available
> OOB in spark. (except for Boosting in GBT and and bagging in Random
> Forest).  Expectation of the project is to implement such a logic, where
> a user can use any algorithm(s), pick the ensemble method, and train a
> model.
>
> For bagging, you can use sampling techniques available in spark (eg:
> rdd.sample(), df.sample() etc ) [1].
>
> Please do let us know if you need further clarifications.
>
> [1] http://spark.apache.org/docs/latest/api/java/
>
> Regards,
> Supun
>
> On Mon, Feb 29, 2016 at 12:07 AM, Minudika Malshan 
> wrote:
>
>> Hi,
>>
>> I found out that spark.ml Lib supports two ensemble algorithms, GBT and
>> Random Forest.
>> Will it be possible to implement Bagging  and boosting methods using ml
>> Lib features?
>>
>> Also I'm grateful if you can give me some resources to getting started
>> with implementation of Bagging method using ml Lib functionalities. If
>> there's any other library which is allowed to use for this implementation,
>> please let me know.
>>
>> Thanks and regards.
>> Minudika
>>
>> Minudika Malshan
>> Undergraduate
>> Department of Computer Science and Engineering
>> University of Moratuwa.
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *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] [GSoC] Proposal 8: HTTP Load balancer on top of WSO2 Gateway

2016-03-01 Thread Pubudu Fernando
Hi,

I'm a 3rd year Computer Engineering undergraduate student from University
of Moratuwa and I am interested in contributing to proposal 8, developing a
HTTP load balancer on top of Gateway for GSoC. I am a bit familiar with
load balancing concepts and WSO2 Gateway and I have configured and used
Ngnix as a load balancer when configuring WSO2 server clusters. And I also
did some background reading ([1], [2]) in order to gain a better
understanding of concepts behind the construction of a load balancer.

I would be grateful if you can advise me (topics and libraries that I
should look up etc), regarding how to proceed with this project. Also, can
you please elaborate a bit more about the requirements? Which load
balancing algorithms do you expect to be implemented in this project?

[1] - http://www.aosabook.org/en/nginx.html
[2] -
https://www.digitalocean.com/community/tutorials/understanding-nginx-http-proxying-load-balancing-buffering-and-caching

Thank you.

Best Regards,

*Pubudu Fernando*
Batch '12
Department of Computer Science and Engineering
University of Moratuwa
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] XML to json array in ESB

2016-03-01 Thread Shazni Nazir
Hi,

Say for example used a proxy below [1] to convert an xml to json.

[1]

http://ws.apache.org/ns/synapse; name="XmlToJSON"
transports="https,http" statistics="disable" trace="disable"
startOnLoad="true">









using a payload like [2] returns a response like [3] with a json array.

[2]

user1
user2


[3]

{
  "users": {
"user": [
  "user1",
  "user2"
]
  }
}

using a payload like [4] returns a response like [5] without square
brackets, since there's only one element.

[4]

user1


[5]

{
  "users": {
"user": "user1"
  }
}

But I need to get this user1 in an array even if there's only one
element in the array. I can however use a payload factory with a
filter mediator like below to achieve this. Wondering if there's any
other simple way to achieve without this? Your input is appreciated.

[6]




{ "StockQuotes": { "Stock": $1 } }







{ "StockQuotes": { "Stock": [ $1 ] } }







Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Retrieving sorted data from queries to DAS

2016-03-01 Thread Udara Rathnayake
If it's a temporary table, you should be able to do the sorting within the
spark query.
So no need to worry about sorting at the client side.

On Mon, Feb 29, 2016 at 11:45 PM, Shabir Mohamed  wrote:

> Hi All,
>
> In the process of creating analytics gadgets for the IoT/EMM Server, I
> have a need to fetch data from DAS filtered by some query parameters (ex:
> deviceId, owner).
>
> In addition, I also have a need to sort the retrieved data based on a
> specific attribute of the event-stream. As of what I had tried so far I
> could not find any APIs provided at the DAS end to directly allow this
> capability. Hence, I have taken to doing the sorting of the retrieved data
> at my end.
>
> Is there any mechanism to achieve this from DAS itself, which I might have
> missed?
>
> Regards
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> ___
> 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] [DAS] Retrieving sorted data from queries to DAS

2016-03-01 Thread Gimantha Bandara
Hi Suho,

Yes, time should be indexed.

On Tuesday, March 1, 2016, Sriskandarajah Suhothayan  wrote:

> Hi Gimantha
>
> In most cases we need data sorted by time, so in that case do we need to
> index time ?
>
> Regards
> Suho
>
> On Tue, Mar 1, 2016 at 12:08 PM, Gimantha Bandara  > wrote:
>
>> Hi Shabir,
>>
>> In DAS 3.0.0 and DAS 3.0.1, sorting is not supported. You will have to
>> sort the data at the client side. Currently I am implementing a sorting
>> functionality on top of lucene indexing mechanism. Once thats implemented,
>> records can be retrieved sorted by indexed fields.
>>
>>
>> On Tuesday, March 1, 2016, Shabir Mohamed > > wrote:
>>
>>> Hi All,
>>>
>>> In the process of creating analytics gadgets for the IoT/EMM Server, I
>>> have a need to fetch data from DAS filtered by some query parameters (ex:
>>> deviceId, owner).
>>>
>>> In addition, I also have a need to sort the retrieved data based on a
>>> specific attribute of the event-stream. As of what I had tried so far I
>>> could not find any APIs provided at the DAS end to directly allow this
>>> capability. Hence, I have taken to doing the sorting of the retrieved data
>>> at my end.
>>>
>>> Is there any mechanism to achieve this from DAS itself, which I might
>>> have missed?
>>>
>>> Regards
>>> -
>>> *Shabir Mohamed*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> Email: sha...@wso2.com
>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>
>>
>>
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919
>>
>>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
> twitter: http://twitter.com/suhothayan
>  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>


-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Calling DSS REST resources using JSON payloads

2016-03-01 Thread Gokul Balakrishnan
Hi Madhawa,

Thanks, I was using an input format like:

{
"timeFrom" : "2001-01-01 11:44:52",
"timeTo": "2010-06-01 11:44:52"
}

but it only worked once I'd incorporated the resource name as well, similar
to:

{
  "getFilteredNotices": {
"timeFrom" : "2001-01-01 11:44:52",
"timeTo": "2010-06-01 11:44:52"
  }
}

Please note that as per the documentation, we should add "_post" to the
resource name, which did *not* work (there was an NPE). Could you please do
the needful to correct the documentation as required?

Thanks,

On 29 February 2016 at 16:51, Madhawa Gunasekara  wrote:

> Hi Gokul,
>
> No, We have to do the json mapping for requests as well.
> If you need to send a json payload in a request, you have to follow
> this json format[1]. otherwise it won't work.
>
> [1]
> https://docs.wso2.com/display/DSS350/JSON+Mapping#JSONMapping-JSONRequestPayloads
>
> Thanks,
> Madhawa
>
> On 2/29/16, Gokul Balakrishnan  wrote:
> > Hi Madhawa,
> >
> > To my understanding, this is only required when we're mapping the output
> to
> > JSON, right? My requirement is to send a JSON payload to the resource as
> > opposed to compose a custom JSON result.
> >
> > Thanks,
> >
> > On 29 February 2016 at 11:48, Madhawa Gunasekara 
> wrote:
> >
> >> Hi Gokul,
> >>
> >> How did you build the json payload? we have to build json payload
> >> according to [1].
> >>
> >> [1] https://docs.wso2.com/display/DSS350/JSON+Mapping
> >>
> >> Thanks,
> >> Madhawa
> >>
> >> On Mon, Feb 29, 2016 at 5:12 PM, Gokul Balakrishnan 
> >> wrote:
> >>
> >>> Hi DSS team,
> >>>
> >>> I've created a dataservice and certain operations as REST-style
> >>> resources
> >>> as per the doc [1]. However, when I attempt to call that REST endpoint
> >>> using a JSON payload, I'm getting the following error, which leads me
> to
> >>> conclude that DSS is not accepting it:
> >>>
> >>> Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: Error
> >>> in 'CallQuery.extractParams', cannot find parameter with
> >>> type:query-param
> >>> name:WorksReference
> >>> DS Code: INCOMPATIBLE_PARAMETERS_ERROR
> >>>
> >>> However, I see that urlencoded and XML content types seems to work
> >>> properly.
> >>>
> >>> Do you have any idea what I might be doing wrong?
> >>>
> >>> [1]
> https://docs.wso2.com/display/DSS350/Exposing+Data+as+REST+Resources
> >>>
> >>> Thanks,
> >>>
> >>>
> >>> --
> >>> Gokul Balakrishnan
> >>> Senior Software Engineer,
> >>> WSO2, Inc. http://wso2.com
> >>> M +94 77 5935 789 | +44 7563 570502
> >>>
> >>
> >>
> >>
> >> --
> >> *Madhawa Gunasekara*
> >> Software Engineer
> >> WSO2 Inc.; http://wso2.com
> >> lean.enterprise.middleware
> >>
> >> mobile: +94 719411002 <+94+719411002>
> >> blog: *http://madhawa-gunasekara.blogspot.com
> >> *
> >> linkedin: *http://lk.linkedin.com/in/mgunasekara
> >> *
> >>
> >
> >
> >
> > --
> > Gokul Balakrishnan
> > Senior Software Engineer,
> > WSO2, Inc. http://wso2.com
> > M +94 77 5935 789 | +44 7563 570502
> >
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
M +94 77 5935 789 | +44 7563 570502
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
Thanks Nuwan for the response.

When generating the avro schema by adding elements to the tree view, user
can specify the namespace (xml namespace) with the prefix, so that when
generating the the avro schema we can map the namespace to doc and prefix
to the namespace in avro.

Thanks,
Sohani

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Tue, Mar 1, 2016 at 8:54 PM, Nuwan Pallewela  wrote:

>
>
> On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> If we consider an XML which has multiple namespaces as below ,
>>
>> 
>> http://www.w3.org/TR/html4/;>
>>   Asian Coffee Table
>>   74
>>   129
>> 
>> http://www.w3schools.com/furniture;>
>>   African Coffee Table
>>   80
>>   120
>> 
>> 
>>
>> The avro schema should be as follows ,
>>
>> {
>>   "type" : "record",
>>   "name" : "root",
>>   "fields" : [ {
>> "type" : "record",
>> "name" : "tableRecord",
>>* "doc" : "http://www.w3.org/TR/html4/
>> ",*
>> "namespace" : "http://www.w3.org/TR/html4/;
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ]
>>   "doc" : "http://www.w3.org/TR/html4/;
>>   } , {
>>   "name" : "width",
>>   "type" : [ "null", "int" ]
>>   },{
>>   "name" : "length",
>>   "type" : [ "null", "int" ]
>>   }]
>> }, {
>> "type" : "record",
>> "name" : "tableRecord",
>>   *  "doc" : "http://www.w3schools.com/furniture
>> ",*
>> "namespace" : "http://www.w3schools.com/furniture;
>> "fields" : [ {
>>   "name" : "name",
>>   "type" : [ "null", "string" ]
>>   } , {
>>   "name" : "width",
>>   "type" : [ "null", "int" ]
>>   },{
>>   "name" : "length",
>>   "type" : [ "null", "int" ]
>>   }]
>> } ]
>> }
>>
>> When representing this using the Visual DataMapper Editor, in order to
>> differentiate the two records, we can add a namespace prefix to the name of
>> the record as shown below.
>>
>>
>> ​But when generating the Avro Schema, if we pass this value as the name
>> of the node it  throws *org.apache.avro.SchemaParseException: Illegal
>> character in: y:tableRecord.*
>>
>
> AVRO name should start with [A-Za-z] and subsequently contain only  
> [A-Za-z0-9_].
> So we can not pass name with namespace prefix.
>
>>
>> So, if we use only the name (tableRecord, by removing the prefix) to
>> create the avro schema, how are we going to differentiate the records
>> separately when generating the mapping config?
>>
>
>  We should add above xml namespace prefix as the namespace of AVRO record.
> Then two elements can be differentiated.
> For Eg:
>
> {
>   "type" : "record",
>   "name" : "root",
>   "fields" : [ {
> "type" : "record",
> "name" : "tableRecord",
>* "doc" : "http://www.w3.org/TR/html4/
> ",*
> "namespace" : "N1",
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ],
>   "doc" : "http://www.w3.org/TR/html4/;
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ],
>   "doc" : "http://www.w3.org/TR/html4/;
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ],
>   "doc" : "http://www.w3.org/TR/html4/;
>   }]
> }, {
> "type" : "record",
> "name" : "tableRecord",
>   *  "doc" : "http://www.w3schools.com/furniture
> ",*
> "namespace" : "N2",
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ],
>   *"doc" : "http://www.w3schools.com/furniture
> "*
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   *"doc" : "http://www.w3schools.com/furniture
> "*
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ],
>   *"doc" : "http://www.w3schools.com/furniture
> "*
>   }]
> } ]
> }
>
> Then the full names of the two tableRecords will be N1.tableRecord and
> N2.tableRecord and AVRO can differentiate these two fields.
>
>>
>> eg: If we are to map a field in  y:tableRecord with a field
>> in y:tableRecord etc. How can we differentiate this?
>>
>> This usecase of having multiple namespaces can be displayed graphically
>> in the Design view by appending a namespace prefix, but it seems this will
>> have issues in generating the avro schema and the mapping config.
>>
>
> Mapping configuration does not need to be aware 

Re: [Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Nuwan Pallewela
On Tue, Mar 1, 2016 at 7:34 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> If we consider an XML which has multiple namespaces as below ,
>
> 
> http://www.w3.org/TR/html4/;>
>   Asian Coffee Table
>   74
>   129
> 
> http://www.w3schools.com/furniture;>
>   African Coffee Table
>   80
>   120
> 
> 
>
> The avro schema should be as follows ,
>
> {
>   "type" : "record",
>   "name" : "root",
>   "fields" : [ {
> "type" : "record",
> "name" : "tableRecord",
>* "doc" : "http://www.w3.org/TR/html4/
> ",*
> "namespace" : "http://www.w3.org/TR/html4/;
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ]
>   "doc" : "http://www.w3.org/TR/html4/;
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ]
>   }]
> }, {
> "type" : "record",
> "name" : "tableRecord",
>   *  "doc" : "http://www.w3schools.com/furniture
> ",*
> "namespace" : "http://www.w3schools.com/furniture;
> "fields" : [ {
>   "name" : "name",
>   "type" : [ "null", "string" ]
>   } , {
>   "name" : "width",
>   "type" : [ "null", "int" ]
>   },{
>   "name" : "length",
>   "type" : [ "null", "int" ]
>   }]
> } ]
> }
>
> When representing this using the Visual DataMapper Editor, in order to
> differentiate the two records, we can add a namespace prefix to the name of
> the record as shown below.
>
>
> ​But when generating the Avro Schema, if we pass this value as the name of
> the node it  throws *org.apache.avro.SchemaParseException: Illegal
> character in: y:tableRecord.*
>

AVRO name should start with [A-Za-z] and subsequently contain only
[A-Za-z0-9_].
So we can not pass name with namespace prefix.

>
> So, if we use only the name (tableRecord, by removing the prefix) to
> create the avro schema, how are we going to differentiate the records
> separately when generating the mapping config?
>

 We should add above xml namespace prefix as the namespace of AVRO record.
Then two elements can be differentiated.
For Eg:

{
  "type" : "record",
  "name" : "root",
  "fields" : [ {
"type" : "record",
"name" : "tableRecord",
   * "doc" : "http://www.w3.org/TR/html4/
",*
"namespace" : "N1",
"fields" : [ {
  "name" : "name",
  "type" : [ "null", "string" ],
  "doc" : "http://www.w3.org/TR/html4/;
  } , {
  "name" : "width",
  "type" : [ "null", "int" ],
  "doc" : "http://www.w3.org/TR/html4/;
  },{
  "name" : "length",
  "type" : [ "null", "int" ],
  "doc" : "http://www.w3.org/TR/html4/;
  }]
}, {
"type" : "record",
"name" : "tableRecord",
  *  "doc" : "http://www.w3schools.com/furniture
",*
"namespace" : "N2",
"fields" : [ {
  "name" : "name",
  "type" : [ "null", "string" ],
  *"doc" : "http://www.w3schools.com/furniture
"*
  } , {
  "name" : "width",
  "type" : [ "null", "int" ]
  *"doc" : "http://www.w3schools.com/furniture
"*
  },{
  "name" : "length",
  "type" : [ "null", "int" ],
  *"doc" : "http://www.w3schools.com/furniture
"*
  }]
} ]
}

Then the full names of the two tableRecords will be N1.tableRecord and
N2.tableRecord and AVRO can differentiate these two fields.

>
> eg: If we are to map a field in  y:tableRecord with a field
> in y:tableRecord etc. How can we differentiate this?
>
> This usecase of having multiple namespaces can be displayed graphically in
> the Design view by appending a namespace prefix, but it seems this will
> have issues in generating the avro schema and the mapping config.
>

Mapping configuration does not need to be aware of the namespaces as long
as they can be differentiate in the diagram. Output from the mapping will
look into the output schema and will build the output message with desired
namespaces.

>
> Your suggestions are highly appreciated.
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

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

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing 

[Dev] Issue in representing avro records with multiple namespaces

2016-03-01 Thread Sohani Weerasinghe
Hi All,

If we consider an XML which has multiple namespaces as below ,


http://www.w3.org/TR/html4/;>
  Asian Coffee Table
  74
  129

http://www.w3schools.com/furniture;>
  African Coffee Table
  80
  120



The avro schema should be as follows ,

{
  "type" : "record",
  "name" : "root",
  "fields" : [ {
"type" : "record",
"name" : "tableRecord",
   * "doc" : "http://www.w3.org/TR/html4/
",*
"namespace" : "http://www.w3.org/TR/html4/;
"fields" : [ {
  "name" : "name",
  "type" : [ "null", "string" ]
  "doc" : "http://www.w3.org/TR/html4/;
  } , {
  "name" : "width",
  "type" : [ "null", "int" ]
  },{
  "name" : "length",
  "type" : [ "null", "int" ]
  }]
}, {
"type" : "record",
"name" : "tableRecord",
  *  "doc" : "http://www.w3schools.com/furniture
",*
"namespace" : "http://www.w3schools.com/furniture;
"fields" : [ {
  "name" : "name",
  "type" : [ "null", "string" ]
  } , {
  "name" : "width",
  "type" : [ "null", "int" ]
  },{
  "name" : "length",
  "type" : [ "null", "int" ]
  }]
} ]
}

When representing this using the Visual DataMapper Editor, in order to
differentiate the two records, we can add a namespace prefix to the name of
the record as shown below.


​But when generating the Avro Schema, if we pass this value as the name of
the node it  throws *org.apache.avro.SchemaParseException: Illegal
character in: y:tableRecord.*

So, if we use only the name (tableRecord, by removing the prefix) to create
the avro schema, how are we going to differentiate the records separately
when generating the mapping config?

eg: If we are to map a field in  y:tableRecord with a field
in y:tableRecord etc. How can we differentiate this?

This usecase of having multiple namespaces can be displayed graphically in
the Design view by appending a namespace prefix, but it seems this will
have issues in generating the avro schema and the mapping config.

Your suggestions are highly appreciated.

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


Re: [Dev] Publish data set in DAS

2016-03-01 Thread Ayyoob Hamza
Hi Lakshitha,
WSO2 DAS has different event receivers[1] to receive events and there is
one for soap[2]. Please refer the sample give in [2] which receive xml
based events.

[1] https://docs.wso2.com/display/DAS300/Configuring+Event+Receivers
[2] https://docs.wso2.com/display/DAS300/SOAP+Event+Receiver

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Tue, Mar 1, 2016 at 1:01 PM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> I'll get some backend data set using soap service. I want to publish that
> data set in WSO2 DAS. How can i do this?
> Any help can be really appreciated.
>
> Thanks and Regards,
> Lakshitha.
>
> ___
> 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


Re: [Dev] [Puppet-Modules] Puppet Error: cwd must be a fully qualified path

2016-03-01 Thread Thanuja Uruththirakodeeswaran
Thanks Manula !!!

The error is because of the syntax error that we need to use *" " *for if
the value has variable. Here the cwd attribute value has carbon_home
variable. Following code will resolve the above puppet error:

exec { "Applying secure vault":
  user   => $user,
  path   =>
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  cwd=> "$carbon_home/bin",
  command=> "sh ciphertool.sh -Dconfigure
-Dpassword=$key_store_password",
  logoutput  => 'on_failure'
}

Thanks.

On Tue, Mar 1, 2016 at 6:27 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi All,
>
> I'm trying to change the cipher tool execution command at [1] so that
> first I need to go inside the $carbon_home/bin directory and then trying to
> execute the cipher tool with the following code snippet (We need to do this
> for carbon kernel 4.2.0 based products as discussed in [2]) :
>
> exec { "Applying secure vault":
>   user   => $user,
>   path   => 
> '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
>   cwd=> '$carbon_home/bin',
>   command=> 'sh ciphertool.sh -Dconfigure 
> -Dpassword=$key_store_password',
>   logoutput  => 'on_failure'
> }
>
> But the above exec fails with below error:
>
> ==> brs.dev.wso2.org: Error: Parameter cwd failed on Exec[Applying secure
> vault]: cwd must be a fully qualified path at
> /tmp/vagrant-puppet/modules-3737bfc9b53e65d741f2b9b350c2e2ca/wso2base/manifests/apply_secure_vault.pp:28
> ==> brs.dev.wso2.org: Wrapped exception:
> ==> brs.dev.wso2.org: cwd must be a fully qualified path
>
> Please give suggestion to resolve this error.
>
> [1].
> https://github.com/wso2/puppet-modules/blob/master/modules/wso2base/manifests/apply_secure_vault.pp#L25
> [2]. http://mail.wso2.org/mailarchive/dev/2014-April/029446.html
>
> Thanks.
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


[Dev] [Puppet-Modules] Puppet Error: cwd must be a fully qualified path

2016-03-01 Thread Thanuja Uruththirakodeeswaran
Hi All,

I'm trying to change the cipher tool execution command at [1] so that first
I need to go inside the $carbon_home/bin directory and then trying to
execute the cipher tool with the following code snippet (We need to do this
for carbon kernel 4.2.0 based products as discussed in [2]) :

exec { "Applying secure vault":
  user   => $user,
  path   =>
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  cwd=> '$carbon_home/bin',
  command=> 'sh ciphertool.sh -Dconfigure
-Dpassword=$key_store_password',
  logoutput  => 'on_failure'
}

But the above exec fails with below error:

==> brs.dev.wso2.org: Error: Parameter cwd failed on Exec[Applying secure
vault]: cwd must be a fully qualified path at
/tmp/vagrant-puppet/modules-3737bfc9b53e65d741f2b9b350c2e2ca/wso2base/manifests/apply_secure_vault.pp:28
==> brs.dev.wso2.org: Wrapped exception:
==> brs.dev.wso2.org: cwd must be a fully qualified path

Please give suggestion to resolve this error.

[1].
https://github.com/wso2/puppet-modules/blob/master/modules/wso2base/manifests/apply_secure_vault.pp#L25
[2]. http://mail.wso2.org/mailarchive/dev/2014-April/029446.html

Thanks.

-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [ESB500] JMS Inbound Endpoint behavior with Session Acknowledgement

2016-03-01 Thread Malaka Silva
Hi Dilshani,

Flow is very simple except following exceptions. Take message -> execute
mediation (sequence) -> ack the broker.

If you want to rollback set SET_ROLLBACK_ONLY mc property to true in fault
sequence.

Also in mediation flow non-blocking mediator should be used. eg:- callout
mediator not send mediator.

On Tue, Mar 1, 2016 at 3:34 PM, Dilshani Subasinghe 
wrote:

> Hi Malaka,
>
> In ESB, JMS Inbound endpoint can configure Acknowledgement Type with
> "transport.jms.SessionAcknowledgement". When it set as
> "Client_Acknowledge" , What will be the behavior of ESB ? Does it behave
> like normal JMS Client which enabled "Client_Acknowledgement" ?
>
> I'm using separate JMS Client with "Client_Acknowledge" mode and using it
> to test JMSX Delivery Count. But ESB Inbound endpoint doesn't behave like
> particular JMS Client (With "Client_Acknowledge" mode).
>
> Can you explain ESB behavior within the particular scenario ?
>
> Thank you.
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> 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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.4 RC1

2016-03-01 Thread Kalpa Welivitigoda
Hi Devs,

Thanks for testing and verifying Carbon kernel 4.4.4 RC1. We are closing
this vote now. This vote has passed with 7 +1s and 0 -1s. Therefore, we
will proceed with the Carbon kernel 4.4.4 release.

On Mon, Feb 29, 2016 at 10:10 PM, KasunG Gajasinghe  wrote:

> Hi All,
>
> Tested the following scenarios on AS
>  Multi-tenancy
>  Artifact deployment of CApps, webapps, and axis2 services
>  JAX-WS/JAX-RS services and invocation
>  The README files
>   JDK 7 and 8 support
>
>
> [x] Stable - go ahead and release.
>
>
> On Mon, Feb 29, 2016 at 8:53 PM, Jayanga Dissanayake 
> wrote:
>
>> Hi All,
>>
>> Tested patching on AS
>>
>> [x] Stable - go ahead and release.
>>
>> Regards,
>> Thanks.
>>
>>
>> *Jayanga Dissanayake*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> On Mon, Feb 29, 2016 at 8:51 PM, Manoj Kumara  wrote:
>>
>>> Hi All,
>>>
>>> Tested following features on AS,
>>>
>>>- Websocket
>>>- Webapp deployment
>>>- User Creation
>>>- Multi Tenancy
>>>- Axis2 Services/ Try-it
>>>- Logging
>>>
>>> [x] Stable - go ahead and release.
>>>
>>> Regards,
>>> Manoj
>>>
>>> *Manoj Kumara*
>>> WSO2 Inc. *| **lean. enterprise. middleware.*
>>> *Mobile:* +94 713 448188
>>>
>>> On Mon, Feb 29, 2016 at 8:22 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi All,

 I've tested the following scenarios
   User creation
   Role creation
   Tenant creation
   Logging

 [x] Stable - go ahead and release.

 Thanks
 Thusitha

 On Fri, Feb 26, 2016 at 10:12 PM, Vijitha Ekanayake 
 wrote:

> Hi All,
>
> I have tested ESB pack with kernel 4.4.4,  Carbon-Multitenancy 4.5.1,
>  Carbon-Deployment 4.6.1 and did smoke testing.
>
> [x] Stable - go ahead and release.
>
> Thanks.
>
> On Fri, Feb 26, 2016 at 10:07 PM, Buddhima Wijeweera <
> buddh...@wso2.com> wrote:
>
>> Hi All,
>>
>> We were able to built the pack successfully with updated versions.
>>
>> Thanks
>>
>>
>>
>>> On Fri, Feb 26, 2016 at 4:45 PM, Hasitha Aravinda 
>>> wrote:
>>>
 Hi Devs,

 I have tested BPS pack with kernel 4.4.4 in clustered environment
 and did smoke testing. Verified [1] as well.

 [x] Stable - go ahead and release.

 [1] - https://wso2.org/jira/browse/CARBON-15776

 Thanks,
 Hasitha.

 On Fri, Feb 26, 2016 at 4:34 PM, Amal Gunatilake 
 wrote:

> Hi all,
>
> We have tested BPS pack against Carbon Kernel 4.4.4. Everything
> seems to be fine.
>
>- Tested core functionalities of BPS.
>- Passed all integration tests
>
> [x] Stable - go ahead and release.
>
> Best regards,
> Amal.
>
> On Wed, Feb 10, 2016 at 11:01 PM, Manuri Amaya Perera <
> manu...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.4.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12641
>>
>> Please download and test your products with kernel 4.4.4 RC1 and
>> vote. Vote will be open for 72 hours or as longer as needed.
>>
>> ​*Source and binary distribution files:*​
>> http://svn.wso2.org/repos/wso2/people/manurip/carbon-4.4.4/
>>
>> ​*Maven staging repository:*​
>>
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-328/
>>
>> ​*The tag to be voted upon:*​
>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.4-RC1
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you
>> Carbon Team​
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Amal Gunatilake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> 

Re: [Dev] Error on loading external OSGI bundles with Carbon 5

2016-03-01 Thread Anupama Pathirage
Hi Aruna,

Thanks a lot. That solved the problem. :) and thanks Thusitha and Kalpa for
the support.


On Tue, Mar 1, 2016 at 4:39 PM, Aruna Karunarathna  wrote:

> * is defined wrong.
>
> Try adding
>
> *
>
> Refer this [1] for more details.
>
> [1]. https://docs.wso2.com/display/Carbon500/Using+the+Maven+Bundle+Plugin
>
> On Tue, Mar 1, 2016 at 4:24 PM, Anupama Pathirage 
> wrote:
>
>> Hi,
>>
>> Thanks for the suggestions.
>>
>> I already tried with followings. May be something is wrong in the way I
>> specified them.
>>
>> 1) import the com.mysql.jdbc pacakage
>>
>> [5.1.35, 5.1.38)
>> com.mysql.jdbc.*;version="${mysql.import.version.range}"
>>
>> 2) Adding dynamic import
>>
>> *
>>
>> I have attached my pom.xml file herewith.
>>
>>
>>
>> On Tue, Mar 1, 2016 at 3:45 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Hi Anupama,
>>>
>>> Since you are doing a class.forName();, you have to do dynamic import
>>> package.
>>>
>>> Can you try adding that to your pom.xml?
>>>
>>> Regards,
>>> Aruna
>>>
>>> On Tue, Mar 1, 2016 at 2:54 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Anupama,

 Are you importing the com.mysql.jdbc package inside your bundle which
 uses mysql?

 Thanks
 Thusitha

 On Tue, Mar 1, 2016 at 2:49 PM, Anupama Pathirage 
 wrote:

> Hi,
>
> I need to query MySQL database with Carbon 5 based product and I added
> the mysql-connector-java-5.1.35.jar [1]  file to the osgi/droppings
> directory. Since the jar file is already an osgi bundle I copied it
> directly to osgi/droppings folder.
>
> But when I load the class as below it gives the
> java.lang.ClassNotFoundException.
>
> Class.forName("com.mysql.jdbc.Driver");
>
> Is there any missing step I followed which can cause this error?
>
>
> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver cannot be
> found by org.wso2.carbon.ibus_1.0.0.SNAPSHOT
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at org.wso2.carbon.ibus.Activator.start(Activator.java:55)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
> at org.eclipse.osgi.container.Module.start(Module.java:439)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:438)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
> at
> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)

Re: [Dev] Error on loading external OSGI bundles with Carbon 5

2016-03-01 Thread Aruna Karunarathna
* is defined wrong.

Try adding

*

Refer this [1] for more details.

[1]. https://docs.wso2.com/display/Carbon500/Using+the+Maven+Bundle+Plugin

On Tue, Mar 1, 2016 at 4:24 PM, Anupama Pathirage  wrote:

> Hi,
>
> Thanks for the suggestions.
>
> I already tried with followings. May be something is wrong in the way I
> specified them.
>
> 1) import the com.mysql.jdbc pacakage
>
> [5.1.35, 5.1.38)
> com.mysql.jdbc.*;version="${mysql.import.version.range}"
>
> 2) Adding dynamic import
>
> *
>
> I have attached my pom.xml file herewith.
>
>
>
> On Tue, Mar 1, 2016 at 3:45 PM, Aruna Karunarathna  wrote:
>
>> Hi Anupama,
>>
>> Since you are doing a class.forName();, you have to do dynamic import
>> package.
>>
>> Can you try adding that to your pom.xml?
>>
>> Regards,
>> Aruna
>>
>> On Tue, Mar 1, 2016 at 2:54 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Anupama,
>>>
>>> Are you importing the com.mysql.jdbc package inside your bundle which
>>> uses mysql?
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Tue, Mar 1, 2016 at 2:49 PM, Anupama Pathirage 
>>> wrote:
>>>
 Hi,

 I need to query MySQL database with Carbon 5 based product and I added
 the mysql-connector-java-5.1.35.jar [1]  file to the osgi/droppings
 directory. Since the jar file is already an osgi bundle I copied it
 directly to osgi/droppings folder.

 But when I load the class as below it gives the
 java.lang.ClassNotFoundException.

 Class.forName("com.mysql.jdbc.Driver");

 Is there any missing step I followed which can cause this error?


 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver cannot be found
 by org.wso2.carbon.ibus_1.0.0.SNAPSHOT
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
 at
 org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:264)
 at org.wso2.carbon.ibus.Activator.start(Activator.java:55)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at
 org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at
 org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at
 org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
 at
 org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
 at
 org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:438)
 at
 org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
 at
 org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
 at
 org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
 at
 org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at
 org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at
 org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at
 

Re: [Dev] Error on loading external OSGI bundles with Carbon 5

2016-03-01 Thread Anupama Pathirage
Hi,

Thanks for the suggestions.

I already tried with followings. May be something is wrong in the way I
specified them.

1) import the com.mysql.jdbc pacakage

[5.1.35, 5.1.38)
com.mysql.jdbc.*;version="${mysql.import.version.range}"

2) Adding dynamic import

*

I have attached my pom.xml file herewith.



On Tue, Mar 1, 2016 at 3:45 PM, Aruna Karunarathna  wrote:

> Hi Anupama,
>
> Since you are doing a class.forName();, you have to do dynamic import
> package.
>
> Can you try adding that to your pom.xml?
>
> Regards,
> Aruna
>
> On Tue, Mar 1, 2016 at 2:54 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Anupama,
>>
>> Are you importing the com.mysql.jdbc package inside your bundle which
>> uses mysql?
>>
>> Thanks
>> Thusitha
>>
>> On Tue, Mar 1, 2016 at 2:49 PM, Anupama Pathirage 
>> wrote:
>>
>>> Hi,
>>>
>>> I need to query MySQL database with Carbon 5 based product and I added
>>> the mysql-connector-java-5.1.35.jar [1]  file to the osgi/droppings
>>> directory. Since the jar file is already an osgi bundle I copied it
>>> directly to osgi/droppings folder.
>>>
>>> But when I load the class as below it gives the
>>> java.lang.ClassNotFoundException.
>>>
>>> Class.forName("com.mysql.jdbc.Driver");
>>>
>>> Is there any missing step I followed which can cause this error?
>>>
>>>
>>> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver cannot be found
>>> by org.wso2.carbon.ibus_1.0.0.SNAPSHOT
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
>>> at
>>> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:264)
>>> at org.wso2.carbon.ibus.Activator.start(Activator.java:55)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
>>> at
>>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:438)
>>> at
>>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
>>> at
>>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
>>> at
>>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
>>> at
>>> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
>>> at
>>> org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:243)
>>> at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:84)
>>> at 

Re: [Dev] Error on loading external OSGI bundles with Carbon 5

2016-03-01 Thread Aruna Karunarathna
Hi Anupama,

Since you are doing a class.forName();, you have to do dynamic import
package.

Can you try adding that to your pom.xml?

Regards,
Aruna

On Tue, Mar 1, 2016 at 2:54 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Anupama,
>
> Are you importing the com.mysql.jdbc package inside your bundle which
> uses mysql?
>
> Thanks
> Thusitha
>
> On Tue, Mar 1, 2016 at 2:49 PM, Anupama Pathirage 
> wrote:
>
>> Hi,
>>
>> I need to query MySQL database with Carbon 5 based product and I added
>> the mysql-connector-java-5.1.35.jar [1]  file to the osgi/droppings
>> directory. Since the jar file is already an osgi bundle I copied it
>> directly to osgi/droppings folder.
>>
>> But when I load the class as below it gives the
>> java.lang.ClassNotFoundException.
>>
>> Class.forName("com.mysql.jdbc.Driver");
>>
>> Is there any missing step I followed which can cause this error?
>>
>>
>> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver cannot be found
>> by org.wso2.carbon.ibus_1.0.0.SNAPSHOT
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
>> at
>> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:264)
>> at org.wso2.carbon.ibus.Activator.start(Activator.java:55)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:438)
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
>> at
>> org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:243)
>> at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:84)
>> at org.wso2.carbon.launcher.Main.main(Main.java:83)
>>
>>
>> [1] http://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.35
>>
>>
>> Thanks.
>> --
>> Anupama Pathirage
>> Associate Technical Lead
>> WSO2, Inc.  http://wso2.com/
>> Email: anup...@wso2.com
>> Mobile:+94 71 8273 979
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com

[Dev] [ESB500] JMS Inbound Endpoint behavior with Session Acknowledgement

2016-03-01 Thread Dilshani Subasinghe
Hi Malaka,

In ESB, JMS Inbound endpoint can configure Acknowledgement Type with
"transport.jms.SessionAcknowledgement". When it set as "Client_Acknowledge"
, What will be the behavior of ESB ? Does it behave like normal JMS Client
which enabled "Client_Acknowledgement" ?

I'm using separate JMS Client with "Client_Acknowledge" mode and using it
to test JMSX Delivery Count. But ESB Inbound endpoint doesn't behave like
particular JMS Client (With "Client_Acknowledge" mode).

Can you explain ESB behavior within the particular scenario ?

Thank you.

-- 
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] Error on loading external OSGI bundles with Carbon 5

2016-03-01 Thread Thusitha Thilina Dayaratne
Hi Anupama,

Are you importing the com.mysql.jdbc package inside your bundle which uses
mysql?

Thanks
Thusitha

On Tue, Mar 1, 2016 at 2:49 PM, Anupama Pathirage  wrote:

> Hi,
>
> I need to query MySQL database with Carbon 5 based product and I added the
> mysql-connector-java-5.1.35.jar [1]  file to the osgi/droppings directory.
> Since the jar file is already an osgi bundle I copied it directly to
> osgi/droppings folder.
>
> But when I load the class as below it gives the
> java.lang.ClassNotFoundException.
>
> Class.forName("com.mysql.jdbc.Driver");
>
> Is there any missing step I followed which can cause this error?
>
>
> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver cannot be found by
> org.wso2.carbon.ibus_1.0.0.SNAPSHOT
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at org.wso2.carbon.ibus.Activator.start(Activator.java:55)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
> at org.eclipse.osgi.container.Module.start(Module.java:439)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:438)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
> at
> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
> at org.eclipse.osgi.container.Module.start(Module.java:439)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
> at
> org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:243)
> at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:84)
> at org.wso2.carbon.launcher.Main.main(Main.java:83)
>
>
> [1] http://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.35
>
>
> Thanks.
> --
> Anupama Pathirage
> Associate Technical Lead
> WSO2, Inc.  http://wso2.com/
> Email: anup...@wso2.com
> Mobile:+94 71 8273 979
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error on loading external OSGI bundles with Carbon 5

2016-03-01 Thread Anupama Pathirage
Hi,

I need to query MySQL database with Carbon 5 based product and I added the
mysql-connector-java-5.1.35.jar [1]  file to the osgi/droppings directory.
Since the jar file is already an osgi bundle I copied it directly to
osgi/droppings folder.

But when I load the class as below it gives the
java.lang.ClassNotFoundException.

Class.forName("com.mysql.jdbc.Driver");

Is there any missing step I followed which can cause this error?


java.lang.ClassNotFoundException: com.mysql.jdbc.Driver cannot be found by
org.wso2.carbon.ibus_1.0.0.SNAPSHOT
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.wso2.carbon.ibus.Activator.start(Activator.java:55)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
at
org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
at
org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:438)
at
org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
at
org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
at
org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
at
org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
at
org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
at
org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:243)
at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:84)
at org.wso2.carbon.launcher.Main.main(Main.java:83)


[1] http://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.35


Thanks.
-- 
Anupama Pathirage
Associate Technical Lead
WSO2, Inc.  http://wso2.com/
Email: anup...@wso2.com
Mobile:+94 71 8273 979
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoking Query type API call via People HR connector

2016-03-01 Thread Amalka Subasinghe
Thanks

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267

On Tue, Mar 1, 2016 at 2:10 PM, Thulasika Vijayanathan 
wrote:

> Hi Amalka,
>
> Please find the updated peoplehr connector in store[1].
> [1]
> https://store.wso2.com/store/assets/esbconnector/875a8019-8fe9-42ff-9cd2-acb0ea7e2d3a
> 
>
> Thanks,
> Thulasika.
>
>
> On Mon, Feb 29, 2016 at 12:05 PM, Amalka Subasinghe 
> wrote:
>
>> Hi,
>>
>> is it possible to $subject?
>> According to the documentation I couldn't find a way
>>
>> [1] https://api.peoplehr.net/Pages/Functional/Default.aspx
>> [2]
>> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+PeopleHR+Operations
>>
>> Thanks
>> Amalka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thulasika
> Associate Software Engineer
> Mobile:0778014295
> email: thulas...@wso2.com 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoking Query type API call via People HR connector

2016-03-01 Thread Thulasika Vijayanathan
Hi Amalka,

Please find the updated peoplehr connector in store[1].
[1]
https://store.wso2.com/store/assets/esbconnector/875a8019-8fe9-42ff-9cd2-acb0ea7e2d3a


Thanks,
Thulasika.


On Mon, Feb 29, 2016 at 12:05 PM, Amalka Subasinghe  wrote:

> Hi,
>
> is it possible to $subject?
> According to the documentation I couldn't find a way
>
> [1] https://api.peoplehr.net/Pages/Functional/Default.aspx
> [2]
> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+PeopleHR+Operations
>
> Thanks
> Amalka
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thulasika
Associate Software Engineer
Mobile:0778014295
email: thulas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Packaging the Kubernetes Artifacts

2016-03-01 Thread Vishanth Balasubramaniam
Thanks Isuru.

Noted, will do it that way.

On Tue, Mar 1, 2016 at 1:45 PM, Isuru Haththotuwa  wrote:

> Hi Vishanth,
>
> Few comments:
>
>- Move the property kubernetes.artifacts.version to root pom
>- No need to define profiles, common plugins (assembly) and
>repositories in each pom, they can be declared in the root pom and
>inherited.
>
>
> On Tue, Mar 1, 2016 at 9:29 AM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> Thanks Imesh.
>>
>> On Tue, Mar 1, 2016 at 7:27 AM, Imesh Gunaratne  wrote:
>>
>>>
>>> On Tue, Mar 1, 2016 at 7:16 AM, Imesh Gunaratne  wrote:
>>>

 WSO2 has repeated in the artifact names, see above
 Might be better to rename wso2am-docker-1.0.0.zip
 to wso2am-dockerfile-1.0.0.zip

 I have now fixed above:
>>>
>>>
>>> https://github.com/wso2/kubernetes-artifacts/commit/764c50282ab3f538f7bfa39e56eb25287a55d221
>>>
>>> https://github.com/wso2/kubernetes-artifacts/commit/a3114e6b79c67bf23257ad2c61cf33375a4116ff
>>>
>>> Thanks
>>>
>>>
 Thanks

 On Mon, Feb 29, 2016 at 1:15 PM, Chamila De Alwis 
 wrote:

> Hi Vishanth,
>
> The plan is to have the base image in Docker Public registry so that
> anyone can pull it whenever they want. However, IMO we should also ship 
> the
> common image artifacts, in case the users need to modify the Base image.
>
> We can additionally link the common Dockerfile with the Docker
> registry [1].
>
> [1] - https://docs.docker.com/docker-hub/github/
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, Feb 29, 2016 at 12:41 PM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> Hi,
>>
>> This is to discuss the packaging structure of Kubernetes Artifacts.
>> The project structure is attached [1]. The plan is to package the Docker
>> related distributions and Kubernetes related distributions separately per
>> product.
>>
>> Docker related distribution of a product would look like this.
>> -Docker-1.0.0.zip
>> |--- /docker
>> |--- Common
>> |--- docker/base-image
>> |--- scripts/docker
>> |--- ReadMe.md
>>
>> Should we package the docker base-image within every docker
>> distribution of a product or should it be packaged separately. Thoughts?
>>
>> Kubernetes related distribution of a product would look like this.
>> -Kubernetes-1.0.0.zip
>> |--- /kubernetes
>> |--- Common
>> |--- scripts/kubernetes
>> |--- ReadMe.md
>>
>> [1] - Attachment: Kubernetes-Artifacts-Project-Structure.png​
>> ​​
>> Regards,
>> Vishanth
>>
>> --
>> *Vishanth Balasubramaniam*
>> Committer & PMC Member, Apache Stratos,
>> Software Engineer, WSO2 Inc.; http://wso2.com
>>
>> mobile: *+94 77 17 377 18*
>> about me: *http://about.me/vishanth *
>>
>
>


 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.io
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.io
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Vishanth Balasubramaniam*
>> Committer & PMC Member, Apache Stratos,
>> Software Engineer, WSO2 Inc.; http://wso2.com
>>
>> mobile: *+94 77 17 377 18*
>> about me: *http://about.me/vishanth *
>>
>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Packaging the Kubernetes Artifacts

2016-03-01 Thread Isuru Haththotuwa
Hi Vishanth,

Few comments:

   - Move the property kubernetes.artifacts.version to root pom
   - No need to define profiles, common plugins (assembly) and repositories
   in each pom, they can be declared in the root pom and inherited.


On Tue, Mar 1, 2016 at 9:29 AM, Vishanth Balasubramaniam  wrote:

> Thanks Imesh.
>
> On Tue, Mar 1, 2016 at 7:27 AM, Imesh Gunaratne  wrote:
>
>>
>> On Tue, Mar 1, 2016 at 7:16 AM, Imesh Gunaratne  wrote:
>>
>>>
>>> WSO2 has repeated in the artifact names, see above
>>> Might be better to rename wso2am-docker-1.0.0.zip
>>> to wso2am-dockerfile-1.0.0.zip
>>>
>>> I have now fixed above:
>>
>>
>> https://github.com/wso2/kubernetes-artifacts/commit/764c50282ab3f538f7bfa39e56eb25287a55d221
>>
>> https://github.com/wso2/kubernetes-artifacts/commit/a3114e6b79c67bf23257ad2c61cf33375a4116ff
>>
>> Thanks
>>
>>
>>> Thanks
>>>
>>> On Mon, Feb 29, 2016 at 1:15 PM, Chamila De Alwis 
>>> wrote:
>>>
 Hi Vishanth,

 The plan is to have the base image in Docker Public registry so that
 anyone can pull it whenever they want. However, IMO we should also ship the
 common image artifacts, in case the users need to modify the Base image.

 We can additionally link the common Dockerfile with the Docker registry
 [1].

 [1] - https://docs.docker.com/docker-hub/github/


 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Feb 29, 2016 at 12:41 PM, Vishanth Balasubramaniam <
 vishan...@wso2.com> wrote:

> Hi,
>
> This is to discuss the packaging structure of Kubernetes Artifacts.
> The project structure is attached [1]. The plan is to package the Docker
> related distributions and Kubernetes related distributions separately per
> product.
>
> Docker related distribution of a product would look like this.
> -Docker-1.0.0.zip
> |--- /docker
> |--- Common
> |--- docker/base-image
> |--- scripts/docker
> |--- ReadMe.md
>
> Should we package the docker base-image within every docker
> distribution of a product or should it be packaged separately. Thoughts?
>
> Kubernetes related distribution of a product would look like this.
> -Kubernetes-1.0.0.zip
> |--- /kubernetes
> |--- Common
> |--- scripts/kubernetes
> |--- ReadMe.md
>
> [1] - Attachment: Kubernetes-Artifacts-Project-Structure.png​
> ​​
> Regards,
> Vishanth
>
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94 77 17 377 18*
> about me: *http://about.me/vishanth *
>


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.io
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94 77 17 377 18*
> about me: *http://about.me/vishanth *
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev