Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-03-04 Thread Bhathiya Jayasekara
FYI: In APIM we have spring.framework_3.2.9.wso2v1.jar. (I don't see any
spring dependency in your webapp code.)

Thanks,
Bhathiya

On Sat, Mar 5, 2016 at 12:18 PM, Bhathiya Jayasekara 
wrote:

> Hi Dharshana,
>
> I updated the webapp, and now I'm getting this runtime exception.
>
> *java.lang.NoSuchMethodError:
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V*
>
> As per [1], it needs a later version of spring-beans. Can you please
> confirm if I need to update that or if I'm missing something else?
>
> [1]
> http://stackoverflow.com/questions/27607961/nosuchmethoderror-org-springframework-beans-factory-xml-xmlreadercontext-getenv
>
> Thanks,
> Bhathiya
>
>
>
> On Fri, Feb 26, 2016 at 10:31 PM, Bhathiya Jayasekara 
> wrote:
>
>> Thanks a lot for the detailed information Dharshana. I will add and use
>> this webapp.
>>
>> Thanks,
>> Bhathiya
>>
>> On Fri, Feb 26, 2016 at 9:42 PM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi Bhatiya,
>>>
>>> This uses web app deployed in product to expose set of APIs deployed to
>>> Synapse context. We originally developed this to monitor dep sync between
>>> gateway nodes. You can take the web app form [1] and implement until as
>>> this to check this. There is a web app on APIM repo as well on [2]. But
>>> latest one is available at [1]. you can merge it to APIM product repo form
>>> [3].
>>>
>>>
>>> Just deploy this war into product and use following REST calls to take
>>> status.
>>>
>>> Please find webapp details here
>>> *API status*
>>>
>>> All Apis
>>>
>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/getApiList
>>>
>>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/{tenantDomain}/{tenantId}/getApiList
>>> *
>>>
>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/wso2.org/1/getApiList
>>>
>>> Get specific API info
>>>
>>>
>>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/{webappName}/{version}
>>> *
>>>
>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/adminApi123/1.0.0
>>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/{tenantDomain}/{tenantId}/{webappName}/{version}
>>> *
>>>
>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/wso2.org/1/testTenantApi/1.0.0
>>>
>>> *WebApp status*
>>>
>>> All webapps
>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/allApps
>>>
>>> *http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/
>>> {tenantDomain}/{tenantId}/allApps*
>>>
>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/wso2.org/1/allApps
>>>
>>> *Webapp Info*
>>>
>>>
>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/APIStatusMonitor.war
>>>
>>> *http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/{tenantDomain}/{tenantId}/{webappName}
>>> *
>>>
>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/wso2.org/1/APIStatusMonitor.war
>>>
>>>
>>> *Git repo *
>>> https://github.com/dkasunw/artifactMonitor.git
>>>
>>>
>>>
>>> [1]. https://github.com/dkasunw/artifactMonitor.git
>>> [2].
>>> https://github.com/wso2/product-apim/tree/master/modules/integration/tests-common/backend-service/monitor-app
>>> [3].
>>> https://github.com/krishanthasamaraweera/product-apim/tree/master/modules/integration/tests-common/backend-service/monitor-app
>>>
>>> Thank you,
>>> Dharshana.
>>>
>>> On Fri, Feb 26, 2016 at 6:41 PM, Bhathiya Jayasekara 
>>> wrote:
>>>
 Hi TA team,

 In [1], inside waitForAPIDeploymentSync() method, it checks for
 ExecutionEnvironment.PLATFORM before proceeding to wait.

 But even in standalone mode, I have seen API invocations sometimes fail
 as API is not completely deployed at that time. So, removing above
 conditional check and getting this functionality for standalone tests as
 well looks like a solution to me. WDYT? Can you think of any issues that
 can arise if we do that?

 [1]
 https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/base/APIMIntegrationBaseTest.java#L416

 Thanks,

 --
 *Bhathiya Jayasekara*
 *Senior Software Engineer,*
 *WSO2 inc., http://wso2.com *

 *Phone: +94715478185 <%2B94715478185>*
 *LinkedIn: 

Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-03-04 Thread Bhathiya Jayasekara
Hi Dharshana,

I updated the webapp, and now I'm getting this runtime exception.

*java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V*

As per [1], it needs a later version of spring-beans. Can you please
confirm if I need to update that or if I'm missing something else?

[1]
http://stackoverflow.com/questions/27607961/nosuchmethoderror-org-springframework-beans-factory-xml-xmlreadercontext-getenv

Thanks,
Bhathiya



On Fri, Feb 26, 2016 at 10:31 PM, Bhathiya Jayasekara 
wrote:

> Thanks a lot for the detailed information Dharshana. I will add and use
> this webapp.
>
> Thanks,
> Bhathiya
>
> On Fri, Feb 26, 2016 at 9:42 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Bhatiya,
>>
>> This uses web app deployed in product to expose set of APIs deployed to
>> Synapse context. We originally developed this to monitor dep sync between
>> gateway nodes. You can take the web app form [1] and implement until as
>> this to check this. There is a web app on APIM repo as well on [2]. But
>> latest one is available at [1]. you can merge it to APIM product repo form
>> [3].
>>
>>
>> Just deploy this war into product and use following REST calls to take
>> status.
>>
>> Please find webapp details here
>> *API status*
>>
>> All Apis
>>
>> http://localhost:9763/APIStatusMonitor/apiInformation/api/getApiList
>>
>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/{tenantDomain}/{tenantId}/getApiList
>> *
>>
>> http://localhost:9763/APIStatusMonitor/apiInformation/api/wso2.org/1/getApiList
>>
>> Get specific API info
>>
>>
>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/{webappName}/{version}
>> *
>>
>> http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/adminApi123/1.0.0
>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/{tenantDomain}/{tenantId}/{webappName}/{version}
>> *
>>
>> http://localhost:9763/APIStatusMonitor/apiInformation/api/wso2.org/1/testTenantApi/1.0.0
>>
>> *WebApp status*
>>
>> All webapps
>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/allApps
>>
>> *http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/
>> {tenantDomain}/{tenantId}/allApps*
>>
>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/wso2.org/1/allApps
>>
>> *Webapp Info*
>>
>>
>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/APIStatusMonitor.war
>>
>> *http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/{tenantDomain}/{tenantId}/{webappName}
>> *
>>
>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/wso2.org/1/APIStatusMonitor.war
>>
>>
>> *Git repo *
>> https://github.com/dkasunw/artifactMonitor.git
>>
>>
>>
>> [1]. https://github.com/dkasunw/artifactMonitor.git
>> [2].
>> https://github.com/wso2/product-apim/tree/master/modules/integration/tests-common/backend-service/monitor-app
>> [3].
>> https://github.com/krishanthasamaraweera/product-apim/tree/master/modules/integration/tests-common/backend-service/monitor-app
>>
>> Thank you,
>> Dharshana.
>>
>> On Fri, Feb 26, 2016 at 6:41 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi TA team,
>>>
>>> In [1], inside waitForAPIDeploymentSync() method, it checks for
>>> ExecutionEnvironment.PLATFORM before proceeding to wait.
>>>
>>> But even in standalone mode, I have seen API invocations sometimes fail
>>> as API is not completely deployed at that time. So, removing above
>>> conditional check and getting this functionality for standalone tests as
>>> well looks like a solution to me. WDYT? Can you think of any issues that
>>> can arise if we do that?
>>>
>>> [1]
>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/base/APIMIntegrationBaseTest.java#L416
>>>
>>> Thanks,
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. 

Re: [Dev] Clarification regarding BuilderMediator

2016-03-04 Thread Isuru Udana
Hi Malintha,

Builder mediator approach is adding lot of overhead to the configuration as
we have to add it for all the APIs in ESB which handles json.
Handling malformed json is a special case. For this special API which
handles malformed json, let's engage an API handler. At the handler in the
response path we can change the content-type.

On Saturday, March 5, 2016, Malintha Amarasinghe  wrote:

> Hi Isuru,
>
> Thanks for looking in to this.
>
> 1. We have an API and lets say it points to a backend which sometimes give
> invalid payloads with application/json content type.
> 2. We have added a content aware mediator along the mediation flow. (Ex:
> the API is response caching enabled)
> 3. If the backend gives an invalid payload the cache mediator will fail
> when it tries to build the message.
>
> If we had set the PlainTextBuilder/PlainTextFormatter for application/json
> mediatype in axis2.xml, we can overcome the above issue. But the problem
> is, that applies globally to all the APIs / Services etc in ESB. If we
> could set the PlainTextBuilder/PlainTextFormatter for application/json
> content type only to the API we have the problem with the backend while
> keeping default JsonBuilder/JsonFormatter, it would be a better solution
> IMO as our solution would not affect other APIs/Services.
>
> Thanks,
> Malintha
>
>
>
>
>
> On Sat, Mar 5, 2016 at 10:26 AM, Isuru Udana  > wrote:
>
>> Hi Malintha,
>>
>> Can you please explain the use case you are trying to implement using
>> builder mediator.
>>
>>
>> On Saturday, March 5, 2016, Malintha Amarasinghe > > wrote:
>>
>>> Hi,
>>>
>>> I was trying a sample for Builder Mediator [1] to override the default
>>> message formatter/builder and use PlainTextBuilder/PlainTextFormatter for
>>> application/json content type. As per the documentation [1] we should be
>>> enable BinaryRealyBuilder/ExpandingMessageFormatter for at least one
>>> content type in axis2.xml.
>>>
>>> 1. I tried enabling a different content-type for
>>> BinaryRealyBuilder/ExpandingMessageFormatter and kept the defaults for
>>> application/json type and then tried to override it using the builder
>>> mediator. But then the Builder mediator does not work as expected and it
>>> uses default JsonBuilder/JsonBuilder to build the message.
>>>
>>> 2. If I enable BinaryRealyBuilder/ExpandingMessageFormatter for
>>> application/json in axis2.xml, Builder mediator works as expected.
>>>
>>> Am I doing anything wrong when I am trying the first option? Or is (2)
>>> the correct behaviour and we should
>>> set BinaryRealyBuilder/ExpandingMessageFormatter for the same content type
>>> we are trying to override?
>>>
>>> Kindly appreciate your help on this.
>>>
>>> Thanks,
>>> Malintha
>>>
>>> [1] https://docs.wso2.com/display/ESB490/Builder+Mediator
>>>
>>> --
>>> Malintha Amarasinghe
>>> Software Engineer
>>> *WSO2, Inc. - lean | enterprise | middleware*
>>> http://wso2.com/
>>>
>>> Mobile : +94 712383306
>>>
>>
>>
>> --
>> Sent from Mobile
>>
>
>
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306
>


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


Re: [Dev] Clarification regarding BuilderMediator

2016-03-04 Thread Malintha Amarasinghe
Hi Isuru,

Thanks for looking in to this.

1. We have an API and lets say it points to a backend which sometimes give
invalid payloads with application/json content type.
2. We have added a content aware mediator along the mediation flow. (Ex:
the API is response caching enabled)
3. If the backend gives an invalid payload the cache mediator will fail
when it tries to build the message.

If we had set the PlainTextBuilder/PlainTextFormatter for application/json
mediatype in axis2.xml, we can overcome the above issue. But the problem
is, that applies globally to all the APIs / Services etc in ESB. If we
could set the PlainTextBuilder/PlainTextFormatter for application/json
content type only to the API we have the problem with the backend while
keeping default JsonBuilder/JsonFormatter, it would be a better solution
IMO as our solution would not affect other APIs/Services.

Thanks,
Malintha





On Sat, Mar 5, 2016 at 10:26 AM, Isuru Udana  wrote:

> Hi Malintha,
>
> Can you please explain the use case you are trying to implement using
> builder mediator.
>
>
> On Saturday, March 5, 2016, Malintha Amarasinghe 
> wrote:
>
>> Hi,
>>
>> I was trying a sample for Builder Mediator [1] to override the default
>> message formatter/builder and use PlainTextBuilder/PlainTextFormatter for
>> application/json content type. As per the documentation [1] we should be
>> enable BinaryRealyBuilder/ExpandingMessageFormatter for at least one
>> content type in axis2.xml.
>>
>> 1. I tried enabling a different content-type for
>> BinaryRealyBuilder/ExpandingMessageFormatter and kept the defaults for
>> application/json type and then tried to override it using the builder
>> mediator. But then the Builder mediator does not work as expected and it
>> uses default JsonBuilder/JsonBuilder to build the message.
>>
>> 2. If I enable BinaryRealyBuilder/ExpandingMessageFormatter for
>> application/json in axis2.xml, Builder mediator works as expected.
>>
>> Am I doing anything wrong when I am trying the first option? Or is (2)
>> the correct behaviour and we should
>> set BinaryRealyBuilder/ExpandingMessageFormatter for the same content type
>> we are trying to override?
>>
>> Kindly appreciate your help on this.
>>
>> Thanks,
>> Malintha
>>
>> [1] https://docs.wso2.com/display/ESB490/Builder+Mediator
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306
>>
>
>
> --
> Sent from Mobile
>



-- 
Malintha Amarasinghe
Software Engineer
*WSO2, Inc. - lean | enterprise | middleware*
http://wso2.com/

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


Re: [Dev] Clarification regarding BuilderMediator

2016-03-04 Thread Isuru Udana
Hi Malintha,

Can you please explain the use case you are trying to implement using
builder mediator.

On Saturday, March 5, 2016, Malintha Amarasinghe  wrote:

> Hi,
>
> I was trying a sample for Builder Mediator [1] to override the default
> message formatter/builder and use PlainTextBuilder/PlainTextFormatter for
> application/json content type. As per the documentation [1] we should be
> enable BinaryRealyBuilder/ExpandingMessageFormatter for at least one
> content type in axis2.xml.
>
> 1. I tried enabling a different content-type for
> BinaryRealyBuilder/ExpandingMessageFormatter and kept the defaults for
> application/json type and then tried to override it using the builder
> mediator. But then the Builder mediator does not work as expected and it
> uses default JsonBuilder/JsonBuilder to build the message.
>
> 2. If I enable BinaryRealyBuilder/ExpandingMessageFormatter for
> application/json in axis2.xml, Builder mediator works as expected.
>
> Am I doing anything wrong when I am trying the first option? Or is (2) the
> correct behaviour and we should
> set BinaryRealyBuilder/ExpandingMessageFormatter for the same content type
> we are trying to override?
>
> Kindly appreciate your help on this.
>
> Thanks,
> Malintha
>
> [1] https://docs.wso2.com/display/ESB490/Builder+Mediator
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306
>


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


[Dev] Clarification regarding BuilderMediator

2016-03-04 Thread Malintha Amarasinghe
Hi,

I was trying a sample for Builder Mediator [1] to override the default
message formatter/builder and use PlainTextBuilder/PlainTextFormatter for
application/json content type. As per the documentation [1] we should be
enable BinaryRealyBuilder/ExpandingMessageFormatter for at least one
content type in axis2.xml.

1. I tried enabling a different content-type for
BinaryRealyBuilder/ExpandingMessageFormatter and kept the defaults for
application/json type and then tried to override it using the builder
mediator. But then the Builder mediator does not work as expected and it
uses default JsonBuilder/JsonBuilder to build the message.

2. If I enable BinaryRealyBuilder/ExpandingMessageFormatter for
application/json in axis2.xml, Builder mediator works as expected.

Am I doing anything wrong when I am trying the first option? Or is (2) the
correct behaviour and we should
set BinaryRealyBuilder/ExpandingMessageFormatter for the same content type
we are trying to override?

Kindly appreciate your help on this.

Thanks,
Malintha

[1] https://docs.wso2.com/display/ESB490/Builder+Mediator

-- 
Malintha Amarasinghe
Software Engineer
*WSO2, Inc. - lean | enterprise | middleware*
http://wso2.com/

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


Re: [Dev] [EMM][AppM] Emm is sending all of its devices in a specific tenant when user's devices are needed.

2016-03-04 Thread Chathura Dilan
Hi Prabath,

Thank you. I created a JIRA[1] for that.

[1] - https://wso2.org/jira/browse/MDM-407

On Thu, Mar 3, 2016 at 6:53 PM, Prabath Abeysekera 
wrote:

> Thanks for reporting. Please file a JIRA for us to keep track of it and
> fix targeting the next immediate patch release of the product.
>
> Cheers,
> Prabath
>
>
> On Friday, March 4, 2016, Chathura Dilan  wrote:
>
>> Hi All,
>>
>> In AppM EMM integration from OSGI[1] (line 163). I can see EMM retrieve
>> all of its devices and send it to AppM when user's devices are needed. This
>> should be filtered to get only users devices by AppM, not all devices which
>> is in the tenant.
>>
>>
>>
>> [1] -
>> https://github.com/wso2/product-mdm/blob/master/modules/components/app-mgt/org.wso2.mdm.appmgt/src/main/java/org/wso2/mdm/appmgt/service/MDMOperationsImpl.java
>>
>> --
>> Regards,
>>
>> Chatura Dilan Perera
>> *Senior Software Engineer** - WSO2 Inc.*
>> www.dilan.me
>>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
>


-- 
Regards,

Chatura Dilan Perera
*Senior Software Engineer** - WSO2 Inc.*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gsoc 2016] [CDMF] Calculate Device Health Status using Analytics and API Calls

2016-03-04 Thread Geethika Kumari
Hi,
  I tried to build
[1]carbon-device-mgt
[2] carbon-device-mgt-plugins
[3]product-mdm
master branch. [1] and [2] build without errors. But [3] given error in
Backend Integration Tests.

Error log:

 WSO2 MDM - Integration Admin Clients .. SUCCESS [0.305s]
[INFO] WSO2 MDM - Integration Test Utils . SUCCESS [0.319s]
[INFO] WSO2 MDM - Integration Test UI Pages .. SUCCESS [16.072s]
[INFO] WSO2 MDM Backend Integration Tests  FAILURE [30.660s]
[INFO] WSO2 MDM - Integration Test UI Module . SKIPPED
[INFO] WSO2 MDM Platform Integration Tests ... SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 9:28.279s
[INFO] Finished at: Fri Mar 04 23:11:07 IST 2016
[INFO] Final Memory: 121M/494M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
on project tests-integration: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
forked VM terminated without saying properly goodbye. VM crash or
System.exit called ? -> [Help 1]

I trried to skip integration tests using
[1] mvn clean install -Dmaven.test.skip='true'
[2]mvn install -DskipIntegrationTests -DskipUnitTests

But same error occurred. Please help me.

Thanks and Regards,
Geethika Abeysinghe.


On Fri, Mar 4, 2016 at 4:01 PM, Sumedha Rubasinghe  wrote:

> Hi Geethika,
> No Sirs here.. Just Ayyoob would do. :)
>
> Hope you find the project interesting.
>
> On Fri, Mar 4, 2016 at 2:40 PM, Geethika Kumari 
> wrote:
>
>> Hello sir,
>> Thank you for help. There are several branches in these repositories.
>> What branch I need to use.
>>
>> Thanks and Regards.
>> Nuwan Sameera.
>>
>> On Thu, Mar 3, 2016 at 12:20 AM, Ayyoob Hamza  wrote:
>>
>>> Hi Geethika,
>>> Thank you for your interest in this project. CDMF is a framework that is
>>> used for device management and one of the requirement is for the user to
>>> monitor the device status. There are two ways to check the status of a
>>> device
>>> 1) Send a device health check ping to the device and then depict the
>>> status.
>>> 2) Get the device to server communication data and then co relate with
>>> past communication to find the status of the device.
>>>
>>> In here we are focusing with a generalised solution that incorporates
>>> the idea from the second approach. In the first approach we are limiting
>>> the capability by asking the device manufacture to incorporate the
>>> capability.
>>>
>>> You can find the source code for CDMF in
>>> https://github.com/wso2/carbon-device-mgt
>>>
>>> You can find the source code for device type implementation such as
>>> android, windows and few IoT device samples in :
>>> https://github.com/wso2/carbon-device-mgt-plugins
>>>
>>> We have two products that are built on CDMF
>>> 1) EMM -
>>> https://docs.wso2.com/display/EMM200/WSO2+Enterprise+Mobility+Manager
>>> https://github.com/wso2/product-mdm - You can find the official release
>>> EMM 2.0.0 in the product listing page
>>>
>>> 2) IoT Server - https://docs.wso2.com/display/IoTS100/About+IoT+Server
>>> https://github.com/wso2-incubator/product-iot-server - This is still
>>> under development.
>>>
>>> Please go through the documentation and try to build EMM to understand
>>> the behaviour of the product.
>>>
>>> Thanks
>>>
>>>
>>> *Ayyoob Hamza*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>>
>>> On Wed, Mar 2, 2016 at 11:38 PM, Geethika Kumari >> > wrote:
>>>
 Dear sir,

 I am Geethika Kumari Abeysinghe third year student of University of
 Moratuwa. I am interestig with this project.
 I have knowledge and hand on experiences on java programming, restful
 web services and maven project implementations.
 Please let me to be clarified about the objectives and the exact
 deliverables you are expecting from GSOC interns.
 Let me know how to get started with this project.

 Thanks and Regards.
 Geethika Abeysinghe.

>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



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


Re: [Dev] Session Affinity in Kubernetes

2016-03-04 Thread Nishadi Kirielle
Thanks a lot. I will write a blog post and share it.

Thanks



On Fri, Mar 4, 2016 at 6:07 PM, Sagara Gunathunga  wrote:

>
> Great, it would be better if Nishadi can write a step by step blog post
> about how to do this.  We had to do a 30 hours hackathon to change MSF4J
> Pet-store sample due to this issue :)
>
> Thanks !
>
> On Fri, Mar 4, 2016 at 5:54 PM, Imesh Gunaratne  wrote:
>
>> Indeed! Overall great effort!!
>>
>> Thanks
>>
>> On Fri, Mar 4, 2016 at 3:36 PM, Lakmal Warusawithana 
>> wrote:
>>
>>> Great work Nishadi!
>>>
>>> On Fri, Mar 4, 2016 at 3:34 PM, Nishadi Kirielle 
>>> wrote:
>>>
 Hi all,
 In attempting to configure session affinity in kubernetes load
 balancing, I tried to run nginx alpha ingress controller[1] to expose the
 services through ingress. But the generated nginx configuration file were
 missing the service ports to access the services. Thus I have manually
 updated the configuration file to check the functionality of ingress. Since
 session affinity is available in haproxy, I have created a haproxy docker
 container and manually updated its configuration file in order to check its
 functionality with ingress.
 As per a suggestion of Imesh and Lakmal, I have tried kubernetes
 service loadbalancer repo[2]. There, they have developed the load balancing
 directly with pods, bypassing the services. This procedure corrects the
 session affinity problem in load balancing in kubernetes.

 Thanks

 [1] .
 https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
 [2] .
 https://github.com/kubernetes/contrib/tree/master/service-loadbalancer

 On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne 
 wrote:

>
>
> On Mon, Feb 29, 2016 at 12:12 PM, Lakmal Warusawithana <
> lak...@wso2.com> wrote:
>
>>
>>
>> On Mon, Feb 29, 2016 at 11:56 AM, Imesh Gunaratne 
>> wrote:
>>
>>> Hi Lakmal,
>>>
>>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
>>> lak...@wso2.com> wrote:
>>>
 Hi,

 What is we are tying to do here? Are we trying to verify the
 ClientIP when exposing service via NodePort? IMO its working without 
 issue.

 Yes the first step was to verify ClientIP and then try to get an
>>> Ingress Controller either with nginx or haproxy working with session
>>> affinity.
>>>
>>>
>> If you want to verify ClientIP, Udara has written very simple code,
>> better to used that.
>>
>> Guys, we need to resolve this very fast... too much time taking basic
>> stuff, which we already verified :(
>>
>
> We are on it Lakmal! Will resolve this ASAP.
>
>>
>>
>>> Thanks
>>>
>>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
>>> lak...@wso2.com> wrote:
>>>
 Hi,

 What is we are tying to do here? Are we trying to verify the
 ClientIP when exposing service via NodePort? IMO its working without 
 issue.


 On Sun, Feb 28, 2016 at 11:58 PM, Nishadi Kirielle <
 nish...@wso2.com> wrote:

> Hi all,
>
> In order to test the session affinity in Kubernetes, I have
> deployed WordPress on a kubernetes cluster with several replicas and
> enabled the session affinity by setting  service.spec.sessionAffinity 
> to
> "ClientIP". When the kubernetes service is exposed through NodePort, 
> I have
> tested the accuracy of session affinity using Apache bench mark for 
> simple
> load testing. With a load of 1000 requests and a maximum of 2 requests
> running concurrently, all requests returned successfully without a 
> failure.
> Thus the session affinity is functioning properly when the services 
> are
> exposed via NodePort.
>
> The next attempt is to test the session affinity with ingress API
> exposing the services.
>
> Any feedback or suggestions are highly appreciated.
>
> Thanks
>
> --
> *Nishadi Kirielle*
> *Software Engineering Intern*
> Mobile : +94 (0) 714722148
> Blog : http://nishadikirielle.blogspot.com/
> nish...@wso2.comm
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Lakmal Warusawithana
 Director - Cloud Architecture; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.blogspot.com/


 ___

Re: [Dev] [DAS-3.0.1] Getting Table "METRIC_GAUGE" not found periodically

2016-03-04 Thread Udara Rathnayake
Hi Isuru,

Thanks for looking into this!
I'm also unable to reproduce this issue.

In DAS 3.0.1 we don't have identity db scripts[1] hence this identity
related issue during -Dsetup.

[1] [DAS][3.0.1] -Dsetup startup error

On Fri, Mar 4, 2016 at 5:59 AM, Isuru Perera  wrote:

> Hi Udara,
>
> I did following steps and I'm not seeing any issue with Metrics data.
>
>
>- Extract wso2das-3.0.1.zip
>- Delete all files in wso2das-3.0.1/repository/database/
>- Run ./wso2server.sh -Dsetup
>
> The Metrics UI is also working (Monitor > Metrics > JVM Metrics).
>
> However I saw an error related to identity component when -Dsetup is used.
>
> [2016-03-04 15:20:51,547] ERROR
> {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
> Error occurred while populating identity configuration properties
> org.wso2.carbon.identity.base.IdentityRuntimeException: Error occurred
> while executing SQL script for creating identity database
> at
> org.wso2.carbon.identity.base.IdentityRuntimeException.error(IdentityRuntimeException.java:162)
> at
> org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.executeSQLScript(IdentityDBInitializer.java:273)
> at
> org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.createIdentityDatabase(IdentityDBInitializer.java:141)
> at
> org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager.initializeDatabase(JDBCPersistenceManager.java:112)
> at
> org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:101)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514)
> at
> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
> at
> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:94)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> 

Re: [Dev] [ESB][Connector] Github connector - get List of commits on a repo.

2016-03-04 Thread Malaka Silva
Thx Kathees.

Also resolve [1] afterwards.

[1] https://wso2.org/jira/browse/ESBCONNECT-85

On Fri, Mar 4, 2016 at 2:20 PM, Kathees Rajendram  wrote:

> Merged. will release and add to the store.
>
> On Fri, Mar 4, 2016 at 11:27 AM, Lakmini Chathurika 
> wrote:
>
>> Hi,
>>
>> I added the two new  methods to do the followings  in GitHub Connector.
>>
>> 1.List Organization Repositories.[1].
>> 2.List Commits on a repository.[2].
>>
>> I create JIRA [3]&[4] and add the PR[5].
>> Could you please review and merge this.
>>
>> [1].https://developer.github.com/v3/repos/#list-organization-repositories
>> [2].
>> https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
>> [3].https://wso2.org/jira/browse/ESBCONNECT-85
>> [4].https://wso2.org/jira/browse/ESBCONNECT-84
>> [5].https://github.com/wso2-extensions/esb-connector-github/pull/3
>>
>> Thanks & Reagards.
>>
>> Lakmini.
>>
>> On Thu, Mar 3, 2016 at 4:53 PM, Malaka Silva  wrote:
>>
>>> Hi Lakmini,
>>>
>>> Great if you could contribute. Else put a jira and we will include this
>>> in next version of github
>>>
>>> On Thu, Mar 3, 2016 at 4:12 PM, Lakmini Chathurika 
>>> wrote:
>>>
 Hi,

 I need to get the list of repositories that are accessible to the
 authenticated user.
 Current connector [1] does not support for this but GitHub API [2] is
 supporting it . So need to implement the method  inside the connector.
 [1].
 https://storepreview.wso2.com/store/assets/esbconnector/cf9c44c0-b637-4587-afae-ea55fe64b632
 [2].https://developer.github.com/v3/repos/#list-your-repositories

 Thanks & Regards.
 Lakmini

 On Thu, Mar 3, 2016 at 12:39 PM, Kathees Rajendram 
 wrote:

> Hi Chanuka,
>
> Now we don't have the method[1][2] in github1.0.0 connector.
>
> We will include this in next version of github or you can contribute
> [3] with creating the method.
>
> [1] -
> https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
> [2] -
> https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
> [3] - https://github.com/wso2-extensions/esb-connector-github
>
> Thanks,
> Kathees
>
> On Thu, Mar 3, 2016 at 12:35 PM, Chanuka Dissanayake  > wrote:
>
>> Hi,
>>
>> Current connector [1] doesn't support on the $subject.  Github API
>> [2] is supporting it, and need to implement the method inside the 
>> connector.
>> As a workaround we can do traverse thorough the pull request (refer
>> [3]) per each repo and retrieve the list.
>>
>>
>> [1]
>> https://storepreview.wso2.com/store/assets/esbconnector/cf9c44c0-b637-4587-afae-ea55fe64b632
>> [2]
>> https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
>> [3]
>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Pull+Requests+in+Github#WorkingwithPullRequestsinGithub-listPullRequestCommits
>>
>> Thanks & Regards,
>> Chanuka.
>> --
>> Chanuka Dissanayake
>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>
>> Mobile: +94 71 33 63 596
>> Email: chan...@wso2.com
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>


>>>
>>>
>>> --
>>>
>>> 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.
>>>
>>
>>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 

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] Session Affinity in Kubernetes

2016-03-04 Thread Sagara Gunathunga
Great, it would be better if Nishadi can write a step by step blog post
about how to do this.  We had to do a 30 hours hackathon to change MSF4J
Pet-store sample due to this issue :)

Thanks !
On Fri, Mar 4, 2016 at 5:54 PM, Imesh Gunaratne  wrote:

> Indeed! Overall great effort!!
>
> Thanks
>
> On Fri, Mar 4, 2016 at 3:36 PM, Lakmal Warusawithana 
> wrote:
>
>> Great work Nishadi!
>>
>> On Fri, Mar 4, 2016 at 3:34 PM, Nishadi Kirielle 
>> wrote:
>>
>>> Hi all,
>>> In attempting to configure session affinity in kubernetes load
>>> balancing, I tried to run nginx alpha ingress controller[1] to expose the
>>> services through ingress. But the generated nginx configuration file were
>>> missing the service ports to access the services. Thus I have manually
>>> updated the configuration file to check the functionality of ingress. Since
>>> session affinity is available in haproxy, I have created a haproxy docker
>>> container and manually updated its configuration file in order to check its
>>> functionality with ingress.
>>> As per a suggestion of Imesh and Lakmal, I have tried kubernetes service
>>> loadbalancer repo[2]. There, they have developed the load balancing
>>> directly with pods, bypassing the services. This procedure corrects the
>>> session affinity problem in load balancing in kubernetes.
>>>
>>> Thanks
>>>
>>> [1] .
>>> https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
>>> [2] .
>>> https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
>>>
>>> On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne 
>>> wrote:
>>>


 On Mon, Feb 29, 2016 at 12:12 PM, Lakmal Warusawithana  wrote:

>
>
> On Mon, Feb 29, 2016 at 11:56 AM, Imesh Gunaratne 
> wrote:
>
>> Hi Lakmal,
>>
>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
>> lak...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> What is we are tying to do here? Are we trying to verify the
>>> ClientIP when exposing service via NodePort? IMO its working without 
>>> issue.
>>>
>>> Yes the first step was to verify ClientIP and then try to get an
>> Ingress Controller either with nginx or haproxy working with session
>> affinity.
>>
>>
> If you want to verify ClientIP, Udara has written very simple code,
> better to used that.
>
> Guys, we need to resolve this very fast... too much time taking basic
> stuff, which we already verified :(
>

 We are on it Lakmal! Will resolve this ASAP.

>
>
>> Thanks
>>
>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
>> lak...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> What is we are tying to do here? Are we trying to verify the
>>> ClientIP when exposing service via NodePort? IMO its working without 
>>> issue.
>>>
>>>
>>> On Sun, Feb 28, 2016 at 11:58 PM, Nishadi Kirielle >> > wrote:
>>>
 Hi all,

 In order to test the session affinity in Kubernetes, I have
 deployed WordPress on a kubernetes cluster with several replicas and
 enabled the session affinity by setting  service.spec.sessionAffinity 
 to
 "ClientIP". When the kubernetes service is exposed through NodePort, I 
 have
 tested the accuracy of session affinity using Apache bench mark for 
 simple
 load testing. With a load of 1000 requests and a maximum of 2 requests
 running concurrently, all requests returned successfully without a 
 failure.
 Thus the session affinity is functioning properly when the services are
 exposed via NodePort.

 The next attempt is to test the session affinity with ingress API
 exposing the services.

 Any feedback or suggestions are highly appreciated.

 Thanks

 --
 *Nishadi Kirielle*
 *Software Engineering Intern*
 Mobile : +94 (0) 714722148
 Blog : http://nishadikirielle.blogspot.com/
 nish...@wso2.comm

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


>>>
>>>
>>> --
>>> Lakmal Warusawithana
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> 

Re: [Dev] Session Affinity in Kubernetes

2016-03-04 Thread Imesh Gunaratne
Indeed! Overall great effort!!

Thanks

On Fri, Mar 4, 2016 at 3:36 PM, Lakmal Warusawithana 
wrote:

> Great work Nishadi!
>
> On Fri, Mar 4, 2016 at 3:34 PM, Nishadi Kirielle  wrote:
>
>> Hi all,
>> In attempting to configure session affinity in kubernetes load balancing,
>> I tried to run nginx alpha ingress controller[1] to expose the services
>> through ingress. But the generated nginx configuration file were missing
>> the service ports to access the services. Thus I have manually updated the
>> configuration file to check the functionality of ingress. Since session
>> affinity is available in haproxy, I have created a haproxy docker container
>> and manually updated its configuration file in order to check its
>> functionality with ingress.
>> As per a suggestion of Imesh and Lakmal, I have tried kubernetes service
>> loadbalancer repo[2]. There, they have developed the load balancing
>> directly with pods, bypassing the services. This procedure corrects the
>> session affinity problem in load balancing in kubernetes.
>>
>> Thanks
>>
>> [1] .
>> https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
>> [2] .
>> https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
>>
>> On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne  wrote:
>>
>>>
>>>
>>> On Mon, Feb 29, 2016 at 12:12 PM, Lakmal Warusawithana 
>>> wrote:
>>>


 On Mon, Feb 29, 2016 at 11:56 AM, Imesh Gunaratne 
 wrote:

> Hi Lakmal,
>
> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
> lak...@wso2.com> wrote:
>
>> Hi,
>>
>> What is we are tying to do here? Are we trying to verify the ClientIP
>> when exposing service via NodePort? IMO its working without issue.
>>
>> Yes the first step was to verify ClientIP and then try to get an
> Ingress Controller either with nginx or haproxy working with session
> affinity.
>
>
 If you want to verify ClientIP, Udara has written very simple code,
 better to used that.

 Guys, we need to resolve this very fast... too much time taking basic
 stuff, which we already verified :(

>>>
>>> We are on it Lakmal! Will resolve this ASAP.
>>>


> Thanks
>
> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
> lak...@wso2.com> wrote:
>
>> Hi,
>>
>> What is we are tying to do here? Are we trying to verify the ClientIP
>> when exposing service via NodePort? IMO its working without issue.
>>
>>
>> On Sun, Feb 28, 2016 at 11:58 PM, Nishadi Kirielle 
>> wrote:
>>
>>> Hi all,
>>>
>>> In order to test the session affinity in Kubernetes, I have deployed
>>> WordPress on a kubernetes cluster with several replicas and enabled the
>>> session affinity by setting  service.spec.sessionAffinity to "ClientIP".
>>> When the kubernetes service is exposed through NodePort, I have tested 
>>> the
>>> accuracy of session affinity using Apache bench mark for simple load
>>> testing. With a load of 1000 requests and a maximum of 2 requests 
>>> running
>>> concurrently, all requests returned successfully without a failure. Thus
>>> the session affinity is functioning properly when the services are 
>>> exposed
>>> via NodePort.
>>>
>>> The next attempt is to test the session affinity with ingress API
>>> exposing the services.
>>>
>>> Any feedback or suggestions are highly appreciated.
>>>
>>> Thanks
>>>
>>> --
>>> *Nishadi Kirielle*
>>> *Software Engineering Intern*
>>> Mobile : +94 (0) 714722148
>>> Blog : http://nishadikirielle.blogspot.com/
>>> nish...@wso2.comm
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *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
>
>


 --
 Lakmal Warusawithana
 Director - Cloud Architecture; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.blogspot.com/


>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> *Nishadi Kirielle*

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

2016-03-04 Thread Vivekananthan Sivanayagam
Hi,

Please ignore above error[2].

This is the correct error.

[2016-03-04 17:05:53,405] ERROR - FileFtpOverProxy Could not connect to FTP
ftpServer: Could not connect to 127.0.0.1 using port 21
java.io.IOException: Could not connect to 127.0.0.1 using port 21
at org.apache.commons.net.ftp.FTPHTTPClient.connect(FTPHTTPClient.java:138)
at
org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:135)
at
org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
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)
Caused by: java.io.IOException: HTTPTunnelConnector: connection failed
Response received from the proxy:
HTTP/1.1 403 Forbidden
Server: squid/3.3.8
Mime-Version: 1.0
Date: Fri, 04 Mar 2016 11:35:53 GMT
Content-Type: text/html
Content-Length: 3113
X-Squid-Error: ERR_ACCESS_DENIED 0
Vary: Accept-Language
Content-Language: en
X-Cache: MISS from vives-ThinkPad-T540p
X-Cache-Lookup: NONE from vives-ThinkPad-T540p:3128
Via: 1.1 vives-ThinkPad-T540p (squid/3.3.8)
Connection: keep-alive

at
org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:194)
at org.apache.commons.net.ftp.FTPHTTPClient.connect(FTPHTTPClient.java:135)





*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

*E:vivekanant...@wso2.com *
*M:+94752786138*

On Fri, Mar 4, 2016 at 5:03 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Anuruddha,
>
> When I tested with skipping Squid proxy, I got the error[1].I was getting
> the error [2], when I included Squid proxy.
>
> [1]
>
> [2016-03-04 16:46:41,101] ERROR - FileFtpOverProxy Error occurred while
> uploading:Connection timed out
> java.net.ConnectException: Connection timed out
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at
> org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
> at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
> at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
> at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
> at
> org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
> at
> org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
> 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
> 

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

2016-03-04 Thread Vivekananthan Sivanayagam
Hi Anuruddha,

When I tested with skipping Squid proxy, I got the error[1].I was getting
the error [2], when I included Squid proxy.

[1]

[2016-03-04 16:46:41,101] ERROR - FileFtpOverProxy Error occurred while
uploading:Connection timed out
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
at
org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
at
org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
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)

[2]

[2016-03-04 16:55:28,600] ERROR - FileFtpOverProxy Could not connect to FTP
ftpServer: Could not connect to 127.0.0.1 using port 21
java.io.IOException: Could not connect to 127.0.1.1 using port 21
at org.apache.commons.net.ftp.FTPHTTPClient.connect(FTPHTTPClient.java:138)
at
org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:135)
at
org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
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)
Caused by: java.io.IOException: HTTPTunnelConnector: connection 

Re: [Dev] US Election 2016 Tweet Analyze System

2016-03-04 Thread Dinali Dabarera
Hi Tharik,

Thats true. Yasara is fixing that.
Thank you for showing us defects, this is our main goal of test run.

On Fri, Mar 4, 2016 at 4:45 PM, Tharik Kanaka  wrote:

> Hi Dinali,
>
> I am talking about line chart where Trump is shown in blue colour. If you
> are not going to use blue or red, still it has to be fixed before go live,
> isn't it?
>
> Regards,
>
> On Fri, Mar 4, 2016 at 4:35 PM, Dinali Dabarera  wrote:
>
>> Hi,
>> @ Nirmal,
>> It was a script scheduling problem. I fixed it.
>>
>> @Tharik
>> US Parties have only two colors red or blue. So Its hard to figure out to
>> whom this tweep tweets for most. As we want to show a clear picture on how
>> tweeps relates each other with the candidates who are in for the
>> election(who still remains in the battle) and also we are advised not to
>> take dark blue or red in our UI in our previous meeting as we are not bias
>> for any of the parties.
>>
>>
>> Thanks.
>>
>> On Fri, Mar 4, 2016 at 3:43 PM, Tharik Kanaka  wrote:
>>
>>> Hi All,
>>>
>>> It would be great if we consider about political party colors of the
>>> candidates. As an example in the line chart Trump is shown in blue color
>>> but it has to be red color as he is a Republican. Candidates from same
>>> party can be shown in different shade of same color.
>>>
>>> Regards,
>>>
>>>
>>> On Fri, Mar 4, 2016 at 3:26 PM, Nirmal Fernando  wrote:
>>>
 Hilary Clinton isn't listed as a top tweep, but the community graph
 suggests otherwise.

 On Fri, Mar 4, 2016 at 3:19 PM, Srinath Perera 
 wrote:

> Feedback I gave is not included!
>
> Too much room between most popular links.
> When we show tweets, make the text and tweet account names same size (
> like twitter does)
>
> Look good otherwise.
>
> --Srinath
>
> On Fri, Mar 4, 2016 at 3:00 PM, Dinali Dabarera 
> wrote:
>
>> Hi everyone,
>>
>>
>> This is the latest update on US Election 2016 Analytic Dashboard.
>> This is  running @
>> https://52.77.25.83:9453/twitter-analyticsV3/index.html until this
>> hosts.
>>
>> Thank you!
>>
>>
>>
>> On Fri, Mar 4, 2016 at 11:29 AM, Yasara Dissanayake 
>> wrote:
>>
>>> hi ,
>>> adding Chehara
>>>
>>> On Mon, Feb 29, 2016 at 8:51 AM, Srinath Perera 
>>> wrote:
>>>
 We can. It will be our twitter toolbox.

 --Srinath

 On Mon, Feb 29, 2016 at 8:43 AM, Sachith Withana 
 wrote:

> Hi Srinath and all,
>
> I'm just wondering, can't we make this a generic tool/product to
> analyze and visualize twitter data.
>
> Ex: User provides us with some keywords and our tool does the
> analyzing/visualizing. The user can add more functionality if 
> required (
> customization)
>
> Thanks,
> Sachith
>
> On Mon, Jan 25, 2016 at 5:04 PM, Thusitha Kalugamage <
> thusi...@wso2.com> wrote:
>
>> Update,
>>
>>1. Added assigned colors for candidate backgrounds as
>>suggested.
>>2. With Yasara's input on News tab, moved next to the
>>Sentiment Analysis Graph.
>>
>>  Please visit http://thusithak.github.io/twitter-analytics/ to
>> view changes.
>>
>> On Mon, Jan 25, 2016 at 4:00 PM, Thusitha Kalugamage <
>> thusi...@wso2.com> wrote:
>>
>>> Hi Yudhanjaya,
>>>
>>> 1) Yes we could, but since the Image is appended dynamically I
>>> used the same property to create its background,
>>> If we are to use a color, we would have to parse a color
>>> property as well. @Dinali shall we do that?
>>>
>>> 2) Yes, Already added three tabs to ticker and moved "News" as
>>> one of three tabs in the second row [1]
>>> 
>>>
>>> [1] http://thusithak.github.io/twitter-analytics/
>>>
>>> Regards,
>>>
>>> On Mon, Jan 25, 2016 at 12:23 PM, Yudhanjaya Wijeratne <
>>> yudhanj...@wso2.com> wrote:
>>>
 Thanks Thusitha for the design. That looks clean!
 Small critique:
 1) instead of having the candidate's image stretched out for
 the background in his profile square, can we use the color we use 
 to
 represent him in the community graph?
 2) Is it possible to have an 'article ticker' before the
 sentiment analysis box? We can feed the headlines in there.

 Best,
 Yudha

 On Sun, Jan 24, 2016 at 7:30 PM, Thusitha 

Re: [Dev] US Election 2016 Tweet Analyze System

2016-03-04 Thread Tharik Kanaka
Hi Dinali,

I am talking about line chart where Trump is shown in blue colour. If you
are not going to use blue or red, still it has to be fixed before go live,
isn't it?

Regards,

On Fri, Mar 4, 2016 at 4:35 PM, Dinali Dabarera  wrote:

> Hi,
> @ Nirmal,
> It was a script scheduling problem. I fixed it.
>
> @Tharik
> US Parties have only two colors red or blue. So Its hard to figure out to
> whom this tweep tweets for most. As we want to show a clear picture on how
> tweeps relates each other with the candidates who are in for the
> election(who still remains in the battle) and also we are advised not to
> take dark blue or red in our UI in our previous meeting as we are not bias
> for any of the parties.
>
>
> Thanks.
>
> On Fri, Mar 4, 2016 at 3:43 PM, Tharik Kanaka  wrote:
>
>> Hi All,
>>
>> It would be great if we consider about political party colors of the
>> candidates. As an example in the line chart Trump is shown in blue color
>> but it has to be red color as he is a Republican. Candidates from same
>> party can be shown in different shade of same color.
>>
>> Regards,
>>
>>
>> On Fri, Mar 4, 2016 at 3:26 PM, Nirmal Fernando  wrote:
>>
>>> Hilary Clinton isn't listed as a top tweep, but the community graph
>>> suggests otherwise.
>>>
>>> On Fri, Mar 4, 2016 at 3:19 PM, Srinath Perera  wrote:
>>>
 Feedback I gave is not included!

 Too much room between most popular links.
 When we show tweets, make the text and tweet account names same size (
 like twitter does)

 Look good otherwise.

 --Srinath

 On Fri, Mar 4, 2016 at 3:00 PM, Dinali Dabarera 
 wrote:

> Hi everyone,
>
>
> This is the latest update on US Election 2016 Analytic Dashboard.
> This is  running @
> https://52.77.25.83:9453/twitter-analyticsV3/index.html until this
> hosts.
>
> Thank you!
>
>
>
> On Fri, Mar 4, 2016 at 11:29 AM, Yasara Dissanayake 
> wrote:
>
>> hi ,
>> adding Chehara
>>
>> On Mon, Feb 29, 2016 at 8:51 AM, Srinath Perera 
>> wrote:
>>
>>> We can. It will be our twitter toolbox.
>>>
>>> --Srinath
>>>
>>> On Mon, Feb 29, 2016 at 8:43 AM, Sachith Withana 
>>> wrote:
>>>
 Hi Srinath and all,

 I'm just wondering, can't we make this a generic tool/product to
 analyze and visualize twitter data.

 Ex: User provides us with some keywords and our tool does the
 analyzing/visualizing. The user can add more functionality if required 
 (
 customization)

 Thanks,
 Sachith

 On Mon, Jan 25, 2016 at 5:04 PM, Thusitha Kalugamage <
 thusi...@wso2.com> wrote:

> Update,
>
>1. Added assigned colors for candidate backgrounds as
>suggested.
>2. With Yasara's input on News tab, moved next to the
>Sentiment Analysis Graph.
>
>  Please visit http://thusithak.github.io/twitter-analytics/ to
> view changes.
>
> On Mon, Jan 25, 2016 at 4:00 PM, Thusitha Kalugamage <
> thusi...@wso2.com> wrote:
>
>> Hi Yudhanjaya,
>>
>> 1) Yes we could, but since the Image is appended dynamically I
>> used the same property to create its background,
>> If we are to use a color, we would have to parse a color property
>> as well. @Dinali shall we do that?
>>
>> 2) Yes, Already added three tabs to ticker and moved "News" as
>> one of three tabs in the second row [1]
>> 
>>
>> [1] http://thusithak.github.io/twitter-analytics/
>>
>> Regards,
>>
>> On Mon, Jan 25, 2016 at 12:23 PM, Yudhanjaya Wijeratne <
>> yudhanj...@wso2.com> wrote:
>>
>>> Thanks Thusitha for the design. That looks clean!
>>> Small critique:
>>> 1) instead of having the candidate's image stretched out for the
>>> background in his profile square, can we use the color we use to 
>>> represent
>>> him in the community graph?
>>> 2) Is it possible to have an 'article ticker' before the
>>> sentiment analysis box? We can feed the headlines in there.
>>>
>>> Best,
>>> Yudha
>>>
>>> On Sun, Jan 24, 2016 at 7:30 PM, Thusitha Kalugamage <
>>> thusi...@wso2.com> wrote:
>>>
 Hi All,

 As per discussions we had previously, I came up with a quick
 design and worked on a markup. :)
 you can have a look at the static page here [1]
 .

[Dev] [Jmeter] Assign response parameter to a Jmeter variable

2016-03-04 Thread Kasun Thennakoon
Hi All,

I'm using Jmeter 2.6 for performance testing on Greg.
I want to do the $subject in JMeter, to update an asset by assetId as part
of CRUD operations. I couldn’t find an element to assign response parameter
to a jmeter internal variable.
Could some one suggest a method to $subject ?

Thanks,
-- 
*Kasun Thennakoon*
Software Engineer
WSO2, Inc.
Mobile:+94 711661919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS-3.0.1] Getting Table "METRIC_GAUGE" not found periodically

2016-03-04 Thread Isuru Perera
Hi Udara,

I did following steps and I'm not seeing any issue with Metrics data.


   - Extract wso2das-3.0.1.zip
   - Delete all files in wso2das-3.0.1/repository/database/
   - Run ./wso2server.sh -Dsetup

The Metrics UI is also working (Monitor > Metrics > JVM Metrics).

However I saw an error related to identity component when -Dsetup is used.

[2016-03-04 15:20:51,547] ERROR
{org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
Error occurred while populating identity configuration properties
org.wso2.carbon.identity.base.IdentityRuntimeException: Error occurred
while executing SQL script for creating identity database
at
org.wso2.carbon.identity.base.IdentityRuntimeException.error(IdentityRuntimeException.java:162)
at
org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.executeSQLScript(IdentityDBInitializer.java:273)
at
org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.createIdentityDatabase(IdentityDBInitializer.java:141)
at
org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager.initializeDatabase(JDBCPersistenceManager.java:112)
at
org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514)
at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at

Re: [Dev] [Gsoc 2016] [CDMF] Calculate Device Health Status using Analytics and API Calls

2016-03-04 Thread Sumedha Rubasinghe
Hi Geethika,
No Sirs here.. Just Ayyoob would do. :)

Hope you find the project interesting.

On Fri, Mar 4, 2016 at 2:40 PM, Geethika Kumari 
wrote:

> Hello sir,
> Thank you for help. There are several branches in these repositories. What
> branch I need to use.
>
> Thanks and Regards.
> Nuwan Sameera.
>
> On Thu, Mar 3, 2016 at 12:20 AM, Ayyoob Hamza  wrote:
>
>> Hi Geethika,
>> Thank you for your interest in this project. CDMF is a framework that is
>> used for device management and one of the requirement is for the user to
>> monitor the device status. There are two ways to check the status of a
>> device
>> 1) Send a device health check ping to the device and then depict the
>> status.
>> 2) Get the device to server communication data and then co relate with
>> past communication to find the status of the device.
>>
>> In here we are focusing with a generalised solution that incorporates the
>> idea from the second approach. In the first approach we are limiting the
>> capability by asking the device manufacture to incorporate the capability.
>>
>> You can find the source code for CDMF in
>> https://github.com/wso2/carbon-device-mgt
>>
>> You can find the source code for device type implementation such as
>> android, windows and few IoT device samples in :
>> https://github.com/wso2/carbon-device-mgt-plugins
>>
>> We have two products that are built on CDMF
>> 1) EMM -
>> https://docs.wso2.com/display/EMM200/WSO2+Enterprise+Mobility+Manager
>> https://github.com/wso2/product-mdm - You can find the official release
>> EMM 2.0.0 in the product listing page
>>
>> 2) IoT Server - https://docs.wso2.com/display/IoTS100/About+IoT+Server
>> https://github.com/wso2-incubator/product-iot-server - This is still
>> under development.
>>
>> Please go through the documentation and try to build EMM to understand
>> the behaviour of the product.
>>
>> Thanks
>>
>>
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>> On Wed, Mar 2, 2016 at 11:38 PM, Geethika Kumari 
>> wrote:
>>
>>> Dear sir,
>>>
>>> I am Geethika Kumari Abeysinghe third year student of University of
>>> Moratuwa. I am interestig with this project.
>>> I have knowledge and hand on experiences on java programming, restful
>>> web services and maven project implementations.
>>> Please let me to be clarified about the objectives and the exact
>>> deliverables you are expecting from GSOC interns.
>>> Let me know how to get started with this project.
>>>
>>> Thanks and Regards.
>>> Geethika Abeysinghe.
>>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2016-03-04 Thread Tharik Kanaka
Hi All,

It would be great if we consider about political party colors of the
candidates. As an example in the line chart Trump is shown in blue color
but it has to be red color as he is a Republican. Candidates from same
party can be shown in different shade of same color.

Regards,


On Fri, Mar 4, 2016 at 3:26 PM, Nirmal Fernando  wrote:

> Hilary Clinton isn't listed as a top tweep, but the community graph
> suggests otherwise.
>
> On Fri, Mar 4, 2016 at 3:19 PM, Srinath Perera  wrote:
>
>> Feedback I gave is not included!
>>
>> Too much room between most popular links.
>> When we show tweets, make the text and tweet account names same size (
>> like twitter does)
>>
>> Look good otherwise.
>>
>> --Srinath
>>
>> On Fri, Mar 4, 2016 at 3:00 PM, Dinali Dabarera  wrote:
>>
>>> Hi everyone,
>>>
>>>
>>> This is the latest update on US Election 2016 Analytic Dashboard.
>>> This is  running @
>>> https://52.77.25.83:9453/twitter-analyticsV3/index.html until this
>>> hosts.
>>>
>>> Thank you!
>>>
>>>
>>>
>>> On Fri, Mar 4, 2016 at 11:29 AM, Yasara Dissanayake 
>>> wrote:
>>>
 hi ,
 adding Chehara

 On Mon, Feb 29, 2016 at 8:51 AM, Srinath Perera 
 wrote:

> We can. It will be our twitter toolbox.
>
> --Srinath
>
> On Mon, Feb 29, 2016 at 8:43 AM, Sachith Withana 
> wrote:
>
>> Hi Srinath and all,
>>
>> I'm just wondering, can't we make this a generic tool/product to
>> analyze and visualize twitter data.
>>
>> Ex: User provides us with some keywords and our tool does the
>> analyzing/visualizing. The user can add more functionality if required (
>> customization)
>>
>> Thanks,
>> Sachith
>>
>> On Mon, Jan 25, 2016 at 5:04 PM, Thusitha Kalugamage <
>> thusi...@wso2.com> wrote:
>>
>>> Update,
>>>
>>>1. Added assigned colors for candidate backgrounds as suggested.
>>>2. With Yasara's input on News tab, moved next to the Sentiment
>>>Analysis Graph.
>>>
>>>  Please visit http://thusithak.github.io/twitter-analytics/ to view
>>> changes.
>>>
>>> On Mon, Jan 25, 2016 at 4:00 PM, Thusitha Kalugamage <
>>> thusi...@wso2.com> wrote:
>>>
 Hi Yudhanjaya,

 1) Yes we could, but since the Image is appended dynamically I used
 the same property to create its background,
 If we are to use a color, we would have to parse a color property
 as well. @Dinali shall we do that?

 2) Yes, Already added three tabs to ticker and moved "News" as one
 of three tabs in the second row [1]
 

 [1] http://thusithak.github.io/twitter-analytics/

 Regards,

 On Mon, Jan 25, 2016 at 12:23 PM, Yudhanjaya Wijeratne <
 yudhanj...@wso2.com> wrote:

> Thanks Thusitha for the design. That looks clean!
> Small critique:
> 1) instead of having the candidate's image stretched out for the
> background in his profile square, can we use the color we use to 
> represent
> him in the community graph?
> 2) Is it possible to have an 'article ticker' before the sentiment
> analysis box? We can feed the headlines in there.
>
> Best,
> Yudha
>
> On Sun, Jan 24, 2016 at 7:30 PM, Thusitha Kalugamage <
> thusi...@wso2.com> wrote:
>
>> Hi All,
>>
>> As per discussions we had previously, I came up with a quick
>> design and worked on a markup. :)
>> you can have a look at the static page here [1]
>> .
>>
>> *DInali / Yasara*: Please clone this repo [2]
>> and start
>> working on this. I will help you get the integration done.
>>
>> *Yudhanjaya* / *Srinath*,  Let me know if we can improve on this.
>>
>> Please note that some of these images are copyrighted and must be
>> revised before publishing.
>>
>>
>> [1] http://thusithak.github.io/twitter-analytics/
>> [2] https://github.com/thusithak/twitter-analytics
>>
>>
>> Regards,
>>
>> On Thu, Dec 3, 2015 at 11:05 AM, Dakshika Jayathilaka <
>> daksh...@wso2.com> wrote:
>>
>>> Sure, I'll join for brainstorming.
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Thu, Dec 3, 2015 at 11:02 AM, Srinath Perera <

Re: [Dev] Session Affinity in Kubernetes

2016-03-04 Thread Lakmal Warusawithana
Great work Nishadi!

On Fri, Mar 4, 2016 at 3:34 PM, Nishadi Kirielle  wrote:

> Hi all,
> In attempting to configure session affinity in kubernetes load balancing,
> I tried to run nginx alpha ingress controller[1] to expose the services
> through ingress. But the generated nginx configuration file were missing
> the service ports to access the services. Thus I have manually updated the
> configuration file to check the functionality of ingress. Since session
> affinity is available in haproxy, I have created a haproxy docker container
> and manually updated its configuration file in order to check its
> functionality with ingress.
> As per a suggestion of Imesh and Lakmal, I have tried kubernetes service
> loadbalancer repo[2]. There, they have developed the load balancing
> directly with pods, bypassing the services. This procedure corrects the
> session affinity problem in load balancing in kubernetes.
>
> Thanks
>
> [1] .
> https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
> [2] .
> https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
>
> On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne  wrote:
>
>>
>>
>> On Mon, Feb 29, 2016 at 12:12 PM, Lakmal Warusawithana 
>> wrote:
>>
>>>
>>>
>>> On Mon, Feb 29, 2016 at 11:56 AM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Lakmal,

 On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana  wrote:

> Hi,
>
> What is we are tying to do here? Are we trying to verify the ClientIP
> when exposing service via NodePort? IMO its working without issue.
>
> Yes the first step was to verify ClientIP and then try to get an
 Ingress Controller either with nginx or haproxy working with session
 affinity.


>>> If you want to verify ClientIP, Udara has written very simple code,
>>> better to used that.
>>>
>>> Guys, we need to resolve this very fast... too much time taking basic
>>> stuff, which we already verified :(
>>>
>>
>> We are on it Lakmal! Will resolve this ASAP.
>>
>>>
>>>
 Thanks

 On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana  wrote:

> Hi,
>
> What is we are tying to do here? Are we trying to verify the ClientIP
> when exposing service via NodePort? IMO its working without issue.
>
>
> On Sun, Feb 28, 2016 at 11:58 PM, Nishadi Kirielle 
> wrote:
>
>> Hi all,
>>
>> In order to test the session affinity in Kubernetes, I have deployed
>> WordPress on a kubernetes cluster with several replicas and enabled the
>> session affinity by setting  service.spec.sessionAffinity to "ClientIP".
>> When the kubernetes service is exposed through NodePort, I have tested 
>> the
>> accuracy of session affinity using Apache bench mark for simple load
>> testing. With a load of 1000 requests and a maximum of 2 requests running
>> concurrently, all requests returned successfully without a failure. Thus
>> the session affinity is functioning properly when the services are 
>> exposed
>> via NodePort.
>>
>> The next attempt is to test the session affinity with ingress API
>> exposing the services.
>>
>> Any feedback or suggestions are highly appreciated.
>>
>> Thanks
>>
>> --
>> *Nishadi Kirielle*
>> *Software Engineering Intern*
>> Mobile : +94 (0) 714722148
>> Blog : http://nishadikirielle.blogspot.com/
>> nish...@wso2.comm
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakmal Warusawithana
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *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


>>>
>>>
>>> --
>>> Lakmal Warusawithana
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
> *Nishadi Kirielle*
> *Software Engineering Intern*
> Mobile : +94 (0) 714722148
> Blog : http://nishadikirielle.blogspot.com/
> nish...@wso2.com
>



-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/

Re: [Dev] Session Affinity in Kubernetes

2016-03-04 Thread Nishadi Kirielle
Hi all,
In attempting to configure session affinity in kubernetes load balancing, I
tried to run nginx alpha ingress controller[1] to expose the services
through ingress. But the generated nginx configuration file were missing
the service ports to access the services. Thus I have manually updated the
configuration file to check the functionality of ingress. Since session
affinity is available in haproxy, I have created a haproxy docker container
and manually updated its configuration file in order to check its
functionality with ingress.
As per a suggestion of Imesh and Lakmal, I have tried kubernetes service
loadbalancer repo[2]. There, they have developed the load balancing
directly with pods, bypassing the services. This procedure corrects the
session affinity problem in load balancing in kubernetes.

Thanks

[1] .
https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
[2] . https://github.com/kubernetes/contrib/tree/master/service-loadbalancer

On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne  wrote:

>
>
> On Mon, Feb 29, 2016 at 12:12 PM, Lakmal Warusawithana 
> wrote:
>
>>
>>
>> On Mon, Feb 29, 2016 at 11:56 AM, Imesh Gunaratne  wrote:
>>
>>> Hi Lakmal,
>>>
>>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana 
>>>  wrote:
>>>
 Hi,

 What is we are tying to do here? Are we trying to verify the ClientIP
 when exposing service via NodePort? IMO its working without issue.

 Yes the first step was to verify ClientIP and then try to get an
>>> Ingress Controller either with nginx or haproxy working with session
>>> affinity.
>>>
>>>
>> If you want to verify ClientIP, Udara has written very simple code,
>> better to used that.
>>
>> Guys, we need to resolve this very fast... too much time taking basic
>> stuff, which we already verified :(
>>
>
> We are on it Lakmal! Will resolve this ASAP.
>
>>
>>
>>> Thanks
>>>
>>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana 
>>> wrote:
>>>
 Hi,

 What is we are tying to do here? Are we trying to verify the ClientIP
 when exposing service via NodePort? IMO its working without issue.


 On Sun, Feb 28, 2016 at 11:58 PM, Nishadi Kirielle 
 wrote:

> Hi all,
>
> In order to test the session affinity in Kubernetes, I have deployed
> WordPress on a kubernetes cluster with several replicas and enabled the
> session affinity by setting  service.spec.sessionAffinity to "ClientIP".
> When the kubernetes service is exposed through NodePort, I have tested the
> accuracy of session affinity using Apache bench mark for simple load
> testing. With a load of 1000 requests and a maximum of 2 requests running
> concurrently, all requests returned successfully without a failure. Thus
> the session affinity is functioning properly when the services are exposed
> via NodePort.
>
> The next attempt is to test the session affinity with ingress API
> exposing the services.
>
> Any feedback or suggestions are highly appreciated.
>
> Thanks
>
> --
> *Nishadi Kirielle*
> *Software Engineering Intern*
> Mobile : +94 (0) 714722148
> Blog : http://nishadikirielle.blogspot.com/
> nish...@wso2.comm
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Lakmal Warusawithana
 Director - Cloud Architecture; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.blogspot.com/


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


>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>
>
> --
> *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
>
>


-- 
*Nishadi Kirielle*
*Software Engineering Intern*
Mobile : +94 (0) 714722148
Blog : http://nishadikirielle.blogspot.com/
nish...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2016-03-04 Thread Nirmal Fernando
Hilary Clinton isn't listed as a top tweep, but the community graph
suggests otherwise.

On Fri, Mar 4, 2016 at 3:19 PM, Srinath Perera  wrote:

> Feedback I gave is not included!
>
> Too much room between most popular links.
> When we show tweets, make the text and tweet account names same size (
> like twitter does)
>
> Look good otherwise.
>
> --Srinath
>
> On Fri, Mar 4, 2016 at 3:00 PM, Dinali Dabarera  wrote:
>
>> Hi everyone,
>>
>>
>> This is the latest update on US Election 2016 Analytic Dashboard.
>> This is  running @
>> https://52.77.25.83:9453/twitter-analyticsV3/index.html until this hosts.
>>
>> Thank you!
>>
>>
>>
>> On Fri, Mar 4, 2016 at 11:29 AM, Yasara Dissanayake 
>> wrote:
>>
>>> hi ,
>>> adding Chehara
>>>
>>> On Mon, Feb 29, 2016 at 8:51 AM, Srinath Perera 
>>> wrote:
>>>
 We can. It will be our twitter toolbox.

 --Srinath

 On Mon, Feb 29, 2016 at 8:43 AM, Sachith Withana 
 wrote:

> Hi Srinath and all,
>
> I'm just wondering, can't we make this a generic tool/product to
> analyze and visualize twitter data.
>
> Ex: User provides us with some keywords and our tool does the
> analyzing/visualizing. The user can add more functionality if required (
> customization)
>
> Thanks,
> Sachith
>
> On Mon, Jan 25, 2016 at 5:04 PM, Thusitha Kalugamage <
> thusi...@wso2.com> wrote:
>
>> Update,
>>
>>1. Added assigned colors for candidate backgrounds as suggested.
>>2. With Yasara's input on News tab, moved next to the Sentiment
>>Analysis Graph.
>>
>>  Please visit http://thusithak.github.io/twitter-analytics/ to view
>> changes.
>>
>> On Mon, Jan 25, 2016 at 4:00 PM, Thusitha Kalugamage <
>> thusi...@wso2.com> wrote:
>>
>>> Hi Yudhanjaya,
>>>
>>> 1) Yes we could, but since the Image is appended dynamically I used
>>> the same property to create its background,
>>> If we are to use a color, we would have to parse a color property as
>>> well. @Dinali shall we do that?
>>>
>>> 2) Yes, Already added three tabs to ticker and moved "News" as one
>>> of three tabs in the second row [1]
>>> 
>>>
>>> [1] http://thusithak.github.io/twitter-analytics/
>>>
>>> Regards,
>>>
>>> On Mon, Jan 25, 2016 at 12:23 PM, Yudhanjaya Wijeratne <
>>> yudhanj...@wso2.com> wrote:
>>>
 Thanks Thusitha for the design. That looks clean!
 Small critique:
 1) instead of having the candidate's image stretched out for the
 background in his profile square, can we use the color we use to 
 represent
 him in the community graph?
 2) Is it possible to have an 'article ticker' before the sentiment
 analysis box? We can feed the headlines in there.

 Best,
 Yudha

 On Sun, Jan 24, 2016 at 7:30 PM, Thusitha Kalugamage <
 thusi...@wso2.com> wrote:

> Hi All,
>
> As per discussions we had previously, I came up with a quick
> design and worked on a markup. :)
> you can have a look at the static page here [1]
> .
>
> *DInali / Yasara*: Please clone this repo [2]
> and start working
> on this. I will help you get the integration done.
>
> *Yudhanjaya* / *Srinath*,  Let me know if we can improve on this.
>
> Please note that some of these images are copyrighted and must be
> revised before publishing.
>
>
> [1] http://thusithak.github.io/twitter-analytics/
> [2] https://github.com/thusithak/twitter-analytics
>
>
> Regards,
>
> On Thu, Dec 3, 2015 at 11:05 AM, Dakshika Jayathilaka <
> daksh...@wso2.com> wrote:
>
>> Sure, I'll join for brainstorming.
>>
>> Regards,
>>
>> *Dakshika Jayathilaka*
>> PMC Member & Committer of Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Thu, Dec 3, 2015 at 11:02 AM, Srinath Perera > > wrote:
>>
>>> Hi Dakshika,
>>>
>>> Yudhanjaya will create some mock view and meet you to brainstorm
>>> and get feedback. Yudhanjaya, grab me or get me via a phone to the 
>>> same
>>> discussion.
>>>
>>> Thanks
>>> Srinath
>>>
>>>
>>>
>>> On Wed, Dec 2, 2015 at 12:54 PM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Hi Srinath,

Re: [Dev] US Election 2016 Tweet Analyze System

2016-03-04 Thread Srinath Perera
Feedback I gave is not included!

Too much room between most popular links.
When we show tweets, make the text and tweet account names same size ( like
twitter does)

Look good otherwise.

--Srinath

On Fri, Mar 4, 2016 at 3:00 PM, Dinali Dabarera  wrote:

> Hi everyone,
>
>
> This is the latest update on US Election 2016 Analytic Dashboard.
> This is  running @ https://52.77.25.83:9453/twitter-analyticsV3/index.html
> until this hosts.
>
> Thank you!
>
>
>
> On Fri, Mar 4, 2016 at 11:29 AM, Yasara Dissanayake 
> wrote:
>
>> hi ,
>> adding Chehara
>>
>> On Mon, Feb 29, 2016 at 8:51 AM, Srinath Perera  wrote:
>>
>>> We can. It will be our twitter toolbox.
>>>
>>> --Srinath
>>>
>>> On Mon, Feb 29, 2016 at 8:43 AM, Sachith Withana 
>>> wrote:
>>>
 Hi Srinath and all,

 I'm just wondering, can't we make this a generic tool/product to
 analyze and visualize twitter data.

 Ex: User provides us with some keywords and our tool does the
 analyzing/visualizing. The user can add more functionality if required (
 customization)

 Thanks,
 Sachith

 On Mon, Jan 25, 2016 at 5:04 PM, Thusitha Kalugamage  wrote:

> Update,
>
>1. Added assigned colors for candidate backgrounds as suggested.
>2. With Yasara's input on News tab, moved next to the Sentiment
>Analysis Graph.
>
>  Please visit http://thusithak.github.io/twitter-analytics/ to view
> changes.
>
> On Mon, Jan 25, 2016 at 4:00 PM, Thusitha Kalugamage <
> thusi...@wso2.com> wrote:
>
>> Hi Yudhanjaya,
>>
>> 1) Yes we could, but since the Image is appended dynamically I used
>> the same property to create its background,
>> If we are to use a color, we would have to parse a color property as
>> well. @Dinali shall we do that?
>>
>> 2) Yes, Already added three tabs to ticker and moved "News" as one of
>> three tabs in the second row [1]
>> 
>>
>> [1] http://thusithak.github.io/twitter-analytics/
>>
>> Regards,
>>
>> On Mon, Jan 25, 2016 at 12:23 PM, Yudhanjaya Wijeratne <
>> yudhanj...@wso2.com> wrote:
>>
>>> Thanks Thusitha for the design. That looks clean!
>>> Small critique:
>>> 1) instead of having the candidate's image stretched out for the
>>> background in his profile square, can we use the color we use to 
>>> represent
>>> him in the community graph?
>>> 2) Is it possible to have an 'article ticker' before the sentiment
>>> analysis box? We can feed the headlines in there.
>>>
>>> Best,
>>> Yudha
>>>
>>> On Sun, Jan 24, 2016 at 7:30 PM, Thusitha Kalugamage <
>>> thusi...@wso2.com> wrote:
>>>
 Hi All,

 As per discussions we had previously, I came up with a quick design
 and worked on a markup. :)
 you can have a look at the static page here [1]
 .

 *DInali / Yasara*: Please clone this repo [2]
 and start working
 on this. I will help you get the integration done.

 *Yudhanjaya* / *Srinath*,  Let me know if we can improve on this.

 Please note that some of these images are copyrighted and must be
 revised before publishing.


 [1] http://thusithak.github.io/twitter-analytics/
 [2] https://github.com/thusithak/twitter-analytics


 Regards,

 On Thu, Dec 3, 2015 at 11:05 AM, Dakshika Jayathilaka <
 daksh...@wso2.com> wrote:

> Sure, I'll join for brainstorming.
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Thu, Dec 3, 2015 at 11:02 AM, Srinath Perera 
> wrote:
>
>> Hi Dakshika,
>>
>> Yudhanjaya will create some mock view and meet you to brainstorm
>> and get feedback. Yudhanjaya, grab me or get me via a phone to the 
>> same
>> discussion.
>>
>> Thanks
>> Srinath
>>
>>
>>
>> On Wed, Dec 2, 2015 at 12:54 PM, Dakshika Jayathilaka <
>> daksh...@wso2.com> wrote:
>>
>>> Hi Srinath,
>>>
>>> Seems I missed this thread. Anyway shall we meet to build some
>>> good story + design concept.
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> 

Re: [Dev] [Gsoc 2016] [CDMF] Calculate Device Health Status using Analytics and API Calls

2016-03-04 Thread Geethika Kumari
Hello sir,
Thank you for help. There are several branches in these repositories. What
branch I need to use.

Thanks and Regards.
Nuwan Sameera.

On Thu, Mar 3, 2016 at 12:20 AM, Ayyoob Hamza  wrote:

> Hi Geethika,
> Thank you for your interest in this project. CDMF is a framework that is
> used for device management and one of the requirement is for the user to
> monitor the device status. There are two ways to check the status of a
> device
> 1) Send a device health check ping to the device and then depict the
> status.
> 2) Get the device to server communication data and then co relate with
> past communication to find the status of the device.
>
> In here we are focusing with a generalised solution that incorporates the
> idea from the second approach. In the first approach we are limiting the
> capability by asking the device manufacture to incorporate the capability.
>
> You can find the source code for CDMF in
> https://github.com/wso2/carbon-device-mgt
>
> You can find the source code for device type implementation such as
> android, windows and few IoT device samples in :
> https://github.com/wso2/carbon-device-mgt-plugins
>
> We have two products that are built on CDMF
> 1) EMM -
> https://docs.wso2.com/display/EMM200/WSO2+Enterprise+Mobility+Manager
> https://github.com/wso2/product-mdm - You can find the official release
> EMM 2.0.0 in the product listing page
>
> 2) IoT Server - https://docs.wso2.com/display/IoTS100/About+IoT+Server
> https://github.com/wso2-incubator/product-iot-server - This is still
> under development.
>
> Please go through the documentation and try to build EMM to understand the
> behaviour of the product.
>
> Thanks
>
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Wed, Mar 2, 2016 at 11:38 PM, Geethika Kumari 
> wrote:
>
>> Dear sir,
>>
>> I am Geethika Kumari Abeysinghe third year student of University of
>> Moratuwa. I am interestig with this project.
>> I have knowledge and hand on experiences on java programming, restful web
>> services and maven project implementations.
>> Please let me to be clarified about the objectives and the exact
>> deliverables you are expecting from GSOC interns.
>> Let me know how to get started with this project.
>>
>> Thanks and Regards.
>> Geethika Abeysinghe.
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: SPI-Fly Mediator Service for Bundle Ordering

2016-03-04 Thread Kishanthan Thangarajah
Yes, we need to find a way to identify what bundles to weave on the fly
when framework is starting.

On Fri, Mar 4, 2016 at 2:19 PM, Miraj Abeysekara  wrote:

> Hi Kishanthan,
>
> 3rd option is also use static weaving isn't it? Is it ok to persist the
> modified SPI bundles?
>
> Thanks.
>
> On Fri, Mar 4, 2016 at 1:58 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Miraj,
>>
>> On Fri, Mar 4, 2016 at 10:25 AM, Miraj Abeysekara  wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: David Bosschaert 
>>> Date: Mon, Feb 15, 2016 at 3:04 PM
>>> Subject: Re: SPI-Fly Mediator Service for Bundle Ordering
>>> To: u...@aries.apache.org
>>>
>>>
>>> Hi Miraj,
>>>
>>> It's an interesting idea, however I'm not sure it will always work. The
>>> problem is that you need to have your weaving hook registered before the
>>> class to be woven is *loaded*, and I'm wondering whether this will provide
>>> enough guarantees to know that the class is not yet loaded. I mean there
>>> could be another bundle that loads the class that needs to be woven for
>>> whatever reason and suddenly this approach will stop working...
>>>
>>> The possibilities as they are right now are:
>>> * Use start levels. Run the dynamic weaving bundle on a very low start
>>> level (like 1) and run your other bundles on a higher start level (e.g. 2
>>> or 4 or 50).
>>>
>>
>> We tried start level based solutions before too but the issue we faced
>> was wedid not have control over this as people will try to use this for all
>> the scenarios, which then became complex. Start level should be brought in
>> as a platform wide solution and we need to properly design and use it. So
>> for the moment, let's not go with this approach.
>>
>>
>>> * Use static weaving [1]. This will do the weaving on a bundle at build
>>> time and replace the to-be-woven classfiles with woven ones in the .jar.
>>> This approach does not have any ordering constraints at runtime.
>>> ** You could even run the static weaving tool as part of your OSGi
>>> framework provisioning phase, so statically weave bundles on-the-fly before
>>> you are installing them.
>>>
>>
>> IMO, let's go with the 3rd option mentioned above, rather than statically
>> weaving the bundles before starting the server.
>>
>>
>>> I'm just wondering, is there any reason why one of these two approaches
>>> doesn't work for you?
>>>
>>> Cheers,
>>>
>>> David
>>>
>>> [1] See 'Use with Static Weaving' in
>>> http://aries.apache.org/modules/spi-fly.html
>>>
>>> On 15 February 2016 at 08:45, Miraj Abeysekara  wrote:
>>>
 Hi,

 We are currently developing a caching API which provides caching
 service for the consumers. Currently the SPI-Fly dynamic weaving bundle
 should started first in order to weave the consumer bundles otherwise the
 consumers does not weave and can not see the class-loader of the service
 provider bundle.

 We came up with an idea to solve this issue by exposing a OSGi service
 from the mediator after it was started. So the consumers can use
 declarative service to delay the startup until the mediator service
 available.

 Is it possible to add this feature to the SPI-Fly?

 Thanks.

 Best regards,
 Miraj Abeysekara.

>>>
>>>
>>>
>>>
>>> --
>>> Miraj Abeysekara
>>> Intern (Software Engineering)
>>> Mobile: +94775690822
>>> Twitter: https://twitter.com/MiRAGECreator
>>> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> Miraj Abeysekara
> Intern (Software Engineering)
> Mobile: +94775690822
> Twitter: https://twitter.com/MiRAGECreator
> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>



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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Connector] Github connector - get List of commits on a repo.

2016-03-04 Thread Kathees Rajendram
Merged. will release and add to the store.

On Fri, Mar 4, 2016 at 11:27 AM, Lakmini Chathurika 
wrote:

> Hi,
>
> I added the two new  methods to do the followings  in GitHub Connector.
>
> 1.List Organization Repositories.[1].
> 2.List Commits on a repository.[2].
>
> I create JIRA [3]&[4] and add the PR[5].
> Could you please review and merge this.
>
> [1].https://developer.github.com/v3/repos/#list-organization-repositories
> [2].
> https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
> [3].https://wso2.org/jira/browse/ESBCONNECT-85
> [4].https://wso2.org/jira/browse/ESBCONNECT-84
> [5].https://github.com/wso2-extensions/esb-connector-github/pull/3
>
> Thanks & Reagards.
>
> Lakmini.
>
> On Thu, Mar 3, 2016 at 4:53 PM, Malaka Silva  wrote:
>
>> Hi Lakmini,
>>
>> Great if you could contribute. Else put a jira and we will include this
>> in next version of github
>>
>> On Thu, Mar 3, 2016 at 4:12 PM, Lakmini Chathurika 
>> wrote:
>>
>>> Hi,
>>>
>>> I need to get the list of repositories that are accessible to the
>>> authenticated user.
>>> Current connector [1] does not support for this but GitHub API [2] is
>>> supporting it . So need to implement the method  inside the connector.
>>> [1].
>>> https://storepreview.wso2.com/store/assets/esbconnector/cf9c44c0-b637-4587-afae-ea55fe64b632
>>> [2].https://developer.github.com/v3/repos/#list-your-repositories
>>>
>>> Thanks & Regards.
>>> Lakmini
>>>
>>> On Thu, Mar 3, 2016 at 12:39 PM, Kathees Rajendram 
>>> wrote:
>>>
 Hi Chanuka,

 Now we don't have the method[1][2] in github1.0.0 connector.

 We will include this in next version of github or you can contribute
 [3] with creating the method.

 [1] -
 https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
 [2] -
 https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
 [3] - https://github.com/wso2-extensions/esb-connector-github

 Thanks,
 Kathees

 On Thu, Mar 3, 2016 at 12:35 PM, Chanuka Dissanayake 
 wrote:

> Hi,
>
> Current connector [1] doesn't support on the $subject.  Github API [2]
> is supporting it, and need to implement the method inside the connector.
> As a workaround we can do traverse thorough the pull request (refer
> [3]) per each repo and retrieve the list.
>
>
> [1]
> https://storepreview.wso2.com/store/assets/esbconnector/cf9c44c0-b637-4587-afae-ea55fe64b632
> [2]
> https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
> [3]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Pull+Requests+in+Github#WorkingwithPullRequestsinGithub-listPullRequestCommits
>
> Thanks & Regards,
> Chanuka.
> --
> Chanuka Dissanayake
> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>
> Mobile: +94 71 33 63 596
> Email: chan...@wso2.com
>



 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173

>>>
>>>
>>
>>
>> --
>>
>> 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.
>>
>
>


-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: SPI-Fly Mediator Service for Bundle Ordering

2016-03-04 Thread Miraj Abeysekara
Hi Kishanthan,

3rd option is also use static weaving isn't it? Is it ok to persist the
modified SPI bundles?

Thanks.

On Fri, Mar 4, 2016 at 1:58 PM, Kishanthan Thangarajah 
wrote:

> Hi Miraj,
>
> On Fri, Mar 4, 2016 at 10:25 AM, Miraj Abeysekara  wrote:
>
>>
>> -- Forwarded message --
>> From: David Bosschaert 
>> Date: Mon, Feb 15, 2016 at 3:04 PM
>> Subject: Re: SPI-Fly Mediator Service for Bundle Ordering
>> To: u...@aries.apache.org
>>
>>
>> Hi Miraj,
>>
>> It's an interesting idea, however I'm not sure it will always work. The
>> problem is that you need to have your weaving hook registered before the
>> class to be woven is *loaded*, and I'm wondering whether this will provide
>> enough guarantees to know that the class is not yet loaded. I mean there
>> could be another bundle that loads the class that needs to be woven for
>> whatever reason and suddenly this approach will stop working...
>>
>> The possibilities as they are right now are:
>> * Use start levels. Run the dynamic weaving bundle on a very low start
>> level (like 1) and run your other bundles on a higher start level (e.g. 2
>> or 4 or 50).
>>
>
> We tried start level based solutions before too but the issue we faced was
> wedid not have control over this as people will try to use this for all the
> scenarios, which then became complex. Start level should be brought in as a
> platform wide solution and we need to properly design and use it. So for
> the moment, let's not go with this approach.
>
>
>> * Use static weaving [1]. This will do the weaving on a bundle at build
>> time and replace the to-be-woven classfiles with woven ones in the .jar.
>> This approach does not have any ordering constraints at runtime.
>> ** You could even run the static weaving tool as part of your OSGi
>> framework provisioning phase, so statically weave bundles on-the-fly before
>> you are installing them.
>>
>
> IMO, let's go with the 3rd option mentioned above, rather than statically
> weaving the bundles before starting the server.
>
>
>> I'm just wondering, is there any reason why one of these two approaches
>> doesn't work for you?
>>
>> Cheers,
>>
>> David
>>
>> [1] See 'Use with Static Weaving' in
>> http://aries.apache.org/modules/spi-fly.html
>>
>> On 15 February 2016 at 08:45, Miraj Abeysekara  wrote:
>>
>>> Hi,
>>>
>>> We are currently developing a caching API which provides caching service
>>> for the consumers. Currently the SPI-Fly dynamic weaving bundle should
>>> started first in order to weave the consumer bundles otherwise the
>>> consumers does not weave and can not see the class-loader of the service
>>> provider bundle.
>>>
>>> We came up with an idea to solve this issue by exposing a OSGi service
>>> from the mediator after it was started. So the consumers can use
>>> declarative service to delay the startup until the mediator service
>>> available.
>>>
>>> Is it possible to add this feature to the SPI-Fly?
>>>
>>> Thanks.
>>>
>>> Best regards,
>>> Miraj Abeysekara.
>>>
>>
>>
>>
>>
>> --
>> Miraj Abeysekara
>> Intern (Software Engineering)
>> Mobile: +94775690822
>> Twitter: https://twitter.com/MiRAGECreator
>> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Miraj Abeysekara
Intern (Software Engineering)
Mobile: +94775690822
Twitter: https://twitter.com/MiRAGECreator
GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the following Carbon-Transports pull requests

2016-03-04 Thread Samiyuru Senarathne
Thank you

On Fri, Mar 4, 2016 at 1:41 PM, Isuru Ranawaka  wrote:

>
>
> On Fri, Mar 4, 2016 at 11:57 AM, Samiyuru Senarathne 
> wrote:
>
>> https://github.com/wso2/carbon-transports/pull/38
>> https://github.com/wso2/carbon-transports/pull/39
>>
>
>
> Merged
>
>
>
>>
>> Best Regards,
>> Samiyuru
>>
>> --
>> Samiyuru Senarathne
>> *Software Engineer*
>> Mobile : +94 (0) 71 134 6087
>> samiy...@wso2.com
>>
>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



-- 
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
samiy...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: SPI-Fly Mediator Service for Bundle Ordering

2016-03-04 Thread Kishanthan Thangarajah
Hi Miraj,

On Fri, Mar 4, 2016 at 10:25 AM, Miraj Abeysekara  wrote:

>
> -- Forwarded message --
> From: David Bosschaert 
> Date: Mon, Feb 15, 2016 at 3:04 PM
> Subject: Re: SPI-Fly Mediator Service for Bundle Ordering
> To: u...@aries.apache.org
>
>
> Hi Miraj,
>
> It's an interesting idea, however I'm not sure it will always work. The
> problem is that you need to have your weaving hook registered before the
> class to be woven is *loaded*, and I'm wondering whether this will provide
> enough guarantees to know that the class is not yet loaded. I mean there
> could be another bundle that loads the class that needs to be woven for
> whatever reason and suddenly this approach will stop working...
>
> The possibilities as they are right now are:
> * Use start levels. Run the dynamic weaving bundle on a very low start
> level (like 1) and run your other bundles on a higher start level (e.g. 2
> or 4 or 50).
>

We tried start level based solutions before too but the issue we faced was
wedid not have control over this as people will try to use this for all the
scenarios, which then became complex. Start level should be brought in as a
platform wide solution and we need to properly design and use it. So for
the moment, let's not go with this approach.


> * Use static weaving [1]. This will do the weaving on a bundle at build
> time and replace the to-be-woven classfiles with woven ones in the .jar.
> This approach does not have any ordering constraints at runtime.
> ** You could even run the static weaving tool as part of your OSGi
> framework provisioning phase, so statically weave bundles on-the-fly before
> you are installing them.
>

IMO, let's go with the 3rd option mentioned above, rather than statically
weaving the bundles before starting the server.


> I'm just wondering, is there any reason why one of these two approaches
> doesn't work for you?
>
> Cheers,
>
> David
>
> [1] See 'Use with Static Weaving' in
> http://aries.apache.org/modules/spi-fly.html
>
> On 15 February 2016 at 08:45, Miraj Abeysekara  wrote:
>
>> Hi,
>>
>> We are currently developing a caching API which provides caching service
>> for the consumers. Currently the SPI-Fly dynamic weaving bundle should
>> started first in order to weave the consumer bundles otherwise the
>> consumers does not weave and can not see the class-loader of the service
>> provider bundle.
>>
>> We came up with an idea to solve this issue by exposing a OSGi service
>> from the mediator after it was started. So the consumers can use
>> declarative service to delay the startup until the mediator service
>> available.
>>
>> Is it possible to add this feature to the SPI-Fly?
>>
>> Thanks.
>>
>> Best regards,
>> Miraj Abeysekara.
>>
>
>
>
>
> --
> Miraj Abeysekara
> Intern (Software Engineering)
> Mobile: +94775690822
> Twitter: https://twitter.com/MiRAGECreator
> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] New Throttling Engine Database Schema Design

2016-03-04 Thread Lahiru Cooray
On Fri, Mar 4, 2016 at 1:23 PM, Upekka Anuruddhi  wrote:

> Whats are QUOTA_POLICY_TYPE, QUOTA attributes
>
> Throttling can be done based on Request Count (Eg: 4000 req/5 min) or
> based on Bandwidth (Eg: 100 MB/1 hour). QUOTA_POLICY_TYPE is either
> "RequestCount" or "Bandwidth". QUOTA is the number of requests or the
> bandwidth allowed.
>
So, cant we use a master table to store the quota policy types and map the
id here to avoid data repetition?

>
>
> why are these duplicated in AM_POLICY, AM_CONDITION tables?
>
> Consider the scenario "Allow 20 req/min for requests coming from a
> particular ip address range and allow 10 req/min for others". In the above
> scenario the quota 20 req/min is relevant to condition (AM_CONDITION table)
> and 10 req/min is the default quota relevant to Policy (AM_POLICY table).
>
+1

>
>
> On Thu, Mar 3, 2016 at 5:42 PM, Nuwan Dias  wrote:
>
>> The condition table needs to hold the Resource URI template as well.
>>
>> On Thu, Mar 3, 2016 at 4:28 PM, Upekka Anuruddhi  wrote:
>>
>>> Hi All,
>>>
>>> This is the database design for saving throttling policies in CEP Based
>>> Throttling engine for API Manager.
>>> Please share your ideas and suggestions on this.
>>>
>>> Thanks.
>>> Upekka
>>> ​
>>>
>>> --
>>> *Upekka Pathirana*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> Mobile : +94 (0) 714 868488
>>> upe...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> *Upekka Pathirana*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 714 868488
> upe...@wso2.com
>



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

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


Re: [Dev] Fwd: GSOC2016: Proposal 6: [ML]

2016-03-04 Thread Maheshakya Wijewardena
Hi Mahesh,

We had to modify a the project scope a little to suit best for the
requirements. We will update the project idea with those concerns soon and
let you know.

We do not support streaming data in WSO2 Machine learner at the moment. The
new concern is to use WSO2 CEP to handle streaming data and implement the
machine learning algorithms with Spark MLLib. You can look at the streaming
k-means and streaming linear regression implementations in MLLib.
Currently, the API is only for scala. Our need is to get the Java APIs of
k-means and generalized linear models to support incremental learning with
streaming data. This has to be done as mini-batch learning since these
algorithms operates as stochastic gradient descents so that any learning
with new data can be done on top of the previously learned models. So
please go through the those APIs[1][2][3] and try to get an idea.
Also please try to understand how event streams work in WSO2 CEP [4][5].

Best regards.

[1]
http://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/regression/LinearRegressionWithSGD.html
[2]
http://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/clustering/KMeans.html
[3]
http://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/classification/LogisticRegressionWithSGD.html
[4] https://docs.wso2.com/display/CEP310/Working+with+Event+Streams
[5] https://docs.wso2.com/display/CEP310/Working+with+Execution+Plans

On Fri, Mar 4, 2016 at 11:26 AM, Mahesh Dananjaya  wrote:

> Hi maheshakya,
> give me sometime to go through your ML package. Do current product have
> any stream data support?. i did some university projects related to machine
> learning with regressions,modelling, factor analysis, cluster analysis and
> classification problems (Discriminant Analysis) with SVM (Support Vector
> machines), Neural networks, LS classification and ML(Maximum likelihood).
> give me sometime to see how wso2 architecture works.then i can come up with
> good architecture.thank you.
> BR,
> Mahesh.
>
> On Wed, Mar 2, 2016 at 2:41 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> Thank you for the resources. I will go through this and looking forward
>> to this proposed project.Thank you.
>> BR,
>> Mahesh.
>>
>> On Wed, Mar 2, 2016 at 1:52 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Thank you for the interest for this project.
>>>
>>> We would like to know what type of similar projects you have worked on.
>>> You may have seen that WSO2 Machine Learner supports several learning
>>> algorithms at the moment[1]. This project intends to leverage the existing
>>> algorithms in WSO2 Machine Learner to support streaming data. As an
>>> initiative, first you can get an idea about what WSO2 Machine Learner does
>>> and how it operates. You can download WSO2 Machine Learner from product
>>> page[2] and the the source code [3]. ML is using Apache Spark MLLib[4] for
>>> its' algorithms so it's better to read and understand what it does as well.
>>>
>>> In order to get an idea about the deliverables and the scope of this
>>> project, try to understand how Spark streaming[5] (see examples) handles
>>> streaming data. Also, have a look in the streaming algorithms[6][7]
>>> supported by MLLib. There are two approaches discussed to employ
>>> incremental learning in ML in the project proposals page. These streaming
>>> algorithms can be directly used in the first approach. For the other
>>> approach, the your implementation should contain a procedure to create mini
>>> batches from streaming data with relevant sizes (i.e. a moving window) and
>>> do periodic retraining of the same algorithm.
>>>
>>> To start with the project, you will need to come up with a suitable plan
>>> and an architecture first.
>>>
>>> Please watch the video referenced in the proposal (reference: 5). It
>>> will help you getting a better idea about machine learning algorithms with
>>> streaming data.
>>>
>>> Let us know if you need any help with these.
>>>
>>> Best regards
>>>
>>> [1] https://docs.wso2.com/display/ML110/Machine+Learner+Algorithms
>>> [2] http://wso2.com/products/machine-learner/
>>> [3]
>>> https://docs.wso2.com/display/ML110/Building+from+Source#BuildingfromSource-Downloadingthesourcecheckout
>>> [4] https://spark.apache.org/docs/1.4.1/mllib-guide.html
>>> [5] https://spark.apache.org/docs/1.4.1/streaming-programming-guide.html
>>> [6]
>>> https://spark.apache.org/docs/1.4.1/mllib-linear-methods.html#streaming-linear-regression
>>> [7]
>>> https://spark.apache.org/docs/1.4.1/mllib-clustering.html#streaming-k-means
>>>
>>> On Wed, Mar 2, 2016 at 1:19 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 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 

Re: [Dev] Please review and merge the following Carbon-Transports pull requests

2016-03-04 Thread Isuru Ranawaka
On Fri, Mar 4, 2016 at 11:57 AM, Samiyuru Senarathne 
wrote:

> https://github.com/wso2/carbon-transports/pull/38
> https://github.com/wso2/carbon-transports/pull/39
>


Merged



>
> Best Regards,
> Samiyuru
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



-- 
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