Re: [Dev] Do we have free hosting for WSO2 APP Manager

2015-07-08 Thread Tishan Dahanayakage
Hi Nifras,

Are you querying about App management as a service. If so you can try WSO2
cloud [1].

[1] http://wso2.com/cloud/app-cloud/

Thanks
Tishan

On Thu, Jul 9, 2015 at 12:16 PM, Lahiru Cooray  wrote:

> Hi Nifras,
> Your requirement is not much clear. WSO2 APP Manager is a server which you
> can download freely from [1].
> (It is not a website/web-application, so you do not need to host in any
> App server)
>
> Please refer [2] to get an understanding about the deployment.
>
> [1] http://wso2.com/products/app-manager/
> [2] https://docs.wso2.com/display/APPM100/Running+the+Product
>
> On Thu, Jul 9, 2015 at 11:16 AM, NIFRAS ISMAIL 
> wrote:
>
>> Hi there,
>> How we host the App Manager in live. Do we have any free hosting?
>>
>> Regards.
>> *M. Nifras Ismail*
>> [image: LinkedIn] 
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *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
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

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


Re: [Dev] Do we have free hosting for WSO2 APP Manager

2015-07-08 Thread Lahiru Cooray
Hi Nifras,
Your requirement is not much clear. WSO2 APP Manager is a server which you
can download freely from [1].
(It is not a website/web-application, so you do not need to host in any App
server)

Please refer [2] to get an understanding about the deployment.

[1] http://wso2.com/products/app-manager/
[2] https://docs.wso2.com/display/APPM100/Running+the+Product

On Thu, Jul 9, 2015 at 11:16 AM, NIFRAS ISMAIL 
wrote:

> Hi there,
> How we host the App Manager in live. Do we have any free hosting?
>
> Regards.
> *M. Nifras Ismail*
> [image: LinkedIn] 
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*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] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread NIFRAS ISMAIL
Hi there,

for validation you can use a open source library bootstrapValidation JS .
You can make call after validation is onsuccess.

https://github.com/nghuuphuoc/bootstrapvalidator

I have answer this question generally. Apologize me if any thing wrong with
WSO2 APIs.




Regards.
*M. Nifras Ismail*
[image: LinkedIn] 



On Thu, Jul 9, 2015 at 10:50 AM, Irham Iqbal  wrote:

> Hi Rajee,
>
> You can use a timer to call back. It will wait for sometime to check
> whether there is textArea.onkeypress and trigger callback. Reference[1].
> [1]
> http://stackoverflow.com/questions/1620602/javascript-jquery-make-an-ajax-request-when-a-user-is-typing-in-a-textarea
>
> Thanks,
> Iqbal
>
> On Thu, Jul 9, 2015 at 10:16 AM, Lakshani Gamage 
> wrote:
>
>> Hi Rajee,
>>
>> You can use .onblur()[2] event also.
>>
>> [2] http://www.w3schools.com/jsref/event_onblur.asp
>>
>> Thanks,
>> Lakshani
>>
>> On Thu, Jul 9, 2015 at 9:56 AM, Himasha Guruge  wrote:
>>
>>> Hi Rajeenthini,
>>>
>>> You could use a time out or .blur() ( user focus out from the text box)
>>> depending on your requirement. You could look into [1].
>>>
>>> [1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing
>>> 
>>> Thanks,
>>> Himasha
>>>
>>> On Thu, Jul 9, 2015 at 9:52 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Rajeenthini,

 I think you can use jquery focusout method to detect when the textfiled
 focus get put.
 That might help https://api.jquery.com/focusout/

 Thanks

 On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam <
 rajeenth...@wso2.com> wrote:

> Hi all,
>
> Currently I am working on a task validating CRUD forms of Enterprise
> store publisher.So I need to check with the overview name is already 
> exists
> or not.So I will make a AJAX call through server side to get the exactly
> matching asset in the publisher.I am using jQuery validation plugin as 
> well
> as I have an custom method to validate this overview name field on the
> client side.
>
> //custom validator for remote ajax call to validate asset name
> $.validator.addMethod("FieldValidate", function (value, element) {
> var data = '%22name%22 : %22' + value + '%22';
> var result = false;
> $.ajax({
> type: "GET",
> url: caramel.url("/apis/assets?type=gadget&q=" + data),
> dataType: "json",
> async: false,
> success: function (data, textStatus, xhr) {
> var obj = data;
> if (obj.list.length > 0) {
> result = false;
> } else {
> result = true;
> }
> },
> error: function (xhr, thrownError) {
> console.log("error " + xhr.responseText + "  " + thrownError);
> }
> });
> return result;
>
> }, "The name already taken");
>
> By the way I need to trigger the validation only if the user finish
> typing at the text box.But now the Ajax call sends for each and every 
> input
> those are given by user.So can anyone suggest me any idea to handle this?
> Suggestion would appreciate.
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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


>>>
>>>
>>> --
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshani Gamage
>>
>> *Software Engineer*
>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> ___
> Dev mailing list
> Dev@wso2.org
> h

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Hasanthi Purnima Dissanayake
Hi Rajee,
I think you can trigger the validation when the textbox looses it's focus.
In jquery there is a focusout function. I think you can use it.
Just a sample:

$('#text1, #textarea1').focusout(function() {
alert(this.id + " loose the focus");
});

Thanks,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Thu, Jul 9, 2015 at 10:50 AM, Irham Iqbal  wrote:

> Hi Rajee,
>
> You can use a timer to call back. It will wait for sometime to check
> whether there is textArea.onkeypress and trigger callback. Reference[1].
> [1]
> http://stackoverflow.com/questions/1620602/javascript-jquery-make-an-ajax-request-when-a-user-is-typing-in-a-textarea
>
> Thanks,
> Iqbal
>
> On Thu, Jul 9, 2015 at 10:16 AM, Lakshani Gamage 
> wrote:
>
>> Hi Rajee,
>>
>> You can use .onblur()[2] event also.
>>
>> [2] http://www.w3schools.com/jsref/event_onblur.asp
>>
>> Thanks,
>> Lakshani
>>
>> On Thu, Jul 9, 2015 at 9:56 AM, Himasha Guruge  wrote:
>>
>>> Hi Rajeenthini,
>>>
>>> You could use a time out or .blur() ( user focus out from the text box)
>>> depending on your requirement. You could look into [1].
>>>
>>> [1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing
>>> 
>>> Thanks,
>>> Himasha
>>>
>>> On Thu, Jul 9, 2015 at 9:52 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Rajeenthini,

 I think you can use jquery focusout method to detect when the textfiled
 focus get put.
 That might help https://api.jquery.com/focusout/

 Thanks

 On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam <
 rajeenth...@wso2.com> wrote:

> Hi all,
>
> Currently I am working on a task validating CRUD forms of Enterprise
> store publisher.So I need to check with the overview name is already 
> exists
> or not.So I will make a AJAX call through server side to get the exactly
> matching asset in the publisher.I am using jQuery validation plugin as 
> well
> as I have an custom method to validate this overview name field on the
> client side.
>
> //custom validator for remote ajax call to validate asset name
> $.validator.addMethod("FieldValidate", function (value, element) {
> var data = '%22name%22 : %22' + value + '%22';
> var result = false;
> $.ajax({
> type: "GET",
> url: caramel.url("/apis/assets?type=gadget&q=" + data),
> dataType: "json",
> async: false,
> success: function (data, textStatus, xhr) {
> var obj = data;
> if (obj.list.length > 0) {
> result = false;
> } else {
> result = true;
> }
> },
> error: function (xhr, thrownError) {
> console.log("error " + xhr.responseText + "  " + thrownError);
> }
> });
> return result;
>
> }, "The name already taken");
>
> By the way I need to trigger the validation only if the user finish
> typing at the text box.But now the Ajax call sends for each and every 
> input
> those are given by user.So can anyone suggest me any idea to handle this?
> Suggestion would appreciate.
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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


>>>
>>>
>>> --
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshani Gamage
>>
>> *Software Engineer*
>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> ___
> Dev mailing list
> Dev@wso2

Re: [Dev] Error occurs in carbon-registry feature when building product-cep after updating to kernel 4.4.0

2015-07-08 Thread Madusanka Premaratne
Hi all,
I got the same error while building product-apim with carbon4 kernal. Any
idea on this? How did you guys resolve this?

The actual error is,
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - Forum Server Feature 1.3.0
(org.wso2.carbon.forum.server.feature.group 1.3.0)
 Missing requirement: WSO2 Carbon - Forum Server Feature 1.3.0
(org.wso2.carbon.forum.server.feature.group 1.3.0) requires
'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it could not
be found.

Thanks,
Madusanka


On Thu, Apr 2, 2015 at 8:15 AM, Tharik Kanaka  wrote:

> Hi All,
>
> I am updating product-cep to support carbon4 kernel 4.4.0. First i got the
> following error on several modules when building product-cep.
>
> * requires 'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but
> it could not be found*
>
>
> I have resolved that by building dependency modules on java8support
> branch. Finally i got following error  when building product-cep. (before
> that i have built the carbon-registry on java8support branch and updated
> the product-cep reference version of carbon-registry accordingly)
>
>
> *Installation failed.*
> *Cannot complete the install because one or more required items could not
> be found.*
> * Software being installed: WSO2 Carbon - Registry Resource Properties
> Feature 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.resource.properties.feature.group 4.3.2.SNAPSHOT)*
> * Missing requirement: org.wso2.carbon.registry.resource 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.resource 4.3.2.SNAPSHOT) requires 'package
> org.apache.commons.io  2.4.0' but it could
> not be found*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Registry Core Server Feature 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.core.server.feature.group 4.3.2.SNAPSHOT)*
> *  To: org.wso2.carbon.registry.resource [4.3.2.SNAPSHOT]*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Registry Resource Properties Feature 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.resource.properties.feature.group 4.3.2.SNAPSHOT)*
> *  To: org.wso2.carbon.registry.core.server.feature.group
> [4.3.2.SNAPSHOT,4.4.0)*
> *Application failed, log file location:
> /Users/tharik/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1427941663867.log*
>
>
>
> Any idea to resolving this issue?
>
> Thanks,
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook]  [image: Twitter]
 [image: Google Plus]
 [image:
Linkedin]  [image: Instagram]
 [image: Skype]

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


Re: [Dev] DSS-3.2.1 REST service calls are failing

2015-07-08 Thread Kalpa Welivitigoda
Hi all,

Do we have an update on this? I am having the same issue with DSS 3.1.0
using org.apache.axis2.json.gson.JsonFormatter.

On Tue, Jun 17, 2014 at 12:18 PM, Bhathiya Jayasekara 
wrote:

> Hi Chanika,
>
> Please find the dbs file attached.
>
> Thanks,
> Bhathiya
>
>
> On Mon, Jun 16, 2014 at 11:35 PM, Chanika Geeganage 
> wrote:
>
>> Hi Bhathiya,
>>
>> I just tried with a similar scenario in a fresh pack. But it is working
>> fine. Can you please send the data service configuration
>>
>> Thanks
>>
>>
>> On Tue, Jun 17, 2014 at 11:37 AM, Anjana Fernando 
>> wrote:
>>
>>> Hi Bhathiya,
>>>
>>> What's now shipped by default is the new streaming JSON formatter. And
>>> it did work though, when we did testing, and now even, I tested it with
>>> another scenario. Maybe there's some bug that has surfaced because of the
>>> way you created the resource. Chanika, Shameera, please check this a bit
>>> and see.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>>
>>> On Tue, Jun 17, 2014 at 2:04 AM, Bhathiya Jayasekara 
>>> wrote:
>>>
 Hi Eranda,

 It was commented out. Instead, what was there for "application/json" is

 >>> class="org.apache.axis2.json.gson.JsonFormatter" />

 So, I removed the default one and set the one you said.

 Now it works, and I'm confused. :)

 What's the difference between these 2 formatters?
 Are we supposed to do this configuration change if we need json
 support? I couldn't find it in docs[1] though.

 [1]
 https://docs.wso2.org/display/DSS321/Exposing+Data+as+REST-Style+Resources


 Thanks,
 Bhathiya




 On Mon, Jun 16, 2014 at 4:51 PM, Eranda Sooriyabandara >>> > wrote:

> Check whether the following message formatter is in axis2.xml
>
>  class="org.apache.axis2.json.JSONMessageFormatter"/>
>
>
> thanks
> Eranda
>
>
> On Tue, Jun 17, 2014 at 4:59 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> Just observed that [1] works fine, while [2] gives above error.
>>
>> [1] curl *-H "accept:application/xml"*
>> http://10.213.209.1:9763/services/samples/RDBMSSample.HTTPEndpoint/getAddress/firstName/Juri/lastName/Yoshido
>>
>> [2] curl *-H "accept:application/json"*
>> http://10.213.209.1:9763/services/samples/RDBMSSample.HTTPEndpoint/getAddress/firstName/Juri/lastName/Yoshido
>>
>> Any ideas?
>>
>> Thanks,
>>
>>
>> On Mon, Jun 16, 2014 at 4:18 PM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I added a resource to *samples/RDBMSSample* which comes with DSS*.*
>>>
>>>>> path="getAddress/firstName/{firstName}/lastName/{lastName}">
>>>   
>>>  
>>>  
>>>   
>>>
>>>
>>> Now when I call,
>>>
>>> *GET* 
>>> *http://10.213.209.1:9763/services/samples/RDBMSSample.HTTPEndpoint/getAddress/firstName/Juri/lastName/Yoshido
>>> *
>>>
>>> I get following response and backend exceptions.
>>>
>>> *Response: *   {"Fault":{"Code":"","Reason":"Error while writing to
>>> the output stream using JsonWriter","Detail":""}}
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Backend Exception:*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> [2014-06-16 16:14:59,876] ERROR 
>>> {org.wso2.carbon.dataservices.core.description.query.SQLQuery} -
>>> java.lang.IllegalStateException
>>> at com.google.gson.stream.JsonWriter.name(JsonWriter.java:338)
>>> at 
>>> org.apache.axis2.json.gson.GsonXMLStreamWriter.writeStartJson(GsonXMLStreamWriter.java:134)
>>> at 
>>> org.apache.axis2.json.gson.GsonXMLStreamWriter.writeStartElement(GsonXMLStreamWriter.java:227)
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.XMLWriterHelper.writeResultElement(XMLWriterHelper.java:144)
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.StaticOutputElement.executeElement(StaticOutputElement.java:250)
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.OutputElement.execute(OutputElement.java:89)
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.OutputElementGroup.executeElement(OutputElementGroup.java:106)
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.OutputElement.execute(OutputElement.java:89)
>>> at 
>>> org.wso2.carbon.dataservices.core.description.query.Query.writeResultEntry(Query.java:396)
>>> at 
>>> org.wso2.carbon.dataservices.core.description.query.SQLQuery.processNormalQuery(SQLQuery.java:857)
>>> at 
>>> org.wso2.carbon.dataservices.core.descrip

[Dev] Do we have free hosting for WSO2 APP Manager

2015-07-08 Thread NIFRAS ISMAIL
Hi there,
How we host the App Manager in live. Do we have any free hosting?

Regards.
*M. Nifras Ismail*
[image: LinkedIn] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Irham Iqbal
Hi Rajee,

You can use a timer to call back. It will wait for sometime to check
whether there is textArea.onkeypress and trigger callback. Reference[1].
[1]
http://stackoverflow.com/questions/1620602/javascript-jquery-make-an-ajax-request-when-a-user-is-typing-in-a-textarea

Thanks,
Iqbal

On Thu, Jul 9, 2015 at 10:16 AM, Lakshani Gamage  wrote:

> Hi Rajee,
>
> You can use .onblur()[2] event also.
>
> [2] http://www.w3schools.com/jsref/event_onblur.asp
>
> Thanks,
> Lakshani
>
> On Thu, Jul 9, 2015 at 9:56 AM, Himasha Guruge  wrote:
>
>> Hi Rajeenthini,
>>
>> You could use a time out or .blur() ( user focus out from the text box)
>> depending on your requirement. You could look into [1].
>>
>> [1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing
>> 
>> Thanks,
>> Himasha
>>
>> On Thu, Jul 9, 2015 at 9:52 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Rajeenthini,
>>>
>>> I think you can use jquery focusout method to detect when the textfiled
>>> focus get put.
>>> That might help https://api.jquery.com/focusout/
>>>
>>> Thanks
>>>
>>> On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam <
>>> rajeenth...@wso2.com> wrote:
>>>
 Hi all,

 Currently I am working on a task validating CRUD forms of Enterprise
 store publisher.So I need to check with the overview name is already exists
 or not.So I will make a AJAX call through server side to get the exactly
 matching asset in the publisher.I am using jQuery validation plugin as well
 as I have an custom method to validate this overview name field on the
 client side.

 //custom validator for remote ajax call to validate asset name
 $.validator.addMethod("FieldValidate", function (value, element) {
 var data = '%22name%22 : %22' + value + '%22';
 var result = false;
 $.ajax({
 type: "GET",
 url: caramel.url("/apis/assets?type=gadget&q=" + data),
 dataType: "json",
 async: false,
 success: function (data, textStatus, xhr) {
 var obj = data;
 if (obj.list.length > 0) {
 result = false;
 } else {
 result = true;
 }
 },
 error: function (xhr, thrownError) {
 console.log("error " + xhr.responseText + "  " + thrownError);
 }
 });
 return result;

 }, "The name already taken");

 By the way I need to trigger the validation only if the user finish
 typing at the text box.But now the Ajax call sends for each and every input
 those are given by user.So can anyone suggest me any idea to handle this?
 Suggestion would appreciate.
 --

 *Thank You.*

 *Rajeenthini Satkunam*

 *Associate Software Engineer | WSO2*


 *E:rajeenth...@wso2.com *

 *M :+94770832823 <%2B94770832823>   *


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


>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Deploying an ESB Connector with a cApp?

2015-07-08 Thread Shakila Sivagnanarajah
Hi Malaka,

As you noted, I will test for possible scenarios.

Thank you.

On Thu, Jul 9, 2015 at 10:10 AM, Malaka Silva  wrote:

> Hi Shakila,
>
> Good Progress on this.
>
> Let's verify some scenario similar to following,
>
>1. Include more that one connector.
>2. Use the connector inside a proxy service, Api and sequence that are
>included in the same capp.
>
>
> On Wed, Jul 8, 2015 at 6:23 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi all,
>>
>> I have done the connector deployment from CApp.
>>
>> Thank you
>>
>> On Wed, Jul 8, 2015 at 10:25 AM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi all,
>>>
>>> Please find the CApp [1].
>>>
>>> This is my progress:
>>>
>>> 1. I added the connector zip in to the CApp as an artifact and specified
>>> the artifact type as "zip".
>>> 2. As the same way to deploy the artifact, I have implemented a method
>>> to deploy the synapse library in [2] (Still testing).
>>> 3. I have added some constants in [3].
>>>
>>> I am following the way that Dushan noted. Initially I am doing this with
>>> a single connector. As the first step, Now I am doing the connector
>>> deployment (CAR -- > upload -- > deploy connector).
>>>
>>> [1]
>>> https://drive.google.com/a/wso2.com/file/d/0B3SvJgvWs9I_eWY5UEJhM3pzb0k/view?usp=sharing
>>>
>>> [2]
>>> /components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployer.java
>>>
>>> [3]
>>> /components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployerConstants.java
>>>
>>>
>>> Thank you.
>>>
>>> On Wed, Jul 8, 2015 at 6:02 AM, Dushan Abeyruwan 
>>> wrote:
>>>


 On Tue, Jul 7, 2015 at 8:07 AM, Jasintha Dasanayake 
 wrote:

> @viraj
>
> Shall we enable this in ESB project level , since there is a option
> already in ESB project , that we can improve to pack connector into capp
> when adding the ESB project into Capp ?
>
  +1 this should be feasible with ESB Project level as its already there
 in DevS

 Shashika, could please provide more detail (design and implementation
 detail/changes you have done) how you planned to integrate this ?

 however, please note that we need manage depdenencies correctly

 CAR -- > upload -- > deploy connector/s --- >[[*critical:* monitor the
 status of connector deployment]] -- if success ---> execute
 connector-meta-import  --> if success -- > then deploy other
 synapse-artifacts

 *guess, the difficulty can be holding synapse artifact deployment till
 connector's uploaded successfully and import connector meta data, have
 found solution for this ?*


>
> Thanks and Regards
> /Jasintha
>
> On Tue, Jul 7, 2015 at 4:33 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Kasun,
>>
>> Since there is no feature in developer studio to import connector zip
>> into the CApp, I have manually added the zip in to car. Now I am
>> debugging and modifying the code [1]. I think I am going well with the 
>> task.
>>
>> [1]
>> https://github.com/wso2/carbon-mediation/blob/master/components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployer.java
>>
>> Thank you.
>>
>> On Tue, Jul 7, 2015 at 4:22 PM, Kasun Indrasiri 
>> wrote:
>>
>>> Any progress on this task?
>>>
>>> On Thu, Jul 2, 2015 at 11:09 PM, Malaka Silva 
>>> wrote:
>>>
 Hi All,

 Shakila will be starting to implement this functionality from ESB
 side.

 @Shakila - Any blockers user this mail thread to discuss.

 On Tue, Jun 30, 2015 at 5:57 PM, Jasintha Dasanayake <
 jasin...@wso2.com> wrote:

> From tooling perspective, this is similar to class mediator
> deployment using Capp , Since Capp class mediator deployment now 
> working
> fine with Capp so this can be done , However this is also  kind of 
> sever
> extension so we have to educate the users to use this properly.
>
> Thanks and Regards
> /Jasintha
>
> On Tue, Jun 30, 2015 at 5:11 PM, Kasun Indrasiri 
> wrote:
>
>> Hi,
>>
>> AFAIR, this was discussed several times. But in the context of
>> ESB as a service, I think this will be quite useful. I don't think 
>> we have
>> any technical difficulty in doing this.
>>
>> Use case :
>> - We want to invoke a twitter operation.
>> - Import the twitter connector from connector-store( into DevS)
>> and use the twitter connector operation in our mediation logic.
>> - Now we want to d

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Lakshani Gamage
Hi Rajee,

You can use .onblur()[2] event also.

[2] http://www.w3schools.com/jsref/event_onblur.asp

Thanks,
Lakshani

On Thu, Jul 9, 2015 at 9:56 AM, Himasha Guruge  wrote:

> Hi Rajeenthini,
>
> You could use a time out or .blur() ( user focus out from the text box)
> depending on your requirement. You could look into [1].
>
> [1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing
> 
> Thanks,
> Himasha
>
> On Thu, Jul 9, 2015 at 9:52 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Rajeenthini,
>>
>> I think you can use jquery focusout method to detect when the textfiled
>> focus get put.
>> That might help https://api.jquery.com/focusout/
>>
>> Thanks
>>
>> On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Currently I am working on a task validating CRUD forms of Enterprise
>>> store publisher.So I need to check with the overview name is already exists
>>> or not.So I will make a AJAX call through server side to get the exactly
>>> matching asset in the publisher.I am using jQuery validation plugin as well
>>> as I have an custom method to validate this overview name field on the
>>> client side.
>>>
>>> //custom validator for remote ajax call to validate asset name
>>> $.validator.addMethod("FieldValidate", function (value, element) {
>>> var data = '%22name%22 : %22' + value + '%22';
>>> var result = false;
>>> $.ajax({
>>> type: "GET",
>>> url: caramel.url("/apis/assets?type=gadget&q=" + data),
>>> dataType: "json",
>>> async: false,
>>> success: function (data, textStatus, xhr) {
>>> var obj = data;
>>> if (obj.list.length > 0) {
>>> result = false;
>>> } else {
>>> result = true;
>>> }
>>> },
>>> error: function (xhr, thrownError) {
>>> console.log("error " + xhr.responseText + "  " + thrownError);
>>> }
>>> });
>>> return result;
>>>
>>> }, "The name already taken");
>>>
>>> By the way I need to trigger the validation only if the user finish
>>> typing at the text box.But now the Ajax call sends for each and every input
>>> those are given by user.So can anyone suggest me any idea to handle this?
>>> Suggestion would appreciate.
>>> --
>>>
>>> *Thank You.*
>>>
>>> *Rajeenthini Satkunam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>>
>>> *E:rajeenth...@wso2.com *
>>>
>>> *M :+94770832823 <%2B94770832823>   *
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshani Gamage

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


Re: [Dev] [Architecture] Deploying an ESB Connector with a cApp?

2015-07-08 Thread Malaka Silva
Hi Shakila,

Good Progress on this.

Let's verify some scenario similar to following,

   1. Include more that one connector.
   2. Use the connector inside a proxy service, Api and sequence that are
   included in the same capp.


On Wed, Jul 8, 2015 at 6:23 PM, Shakila Sivagnanarajah 
wrote:

> Hi all,
>
> I have done the connector deployment from CApp.
>
> Thank you
>
> On Wed, Jul 8, 2015 at 10:25 AM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi all,
>>
>> Please find the CApp [1].
>>
>> This is my progress:
>>
>> 1. I added the connector zip in to the CApp as an artifact and specified
>> the artifact type as "zip".
>> 2. As the same way to deploy the artifact, I have implemented a method to
>> deploy the synapse library in [2] (Still testing).
>> 3. I have added some constants in [3].
>>
>> I am following the way that Dushan noted. Initially I am doing this with
>> a single connector. As the first step, Now I am doing the connector
>> deployment (CAR -- > upload -- > deploy connector).
>>
>> [1]
>> https://drive.google.com/a/wso2.com/file/d/0B3SvJgvWs9I_eWY5UEJhM3pzb0k/view?usp=sharing
>>
>> [2]
>> /components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployer.java
>>
>> [3]
>> /components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployerConstants.java
>>
>>
>> Thank you.
>>
>> On Wed, Jul 8, 2015 at 6:02 AM, Dushan Abeyruwan  wrote:
>>
>>>
>>>
>>> On Tue, Jul 7, 2015 at 8:07 AM, Jasintha Dasanayake 
>>> wrote:
>>>
 @viraj

 Shall we enable this in ESB project level , since there is a option
 already in ESB project , that we can improve to pack connector into capp
 when adding the ESB project into Capp ?

>>>  +1 this should be feasible with ESB Project level as its already there
>>> in DevS
>>>
>>> Shashika, could please provide more detail (design and implementation
>>> detail/changes you have done) how you planned to integrate this ?
>>>
>>> however, please note that we need manage depdenencies correctly
>>>
>>> CAR -- > upload -- > deploy connector/s --- >[[*critical:* monitor the
>>> status of connector deployment]] -- if success ---> execute
>>> connector-meta-import  --> if success -- > then deploy other
>>> synapse-artifacts
>>>
>>> *guess, the difficulty can be holding synapse artifact deployment till
>>> connector's uploaded successfully and import connector meta data, have
>>> found solution for this ?*
>>>
>>>

 Thanks and Regards
 /Jasintha

 On Tue, Jul 7, 2015 at 4:33 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Kasun,
>
> Since there is no feature in developer studio to import connector zip
> into the CApp, I have manually added the zip in to car. Now I am
> debugging and modifying the code [1]. I think I am going well with the 
> task.
>
> [1]
> https://github.com/wso2/carbon-mediation/blob/master/components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployer.java
>
> Thank you.
>
> On Tue, Jul 7, 2015 at 4:22 PM, Kasun Indrasiri 
> wrote:
>
>> Any progress on this task?
>>
>> On Thu, Jul 2, 2015 at 11:09 PM, Malaka Silva 
>> wrote:
>>
>>> Hi All,
>>>
>>> Shakila will be starting to implement this functionality from ESB
>>> side.
>>>
>>> @Shakila - Any blockers user this mail thread to discuss.
>>>
>>> On Tue, Jun 30, 2015 at 5:57 PM, Jasintha Dasanayake <
>>> jasin...@wso2.com> wrote:
>>>
 From tooling perspective, this is similar to class mediator
 deployment using Capp , Since Capp class mediator deployment now 
 working
 fine with Capp so this can be done , However this is also  kind of 
 sever
 extension so we have to educate the users to use this properly.

 Thanks and Regards
 /Jasintha

 On Tue, Jun 30, 2015 at 5:11 PM, Kasun Indrasiri 
 wrote:

> Hi,
>
> AFAIR, this was discussed several times. But in the context of ESB
> as a service, I think this will be quite useful. I don't think we 
> have any
> technical difficulty in doing this.
>
> Use case :
> - We want to invoke a twitter operation.
> - Import the twitter connector from connector-store( into DevS)
> and use the twitter connector operation in our mediation logic.
> - Now we want to deploy the artifact into ESB but it is required
> to deploy/enable the connector beforehand. (If the connector is not
> deployed in the ESB instance, this config deployment will fail.)
> - If we can include the connector as part of the cApp, then the
> co

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Himasha Guruge
Hi Rajeenthini,

You could use a time out or .blur() ( user focus out from the text box)
depending on your requirement. You could look into [1].

[1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing

Thanks,
Himasha

On Thu, Jul 9, 2015 at 9:52 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Rajeenthini,
>
> I think you can use jquery focusout method to detect when the textfiled
> focus get put.
> That might help https://api.jquery.com/focusout/
>
> Thanks
>
> On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam  > wrote:
>
>> Hi all,
>>
>> Currently I am working on a task validating CRUD forms of Enterprise
>> store publisher.So I need to check with the overview name is already exists
>> or not.So I will make a AJAX call through server side to get the exactly
>> matching asset in the publisher.I am using jQuery validation plugin as well
>> as I have an custom method to validate this overview name field on the
>> client side.
>>
>> //custom validator for remote ajax call to validate asset name
>> $.validator.addMethod("FieldValidate", function (value, element) {
>> var data = '%22name%22 : %22' + value + '%22';
>> var result = false;
>> $.ajax({
>> type: "GET",
>> url: caramel.url("/apis/assets?type=gadget&q=" + data),
>> dataType: "json",
>> async: false,
>> success: function (data, textStatus, xhr) {
>> var obj = data;
>> if (obj.list.length > 0) {
>> result = false;
>> } else {
>> result = true;
>> }
>> },
>> error: function (xhr, thrownError) {
>> console.log("error " + xhr.responseText + "  " + thrownError);
>> }
>> });
>> return result;
>>
>> }, "The name already taken");
>>
>> By the way I need to trigger the validation only if the user finish
>> typing at the text box.But now the Ajax call sends for each and every input
>> those are given by user.So can anyone suggest me any idea to handle this?
>> Suggestion would appreciate.
>> --
>>
>> *Thank You.*
>>
>> *Rajeenthini Satkunam*
>>
>> *Associate Software Engineer | WSO2*
>>
>>
>> *E:rajeenth...@wso2.com *
>>
>> *M :+94770832823 <%2B94770832823>   *
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Thusitha Thilina Dayaratne
Hi Rajeenthini,

I think you can use jquery focusout method to detect when the textfiled
focus get put.
That might help https://api.jquery.com/focusout/

Thanks

On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam 
wrote:

> Hi all,
>
> Currently I am working on a task validating CRUD forms of Enterprise store
> publisher.So I need to check with the overview name is already exists or
> not.So I will make a AJAX call through server side to get the exactly
> matching asset in the publisher.I am using jQuery validation plugin as well
> as I have an custom method to validate this overview name field on the
> client side.
>
> //custom validator for remote ajax call to validate asset name
> $.validator.addMethod("FieldValidate", function (value, element) {
> var data = '%22name%22 : %22' + value + '%22';
> var result = false;
> $.ajax({
> type: "GET",
> url: caramel.url("/apis/assets?type=gadget&q=" + data),
> dataType: "json",
> async: false,
> success: function (data, textStatus, xhr) {
> var obj = data;
> if (obj.list.length > 0) {
> result = false;
> } else {
> result = true;
> }
> },
> error: function (xhr, thrownError) {
> console.log("error " + xhr.responseText + "  " + thrownError);
> }
> });
> return result;
>
> }, "The name already taken");
>
> By the way I need to trigger the validation only if the user finish typing
> at the text box.But now the Ajax call sends for each and every input those
> are given by user.So can anyone suggest me any idea to handle this?
> Suggestion would appreciate.
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Shakila Sivagnanarajah
Hi Rajeenthini,

Can you please share the place, in which you are calling this function?

On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam 
wrote:

> Hi all,
>
> Currently I am working on a task validating CRUD forms of Enterprise store
> publisher.So I need to check with the overview name is already exists or
> not.So I will make a AJAX call through server side to get the exactly
> matching asset in the publisher.I am using jQuery validation plugin as well
> as I have an custom method to validate this overview name field on the
> client side.
>
> //custom validator for remote ajax call to validate asset name
> $.validator.addMethod("FieldValidate", function (value, element) {
> var data = '%22name%22 : %22' + value + '%22';
> var result = false;
> $.ajax({
> type: "GET",
> url: caramel.url("/apis/assets?type=gadget&q=" + data),
> dataType: "json",
> async: false,
> success: function (data, textStatus, xhr) {
> var obj = data;
> if (obj.list.length > 0) {
> result = false;
> } else {
> result = true;
> }
> },
> error: function (xhr, thrownError) {
> console.log("error " + xhr.responseText + "  " + thrownError);
> }
> });
> return result;
>
> }, "The name already taken");
>
> By the way I need to trigger the validation only if the user finish typing
> at the text box.But now the Ajax call sends for each and every input those
> are given by user.So can anyone suggest me any idea to handle this?
> Suggestion would appreciate.
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Rajeenthini Satkunam
Hi all,

Currently I am working on a task validating CRUD forms of Enterprise store
publisher.So I need to check with the overview name is already exists or
not.So I will make a AJAX call through server side to get the exactly
matching asset in the publisher.I am using jQuery validation plugin as well
as I have an custom method to validate this overview name field on the
client side.

//custom validator for remote ajax call to validate asset name
$.validator.addMethod("FieldValidate", function (value, element) {
var data = '%22name%22 : %22' + value + '%22';
var result = false;
$.ajax({
type: "GET",
url: caramel.url("/apis/assets?type=gadget&q=" + data),
dataType: "json",
async: false,
success: function (data, textStatus, xhr) {
var obj = data;
if (obj.list.length > 0) {
result = false;
} else {
result = true;
}
},
error: function (xhr, thrownError) {
console.log("error " + xhr.responseText + "  " + thrownError);
}
});
return result;

}, "The name already taken");

By the way I need to trigger the validation only if the user finish typing
at the text box.But now the Ajax call sends for each and every input those
are given by user.So can anyone suggest me any idea to handle this?
Suggestion would appreciate.
-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

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


Re: [Dev] Carbon-deployment 4.4.2 Release date

2015-07-08 Thread Kasun Indrasiri
Hi Kernel team,

We are blocked on ESB beta release because of not having service
activation/deactivation. There is no point of adding this to AS without
adding this to ESB (this feature is mostly used with ESB than AS). So, can
we please get a carbon-deployment release based-on kernel 4.4 with this
feature.


On Mon, Jul 6, 2015 at 12:10 PM, Kasun Indrasiri  wrote:

> Hi,
>
> Any updates on this?
>
> On Wed, Jun 24, 2015 at 11:59 AM, Kasun Indrasiri  wrote:
>
>> We probably need a release of carbon-deployment earlier than that,
>> because ESB GA release is planned on mid July. Most of the service
>> activation/deactivation features will be mainly used with Proxy service.
>>
>> On Wed, Jun 24, 2015 at 11:22 AM, Jayanga Dissanayake 
>> wrote:
>>
>>> Hi Prabath,
>>>
>>> Carbon-deployment 4.4.2 will be released on mid July, in parallel with
>>> WSO2AS RC releases.
>>> Changes related to proxy service Activate/Deactivate feature is merged
>>> into master branch and available in 4.4.2-SNAPSHOT
>>>
>>> Thanks,
>>> Jayanga.
>>>
>>>
>>> *Jayanga Dissanayake*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com/
>>> lean . enterprise . middleware
>>> email: jaya...@wso2.com
>>> mobile: +94772207259
>>>
>>> On Wed, Jun 24, 2015 at 11:14 AM, Prabath Ariyarathna <
>>> prabat...@wso2.com> wrote:
>>>
 Hi Carbon Team.

 We are planning to release proxy service Activate/Deactivate feature
 with the ESB 4.9 release and AFAIK it has already been added to the
 carbon-deployment 4.4.2-SNAPSHOT.
 When you plan to release it?


 Thanks.
 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com *

 *Blog: http://prabu-lk.blogspot.com *

 *Flicker : https://www.flickr.com/photos/47759189@N08
 *

 *Mobile: +94 77 699 4730 *






>>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



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

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


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-08 Thread Mohamed Fawzan
Is this similar to what you have in your mind?

graph = {

   nodeA : {
   in : [ nodeB ],
   out : [nodeC, nodeE]
},

  nodeB : {
   in : [nodeM],
   out : [nodeA]
  }, 


}

-Regards



On Thu, Jul 9, 2015 at 8:45 AM, Srinath Perera  wrote:

> Typically, graph are represented by list if vertices and list of edges.
>
> Each vertice can keep a list references to  incoming and outgoing edges
>
> On Thu, Jul 9, 2015 at 8:28 AM, Mohamed Fawzan  wrote:
>
>> Yes, we can track the added streams an throw an error when we get the
>> same stream more than once.
>>
>> One more question on building the graph, i am struggling to find a
>> optimal data structure to sotre the graph information, because unlike
>> regular graphs, a particular node in our graph will have two vertices
>> (input & output). Can you please tell me whether you have any particular
>> data structure in mind?
>>
>>
>> -Regards
>>
>>
>> On Thursday, July 9, 2015, Srinath Perera  wrote:
>>
>>> not often, as that will lead to circles. Can we detect and give a error
>>> when he try to add a stream to canvus.
>>>
>>> On Wed, Jul 8, 2015 at 7:16 PM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath,

 When we compose the query, Can we have the same stream appear twice in
 the canvas?

 -Regards



 On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan 
 wrote:

> Hi Srinath,
>
>
> I have removed the Drawing feature as I have encountered a bug, Looks
> like the 'click' event in d3 automatically triggers a 'drag' event as 
> well.
> I have tried to set a Flag and resolve the issue. But it seems that only
> Opera (Web Browser) has the issue. Chrome and FF works fine. I will update
> the draw feature and notify.
>
> -Regards
>
>
>
> On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera 
> wrote:
>
>> I tried to draw, but failed. Can you do a small screencast on how to
>> draw and connect.
>>
>> On current palette, everything looks same, we need to indicate
>> queries are different than other operators.
>>
>> --Srinath
>>
>> On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan 
>> wrote:
>>
>>> Hi Srinath,
>>>
>>> As per our discussion, I have modified the UI[1]
>>> . here is the list of updated features,
>>>
>>> 1. I have added an operator to compose queries. (icon : query).
>>> 2. Other operators can be dropped to query boxes(cannot dropped
>>> outside the query boxes), Also it can only be dragged inside query 
>>> boxes.
>>> 3. The query boxes itself can be dragged with operators.
>>> 4  IO Streams were re drawn.
>>>
>>>
>>> Please check & comment on it so that I can proceed with making the
>>> Graph. you can find the repo here [2]
>>> 
>>>
>>>
>>> [1] - http://vc.mutexlk.com
>>> [2] -
>>> https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language
>>>
>>> -Regards
>>>
>>>
>>>
>>> On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath,

 I have found a workaround for connecting elements with click &
 click. I will update the demo soon with the (progress of) improvements 
 we
 have discussed in the meeting on 19th.  .

 -Regards

 On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan 
 wrote:

> Hi Srinath.
>
> I have added support for large file names in the streams [1]
>   by showing the part of
> the stream name in the rectangle element. When you *hover *
> you can see the* full stream name. *Also when the user drag the
> element to the canvas, he get the same behavior their.
>
> Currently I'm working on connecting the elements. It is bit
> difficult. But I am close enough. I think i can present it by this 
> week.
>
> -Regards
>
> [1] - http://vc.mutexlk.com/dashboard.html
>
> On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan  > wrote:
>
>> Thanks.
>>
>>
>> On Friday, June 12, 2015, Srinath Perera 
>> wrote:
>>
>>> yes that is OK.
>>>
>>> On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan <
>>> fawz...@gmail.com> wrote:
>>>
 Yes. It is a good time. I can take the 6.00AM Train from kandy.
 Can reach colombo by 10.00 i guess. Is it o?


 On Friday, June 12, 2015, Mohamed Fawzan 
 wrote:

> Understood. Thanks Srinath.
>>

Re: [Dev] [ES] [AppM] 'Name' and 'Display Name' field in App Manager

2015-07-08 Thread Udara Rathnayake
Name is not unique in ES space. I can add any number of assets with the
same name(if the version is different)
UUID of an asset is the unique attribute. (or you can use name+version
similar to AM)

On Thu, Jul 9, 2015 at 2:49 AM, Sajith Ariyarathna 
wrote:

> Hi Chathura,
>
> IMO naming an unique attribute as "Name" is a bad practice. I think naming
> it as "App ID" or "Asset ID"or some other name which indicates attribute's
> uniqueness will be a better approach.
>
> Also name would give an incorrect message to the user since the value of
>> the name is visible to the user.
>>
> Instead of "Name, "Display Name" is always shown to the end-user in AppM
> store for both web apps and mobile apps. (see also [1]).
>
> Thanks & Regards.
>
> [1] https://wso2.org/jira/browse/APPM-1007
>
>
> On Wed, Jul 8, 2015 at 6:28 PM, Chathura Dilan  wrote:
>
>> Hi All,
>>
>> Default name field of an ES artifact is unique to the artifact. Once it
>> is added it cannot be edited. Since it is a name it should have edit
>> capability.
>>
>> Because of this limitation we had to introduced 'Display Name' to the
>> artifact in App Manager which can be edited.
>>
>> Name field is also part of the artifact identifier and it is used to
>> identify the different versions of artifacts.
>>
>> Problem here is if the DisplayName of the app completely change in a new
>> version, there will be a big difference between Name and the DisplayName
>> fields. Also name would give an incorrect message to the user since the
>> value of the name is visible to the user.
>>
>> Any ideas on that?
>>
>> Thanks,
>>
>> --
>> Regards,
>>
>> Chatura Dilan Perera
>> *(Senior Software Engineer** - WSO2 Inc.**)*
>> www.dilan.me
>>
>
>
>
> --
> Sajith Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> mobile: +94 77 6602284, +94 71 3951048
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge the PR

2015-07-08 Thread Rushmin Fernando
Done !

Thanks
Rushmin

On Tue, Jul 7, 2015 at 7:13 PM, Lakshani Gamage  wrote:

> Hi Rushmin,
>
> PR is updated as per code review suggestions. $subject.
>
> Thank You,
> Lakshani.
>
> On Tue, Jul 7, 2015 at 1:48 AM, Lakshani Gamage  wrote:
>
>> Hi Rushmin,
>>
>> These are the fixes[1] for Public Jiras[2] and [3]
>>
>> [1] https://github.com/wso2/carbon-appmgt/pull/80
>> [2] https://wso2.org/jira/browse/APPM-992
>> [3] https://wso2.org/jira/browse/APPM-347
>>
>> Thank you,
>> --
>> Lakshani Gamage
>>
>> *Software Engineer*
>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>



-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-08 Thread Srinath Perera
Typically, graph are represented by list if vertices and list of edges.

Each vertice can keep a list references to  incoming and outgoing edges

On Thu, Jul 9, 2015 at 8:28 AM, Mohamed Fawzan  wrote:

> Yes, we can track the added streams an throw an error when we get the same
> stream more than once.
>
> One more question on building the graph, i am struggling to find a optimal
> data structure to sotre the graph information, because unlike regular
> graphs, a particular node in our graph will have two vertices (input &
> output). Can you please tell me whether you have any particular data
> structure in mind?
>
>
> -Regards
>
>
> On Thursday, July 9, 2015, Srinath Perera  wrote:
>
>> not often, as that will lead to circles. Can we detect and give a error
>> when he try to add a stream to canvus.
>>
>> On Wed, Jul 8, 2015 at 7:16 PM, Mohamed Fawzan  wrote:
>>
>>> Hi Srinath,
>>>
>>> When we compose the query, Can we have the same stream appear twice in
>>> the canvas?
>>>
>>> -Regards
>>>
>>>
>>>
>>> On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath,


 I have removed the Drawing feature as I have encountered a bug, Looks
 like the 'click' event in d3 automatically triggers a 'drag' event as well.
 I have tried to set a Flag and resolve the issue. But it seems that only
 Opera (Web Browser) has the issue. Chrome and FF works fine. I will update
 the draw feature and notify.

 -Regards



 On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera 
 wrote:

> I tried to draw, but failed. Can you do a small screencast on how to
> draw and connect.
>
> On current palette, everything looks same, we need to indicate queries
> are different than other operators.
>
> --Srinath
>
> On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan 
> wrote:
>
>> Hi Srinath,
>>
>> As per our discussion, I have modified the UI[1]
>> . here is the list of updated features,
>>
>> 1. I have added an operator to compose queries. (icon : query).
>> 2. Other operators can be dropped to query boxes(cannot dropped
>> outside the query boxes), Also it can only be dragged inside query boxes.
>> 3. The query boxes itself can be dragged with operators.
>> 4  IO Streams were re drawn.
>>
>>
>> Please check & comment on it so that I can proceed with making the
>> Graph. you can find the repo here [2]
>> 
>>
>>
>> [1] - http://vc.mutexlk.com
>> [2] -
>> https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language
>>
>> -Regards
>>
>>
>>
>> On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan 
>> wrote:
>>
>>> Hi Srinath,
>>>
>>> I have found a workaround for connecting elements with click &
>>> click. I will update the demo soon with the (progress of) improvements 
>>> we
>>> have discussed in the meeting on 19th.  .
>>>
>>> -Regards
>>>
>>> On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath.

 I have added support for large file names in the streams [1]
   by showing the part of the
 stream name in the rectangle element. When you *hover *
 you can see the* full stream name. *Also when the user drag the
 element to the canvas, he get the same behavior their.

 Currently I'm working on connecting the elements. It is bit
 difficult. But I am close enough. I think i can present it by this 
 week.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan 
 wrote:

> Thanks.
>
>
> On Friday, June 12, 2015, Srinath Perera  wrote:
>
>> yes that is OK.
>>
>> On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan <
>> fawz...@gmail.com> wrote:
>>
>>> Yes. It is a good time. I can take the 6.00AM Train from kandy.
>>> Can reach colombo by 10.00 i guess. Is it o?
>>>
>>>
>>> On Friday, June 12, 2015, Mohamed Fawzan 
>>> wrote:
>>>
 Understood. Thanks Srinath.

 On Friday, June 12, 2015, Srinath Perera 
 wrote:

> Input and output streams are the same thing. Sometimes, a
> stream can be both inputs and outputs E.g. Stream 2.
>
> [image: Inline image 1]
>
> On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan <
> fawz...@gmail.com> wrote:
>
>> Hi Srinath,
>>
>> Can you please help me to understand the streams? I mean the 

Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-08 Thread Mohamed Fawzan
Yes, we can track the added streams an throw an error when we get the same
stream more than once.

One more question on building the graph, i am struggling to find a optimal
data structure to sotre the graph information, because unlike regular
graphs, a particular node in our graph will have two vertices (input &
output). Can you please tell me whether you have any particular data
structure in mind?


-Regards

On Thursday, July 9, 2015, Srinath Perera  wrote:

> not often, as that will lead to circles. Can we detect and give a error
> when he try to add a stream to canvus.
>
> On Wed, Jul 8, 2015 at 7:16 PM, Mohamed Fawzan  > wrote:
>
>> Hi Srinath,
>>
>> When we compose the query, Can we have the same stream appear twice in
>> the canvas?
>>
>> -Regards
>>
>>
>>
>> On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan > > wrote:
>>
>>> Hi Srinath,
>>>
>>>
>>> I have removed the Drawing feature as I have encountered a bug, Looks
>>> like the 'click' event in d3 automatically triggers a 'drag' event as well.
>>> I have tried to set a Flag and resolve the issue. But it seems that only
>>> Opera (Web Browser) has the issue. Chrome and FF works fine. I will update
>>> the draw feature and notify.
>>>
>>> -Regards
>>>
>>>
>>>
>>> On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera >> > wrote:
>>>
 I tried to draw, but failed. Can you do a small screencast on how to
 draw and connect.

 On current palette, everything looks same, we need to indicate queries
 are different than other operators.

 --Srinath

 On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan >>> > wrote:

> Hi Srinath,
>
> As per our discussion, I have modified the UI[1]
> . here is the list of updated features,
>
> 1. I have added an operator to compose queries. (icon : query).
> 2. Other operators can be dropped to query boxes(cannot dropped
> outside the query boxes), Also it can only be dragged inside query boxes.
> 3. The query boxes itself can be dragged with operators.
> 4  IO Streams were re drawn.
>
>
> Please check & comment on it so that I can proceed with making the
> Graph. you can find the repo here [2]
> 
>
>
> [1] - http://vc.mutexlk.com
> [2] -
> https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language
>
> -Regards
>
>
>
> On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan  > wrote:
>
>> Hi Srinath,
>>
>> I have found a workaround for connecting elements with click & click.
>> I will update the demo soon with the (progress of) improvements we have
>> discussed in the meeting on 19th.  .
>>
>> -Regards
>>
>> On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan > > wrote:
>>
>>> Hi Srinath.
>>>
>>> I have added support for large file names in the streams [1]
>>>   by showing the part of the
>>> stream name in the rectangle element. When you *hover *
>>> you can see the* full stream name. *Also when the user drag the
>>> element to the canvas, he get the same behavior their.
>>>
>>> Currently I'm working on connecting the elements. It is bit
>>> difficult. But I am close enough. I think i can present it by this week.
>>>
>>> -Regards
>>>
>>> [1] - http://vc.mutexlk.com/dashboard.html
>>>
>>> On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan >> > wrote:
>>>
 Thanks.


 On Friday, June 12, 2015, Srinath Perera >>> > wrote:

> yes that is OK.
>
> On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan  > wrote:
>
>> Yes. It is a good time. I can take the 6.00AM Train from kandy.
>> Can reach colombo by 10.00 i guess. Is it o?
>>
>>
>> On Friday, June 12, 2015, Mohamed Fawzan 
>> wrote:
>>
>>> Understood. Thanks Srinath.
>>>
>>> On Friday, June 12, 2015, Srinath Perera 
>>> wrote:
>>>
 Input and output streams are the same thing. Sometimes, a
 stream can be both inputs and outputs E.g. Stream 2.

 [image: Inline image 1]

 On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan <
 fawz...@gmail.com> wrote:

> Hi Srinath,
>
> Can you please help me to understand the streams? I mean the 
> InputOutputNode
> in.
>
>
> InputOutputNode : {
>
> connectionName : 'StockQuoteStream',
>
> connectionType :'Stream',
>
> connectionTypeDetails : 'para1:string, para2:int'
>
> }
>
>
> In the la

Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-08 Thread Srinath Perera
not often, as that will lead to circles. Can we detect and give a error
when he try to add a stream to canvus.

On Wed, Jul 8, 2015 at 7:16 PM, Mohamed Fawzan  wrote:

> Hi Srinath,
>
> When we compose the query, Can we have the same stream appear twice in the
> canvas?
>
> -Regards
>
>
>
> On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan  wrote:
>
>> Hi Srinath,
>>
>>
>> I have removed the Drawing feature as I have encountered a bug, Looks
>> like the 'click' event in d3 automatically triggers a 'drag' event as well.
>> I have tried to set a Flag and resolve the issue. But it seems that only
>> Opera (Web Browser) has the issue. Chrome and FF works fine. I will update
>> the draw feature and notify.
>>
>> -Regards
>>
>>
>>
>> On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera  wrote:
>>
>>> I tried to draw, but failed. Can you do a small screencast on how to
>>> draw and connect.
>>>
>>> On current palette, everything looks same, we need to indicate queries
>>> are different than other operators.
>>>
>>> --Srinath
>>>
>>> On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath,

 As per our discussion, I have modified the UI[1]
 . here is the list of updated features,

 1. I have added an operator to compose queries. (icon : query).
 2. Other operators can be dropped to query boxes(cannot dropped outside
 the query boxes), Also it can only be dragged inside query boxes.
 3. The query boxes itself can be dragged with operators.
 4  IO Streams were re drawn.


 Please check & comment on it so that I can proceed with making the
 Graph. you can find the repo here [2]
 


 [1] - http://vc.mutexlk.com
 [2] -
 https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language

 -Regards



 On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan 
 wrote:

> Hi Srinath,
>
> I have found a workaround for connecting elements with click & click.
> I will update the demo soon with the (progress of) improvements we have
> discussed in the meeting on 19th.  .
>
> -Regards
>
> On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan 
> wrote:
>
>> Hi Srinath.
>>
>> I have added support for large file names in the streams [1]
>>   by showing the part of the
>> stream name in the rectangle element. When you *hover *
>> you can see the* full stream name. *Also when the user drag the
>> element to the canvas, he get the same behavior their.
>>
>> Currently I'm working on connecting the elements. It is bit
>> difficult. But I am close enough. I think i can present it by this week.
>>
>> -Regards
>>
>> [1] - http://vc.mutexlk.com/dashboard.html
>>
>> On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan 
>> wrote:
>>
>>> Thanks.
>>>
>>>
>>> On Friday, June 12, 2015, Srinath Perera  wrote:
>>>
 yes that is OK.

 On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan 
 wrote:

> Yes. It is a good time. I can take the 6.00AM Train from kandy.
> Can reach colombo by 10.00 i guess. Is it o?
>
>
> On Friday, June 12, 2015, Mohamed Fawzan 
> wrote:
>
>> Understood. Thanks Srinath.
>>
>> On Friday, June 12, 2015, Srinath Perera 
>> wrote:
>>
>>> Input and output streams are the same thing. Sometimes, a stream
>>> can be both inputs and outputs E.g. Stream 2.
>>>
>>> [image: Inline image 1]
>>>
>>> On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan <
>>> fawz...@gmail.com> wrote:
>>>
 Hi Srinath,

 Can you please help me to understand the streams? I mean the 
 InputOutputNode
 in.


 InputOutputNode : {

 connectionName : 'StockQuoteStream',

 connectionType :'Stream',

 connectionTypeDetails : 'para1:string, para2:int'

 }


 In the layout[1]  I have 
 considered Input & Output streams as separate things. Is it 
 correct ? or else are they belong to same category?


 -Regards


 [1]-http://vc.mutexlk.com/dashboard.html


 On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan <
 fawz...@gmail.com> wrote:

> Hi,
>
>
>
> On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera <
> srin...@wso2.com> wrote:

Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-08 Thread Saneth Dharmakeerthi
Hi Evanthika,

Why is service is deactivation is not a failover scenario?, The
main problem here is the server return HTTP 200 for a URL which is not
there. Here there might not be problem in Failover function, but as i see
there is issue with web application deployment function. After web
application un-deploy if we access the web application why it navigate to
carbon login page ? we can't expect all the time client side to use a
web browser to  assess a web application. In our case the web app is a REST
web service where it is accessed by a Java client or CURL.



Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Wed, Jul 8, 2015 at 6:54 PM, Lasitha Deergawansa 
wrote:

> I have tried this with different servers as backends  and failover
> endpoint function is working fine.
>
> On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri 
> wrote:
>
>> I got Lasitha's web apps and tried to recreate the issue.
>>
>> In his scenario, he's deactivating the service from the UI. Once the
>> service is deactivated, when you send a request to that endpoint, it
>> redirects you to the Carbon login page with a HTTP 200 OK.
>>
>> Response headers:
>> HTTP/1.1 200 OK
>> Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/; Secure;
>> HttpOnly
>> X-FRAME-OPTIONS: DENY
>> Content-Type: text/html;charset=UTF-8
>> Content-Language: en-US
>> Transfer-Encoding: chunked
>> Vary: Accept-Encoding
>> Date: Wed, 08 Jul 2015 12:18:01 GMT
>> Server: WSO2 Carbon Server
>>
>> So it actually does not consider it as a failed scenario. That is why
>> it's not failing over.
>>
>> @Lasith, could you kindly try with an actual scenario where the endpoint
>> fails?
>>
>> Regards,
>> Evanthika
>>
>> On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm in process of automating Failover end point function test case -
>>> APIM-45  [1] and figured out the Failover Endpoint function is not working
>>> in APIM 1.9.0. This is a blocker for the completion of the test case.
>>> Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]
>>>
>>> Steps to recreate:
>>> 1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
>>> Endpoint" with a production endpoint and multiple production failover
>>> endpoints.
>>> 2. Send a request to the API and it will correctly invoked the
>>> production end point.
>>> 3. Make the production end point unavailable and send the request again
>>> 4. No response from the API.
>>>
>>>
>>>
>>>
>>> [1]
>>> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
>>> [2] https://wso2.org/jira/browse/APIMANAGER-3967
>>>
>>>
>>>
>>> Thanks & Best Regards,
>>> Lasitha.
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] Error while trying to create a Dataset

2015-07-08 Thread Nirmal Fernando
Hi Thushan,

I checked the H2O class loading issue you faced, and seems you need to use
the h2o single jar for the time being
http://h2o-release.s3.amazonaws.com/h2o/rel-shannon/26/index.html

The ideal solution is to create proper osgi bundles for necessary H2O jars,
which we can do once we do the merging. Please make a note.

On Wed, Jul 8, 2015 at 12:21 PM, Nirmal Fernando  wrote:

> Great!
>
> On Wed, Jul 8, 2015 at 12:05 PM, Thushan Ganegedara 
> wrote:
>
>> Hi,
>>
>> Never mind!. A clean install did the trick.
>>
>> On Wed, Jul 8, 2015 at 4:12 PM, Thushan Ganegedara 
>> wrote:
>>
>>> Hi,
>>>
>>> I'll got an update and built it. But now getting a new error during the
>>> startup of WSO2Server
>>>
>>> [2015-07-08 16:07:46,617] ERROR
>>> {org.wso2.carbon.ndatasource.core.internal.DataS
>>> ourceServiceComponent} -  Error in intializing system data sources:
>>> Error in ini
>>> tializing system data sources: Error in initializing system data sources
>>> at 'C:\
>>>
>>> Users\Thush\Documents\NetBeansProjects\WSO2-ML\wso2ml-1.0.0-SNAPSHOT\repository\
>>> conf\datasources\analytics-datasources.xml' - Error in loading data
>>> source provi
>>> der: org.wso2.carbon.datasource.reader.hadoop.HDFSDataSourceReader
>>> cannot be fou
>>> nd by org.wso2.carbon.ndatasource.core_4.4.0
>>> org.wso2.carbon.ndatasource.common.DataSourceException: Error in
>>> initializing system data sources: Error in initializing system data
>>> sources at 'C:\...\WSO2-ML\wso2ml-1.0.0-SNAPSHOT\repository\conf\datasou
>>> rces\analytics-datasources.xml' - Error in loading data source provider:
>>> org.wso
>>> 2.carbon.datasource.reader.hadoop.HDFSDataSourceReader cannot be found
>>> by org.ws
>>> o2.carbon.ndatasource.core_4.4.0
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSour
>>> ces(DataSourceManager.java:168)
>>> at
>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.
>>> initSystemDataSources(DataSourceServiceComponent.java:192)
>>> at
>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.
>>> setSecretCallbackHandlerService(DataSourceServiceComponent.java:178)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(Compone
>>> ntReference.java:376)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindRefere
>>> nce(ServiceComponentProp.java:430)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(Servi
>>> ceComponentProp.java:218)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(Serv
>>> iceComponentProp.java:343)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(Instan
>>> ceProcess.java:620)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(Insta
>>> nceProcess.java:197)
>>> at
>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:34
>>> 3)
>>> at
>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.
>>> java:222)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.ser
>>> viceChanged(FilteredServiceListener.java:107)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEv
>>> ent(BundleContextImpl.java:861)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
>>> anager.java:230)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchr
>>> onous(ListenerQueue.java:148)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServ
>>> iceEventPrivileged(ServiceRegistry.java:819)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServ
>>> iceEvent(ServiceRegistry.java:771)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.reg
>>> ister(ServiceRegistrationImpl.java:130)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerSer
>>> vice(ServiceRegistry.java:214)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerSe
>>> rvice(BundleContextImpl.java:433)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerSe
>>> rvice(BundleContextImpl.java:451)
>>> at
>>> org.wso2.carbon.securevault.internal.SecretManagerInitializerComponen
>>> t.activate(SecretManagerInitializerComponent.java:48)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc

Re: [Dev] Fwd: Governance registry Endpoint collection not created by default

2015-07-08 Thread Viraj Rajaguru
Hi John,

On Wed, Jul 8, 2015 at 4:10 PM, John Hawkins  wrote:

> I'm following our ESB lab and in lab 14 (embedded registry) it tells me to
> 1) create a new registry resource project
> 2) create a new address endpoint
> 3) make it a dynamic endpoint
> 4) select the registry project I just created
> 5) target to the governance registry/endpoints path
>
> However - when i follow those steps, there is no "endpoints" path. So I'm
> wondering how to get that endpoints path. You seem to say that it's created
> automatically - but how does that work in this case?
>

I would split your step 5 into two steps.
5.1 - Target to the governance registry and click OK(See attached
"selectParent.png").
Still there is no "endpoints" collection under governance registry and
there will be only event, permission, repository and trunk collections.
Once you select the governance registry and click OK, content of "Registry
Path" text box will be "gov:"

5.2 Then add "/endpoints" string part at the end of "gov:" manually and
click finish.
When you click finish, the content of "Registry Path" text box should be
"gov:/endpoints". Please note that still there is no collection called
"endpoints" in the governance registry.  As Kishanthan mentioned in his
previous comment, while the deployment of this endpoint(registry resource),
a collection called "endpoints" will be created inside the governance
registry and this endpoint will be deployed to "gov:/endpoints" path.
(Additionally, if you set "gov:/foo/bar" as the registry path from
Developer Studio, while the deployment "foo" & "bar" collections will be
created)

Thanks,
Viraj.

>
> many thanks,
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Wed, Jul 8, 2015 at 10:42 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi John,
>>
>> Are you trying out the registry resource project from dev-studio? If
>> there are endpoints added under a specific registry path, then it should be
>> created automatically at ESB when you deploy registry resource project from
>> dev-studio.
>>
>> But by default - event, permission, repository and trunk collections are
>> found under the governance collection. And any newly added collections from
>> dev-studio will be added to ESB registry space by deploying the registry
>> resource project.
>>
>> Let me also add some dev-studio team members to this thread to get some
>> better responses, if the above does not provide information on what you
>> seek.
>>
>> Thanks,
>>
>> On Wed, Jul 8, 2015 at 2:42 PM, John Hawkins  wrote:
>>
>>> Hi Folks,
>>> any thoughts on this - is it a bug or expected behaviour ?
>>>
>>> many thanks,
>>>
>>> John,
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> On Mon, Jul 6, 2015 at 10:59 AM, John Hawkins  wrote:
>>>
 Hi Folks,

 Using the ESB v4.8.1; I've just created a new governance registry using
 dev studio v3.7.1 and I see that it's created the collections: event,
 permission, repository and trunk collections under the governance context.
 But, it hasn't created the endpoint collection though. Should it have done?
 And, if I have to create it manually, are there any instructions on what
 has to go under the governance/endpoints/ collection?

 many thanks,
 John.

 John Hawkins
 Director: Solutions Architecture


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


-- 
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com

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


Re: [Dev] [ES] [AppM] 'Name' and 'Display Name' field in App Manager

2015-07-08 Thread Sajith Ariyarathna
Hi Chathura,

IMO naming an unique attribute as "Name" is a bad practice. I think naming
it as "App ID" or "Asset ID"or some other name which indicates attribute's
uniqueness will be a better approach.

Also name would give an incorrect message to the user since the value of
> the name is visible to the user.
>
Instead of "Name, "Display Name" is always shown to the end-user in AppM
store for both web apps and mobile apps. (see also [1]).

Thanks & Regards.

[1] https://wso2.org/jira/browse/APPM-1007


On Wed, Jul 8, 2015 at 6:28 PM, Chathura Dilan  wrote:

> Hi All,
>
> Default name field of an ES artifact is unique to the artifact. Once it is
> added it cannot be edited. Since it is a name it should have edit
> capability.
>
> Because of this limitation we had to introduced 'Display Name' to the
> artifact in App Manager which can be edited.
>
> Name field is also part of the artifact identifier and it is used to
> identify the different versions of artifacts.
>
> Problem here is if the DisplayName of the app completely change in a new
> version, there will be a big difference between Name and the DisplayName
> fields. Also name would give an incorrect message to the user since the
> value of the name is visible to the user.
>
> Any ideas on that?
>
> Thanks,
>
> --
> Regards,
>
> Chatura Dilan Perera
> *(Senior Software Engineer** - WSO2 Inc.**)*
> www.dilan.me
>



-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Pull Request

2015-07-08 Thread Malaka Silva
Thx Merged

On Wed, Jul 8, 2015 at 6:11 PM, Vanii Thiyagarajah  wrote:

> Hi Malaka,
>
> I have changed the README.txt,HTTP endpoints and templates in foursquare
> connector. Now all methods are working fine with Beta. Please find the PR[1]
>
> [1]https://github.com/wso2/esb-connectors/pull/228
>
> Thank you.
>



-- 

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/


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


[Dev] WSO2 Data Analytics Server 3.0.0 Beta Released!

2015-07-08 Thread Gokul Balakrishnan
Hi all,

The WSO2 DAS team is pleased to announce the beta release of WSO2 DAS
3.0.0. The distribution is available for download here
.

The release includes the following bug fixes, improvements, and tasks:

Bug Fixes

   - [BAM-1962 ] - License issue in
   org.wso2.carbon.analytics.message.tracer.handler.feature
   - [BAM-2033 ] - Graceful Shutdown
   and Graceful Restart not working
   - [BAM-2034 ] - WSO2 DAS doesnt
   work properly when started with an offset
   - [BAM-2035 ] - Event Stream
   simulator doesn't work and throwing java.lang.ClassCastException in console
   - [BAM-2036 ] - Date and other
   fields are showing as null in application and system logs
   - [BAM-2037 ] - Cannot login to
   the Dashboard when server start with offset
   - [BAM-2038 ] - Table Name, By
   Date Range, By Query fields are getting moved when select the By Facet
   values
   - [BAM-2043 ] - Need to change
   the deployment directory folder structure
   - [BAM-2045 ] - NPE when starting
   Gadget generation wizard
   - [BAM-2046 ] - Persist attribute
   ticks are not retain in the UI
   - [BAM-2047 ] - Unused folders
   inside dep/server folder
   - [BAM-2050 ] - Unable to start
   two DAS instances in the same machine with offset
   - [BAM-2053 ] - [UI] Data purging
   lands browser on blank page
   - [BAM-2054 ] - Purging Data
   Failed with OutOfMemoryError
   - [BAM-2055 ] - [Intermittent]
   Purging fails with BatchUpdateException on MySQL
   - [BAM-2056 ] - [UI] Adding JMX
   Server profile fails
   - [BAM-2057 ] - Cannot update the
   Analytic Script information, when added a wrong cron job value
   - [BAM-2058 ] - Spark script was
   not deployed when included in CAR
   - [BAM-2060 ] - Cannot retrieve
   table data by giving 'from' 'to' time-stamp
   - [BAM-2065 ] - Event Tracer does
   not work properly
   - [BAM-2068 ] - New Dashboard
   pages get duplicate content as the first page
   - [BAM-2071 ] - Include 'Complex
   Event Processor' Server Role
   - [BAM-2076 ] - Error when using
   the analytics API in remote mode with HTTPS protocol.
   - [BAM-2078 ] - Remove streaming
   events from spark feaure to different bundle from spark.core.
   - [BAM-2080 ] - Back up tool does
   not back up data batch wise
   - [BAM-2084 ] - Introduce
   syncing/flushing for the HDFS Analytics file system

Improvements

   - [BAM-2022 ] - Enable custom
   UDFs for DAS
   - [BAM-2028 ] - Tune the Spark
   configurations in DAS for best performance
   - [BAM-2029 ] - Implement
   multiple data sources in DAS
   - [BAM-2030 ] - Implement custom
   analyzer support in spark using registry lookup
   - [BAM-2048 ] - Add secure vault
   support to analytics API configuration
   - [BAM-2074 ] - Event sink to
   store only one event when Realtime (CEP) within DAS is configured in HA mode
   - [BAM-2075 ] - Make event sink
   related parameters configurable with configuration file, and have a worker
   pool to store the events received.
   - [BAM-2077 ] - Introducing AUTO
   mode in carbon analytics API to switch between LOCAL and REMOTE
   automatically.
   - [BAM-2079 ] - Search a field by
   its whole content to match the exact content
   - [BAM-2082 ] - Multiple Record
   Store Support
   - [BAM-2083 ] - Refactor HBase
   Analytics Datastore to remove obsolete operations
   - [BAM-2085 ] - Add CEP Execution
   Manager feature to DAS pack

Tasks

   - [BAM-2064 ] - Rename

Re: [Dev] Please merge the carbon4-kernel integration test commit#287

2015-07-08 Thread KasunG Gajasinghe
Merged.

On Wed, Jul 8, 2015 at 6:21 PM, Nuwan Wimalasekara  wrote:

> Hi Carbon Team,
>
> Please merge the pull request
> https://github.com/wso2/carbon4-kernel/pull/287
>
> Thanks,
> Nuwanw
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NTASK ERROR - No available task nodes for resolving a task location

2015-07-08 Thread Senduran Balasubramaniyam
Hi Malaka,

Initially we have started all the three nodes as mangers, and got the
exception. After Chanaka's suggestion we restarted two nodes with the
'DworkerNode=true'
parameter. And when we schedule the task we worked.

Thanks
Senduran

On Tue, Jul 7, 2015 at 7:12 PM, Malaka Silva  wrote:

> Hi Senduran,
>
> Did you observer this error only when manager is started first?
>
> On Wed, Jul 8, 2015 at 2:52 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Chanaka,
>>
>> Thank you,  yes once we started the nodes as workers(2 nodes) it worked.
>>
>> Thanks
>> Senduran
>>
>> On Mon, Jul 6, 2015 at 8:50 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Senduran,
>>>
>>> How did you start the nodes? You need to have 1 manager node and other
>>> nodes should be started with 'DworkerNode=true' parameter as worker nodes.
>>> Basically, task will be run on the worker nodes only.
>>>
>>> Thanks,
>>> Chanaka
>>>
>>> On Tue, Jul 7, 2015 at 5:29 AM, Senduran Balasubramaniyam <
>>> sendu...@wso2.com> wrote:
>>>
 Hi Anjana,

 I have a three node ESB cluster, when I try to schedule a task I am
 getting the  following exception. But all the nodes are up and running.

 TID: [-1234] [] [2015-07-06 23:47:30,536] ERROR
 {org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduling task
 [[NTask::-1234::task_abc]::synapse.simple.quartz] FAILED. Error: No
 available task nodes for resolving a task location
 {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
 org.wso2.carbon.ntask.common.TaskException: No available task nodes for
 resolving a task location
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getTaskLocation(ClusteredTaskManager.java:224)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)

 When I try to pinned the server (with IP address ) I am getting the
 following
 Server name not in pinned servers list. Not starting Task : task_abc
 {org.apache.synapse.startup.quartz.StartUpController}

 Could you please suggest me a to fix this


 Regards
 Senduran


 On Wed, May 27, 2015 at 8:00 AM, Anjana Fernando 
 wrote:

> Hi Malaka,
>
> This is not a bug, but as the message says, this is because, in your
> "manager" node, which I guess, did not register the task type, so it will
> not participate in executing the tasks, but it can register and schedule
> tasks to be run in other nodes. So if this manager node registers and 
> gives
> a command to say "schedule", it will look in the cluster for possible
> workers to schedule and execute the task. If there aren't any workers
> (nodes which has registered that task type) available, it will give this
> error saying, the task could not be registered, which is what should be
> done, or else, the caller will get a false confirmation saying, the task 
> is
> scheduled and running.
>
> So basically the point is, before a task is "scheduled", we have to
> make sure, possible workers are there to run it.
>
> Cheers,
> Anjana.
>
> On Wed, May 27, 2015 at 10:59 AM, Malaka Silva 
> wrote:
>
>> Hi,
>>
>> While checking the tasks observer the following error.
>>
>> This happens only when scheduling a task from manager. My
>> understanding was NTASK have the same behavior in manager and worker 
>> nodes.
>> Is it the case?
>>
>> This happens because in the following code. When starting manager
>> node memberlist is empty. But starting a worker first, member list 
>> contains
>> that member.
>>
>> I guess this is a bug?
>>
>> This will not effect the functionality in ESB however error is
>> printed on startup.
>>
>> TaskServiceContext ctx = this.getTaskServiceContext();
>> if (ctx.getServerCount() == 0) {
>> throw new TaskException("No available task nodes for
>> resolving a task location",
>> Code.TASK_NODE_NOT_AVAILABLE);
>> }
>>
>> [1]
>> https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/impl/clustered/ClusteredTaskManager.java
>> [2]
>> https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskServiceContext.java
>>
>>
>> [2015-05-27 09:39:42,807] ERROR - NTaskTaskManager Scheduling task
>> [[NTask::-1234::file-FILE--SYNAPSE_INBOUND_ENDPOINT]::FILE--SYNAPSE_INBOUND_ENDPO

[Dev] [AppM]Please review and merge PR for APPM-1016

2015-07-08 Thread Sajith Abeywardhana
Hi Team,

Please merge https://github.com/wso2/carbon-appmgt/pull/88 for
https://wso2.org/jira/browse/APPM-1016

*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
Email: saji...@wso2.com  | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppM]Please review and merge PR for APPM-1015

2015-07-08 Thread Sajith Abeywardhana
Hi Team,

Please merge https://github.com/wso2/carbon-appmgt/pull/87 for
https://wso2.org/jira/browse/APPM-1015

*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
Email: saji...@wso2.com  | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-08 Thread Mohamed Fawzan
Hi Srinath,

When we compose the query, Can we have the same stream appear twice in the
canvas?

-Regards



On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan  wrote:

> Hi Srinath,
>
>
> I have removed the Drawing feature as I have encountered a bug, Looks like
> the 'click' event in d3 automatically triggers a 'drag' event as well. I
> have tried to set a Flag and resolve the issue. But it seems that only
> Opera (Web Browser) has the issue. Chrome and FF works fine. I will update
> the draw feature and notify.
>
> -Regards
>
>
>
> On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera  wrote:
>
>> I tried to draw, but failed. Can you do a small screencast on how to draw
>> and connect.
>>
>> On current palette, everything looks same, we need to indicate queries
>> are different than other operators.
>>
>> --Srinath
>>
>> On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan  wrote:
>>
>>> Hi Srinath,
>>>
>>> As per our discussion, I have modified the UI[1] .
>>> here is the list of updated features,
>>>
>>> 1. I have added an operator to compose queries. (icon : query).
>>> 2. Other operators can be dropped to query boxes(cannot dropped outside
>>> the query boxes), Also it can only be dragged inside query boxes.
>>> 3. The query boxes itself can be dragged with operators.
>>> 4  IO Streams were re drawn.
>>>
>>>
>>> Please check & comment on it so that I can proceed with making the
>>> Graph. you can find the repo here [2]
>>> 
>>>
>>>
>>> [1] - http://vc.mutexlk.com
>>> [2] -
>>> https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language
>>>
>>> -Regards
>>>
>>>
>>>
>>> On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath,

 I have found a workaround for connecting elements with click & click. I
 will update the demo soon with the (progress of) improvements we have
 discussed in the meeting on 19th.  .

 -Regards

 On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan 
 wrote:

> Hi Srinath.
>
> I have added support for large file names in the streams [1]
>   by showing the part of the
> stream name in the rectangle element. When you *hover *
> you can see the* full stream name. *Also when the user drag the
> element to the canvas, he get the same behavior their.
>
> Currently I'm working on connecting the elements. It is bit difficult.
> But I am close enough. I think i can present it by this week.
>
> -Regards
>
> [1] - http://vc.mutexlk.com/dashboard.html
>
> On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan 
> wrote:
>
>> Thanks.
>>
>>
>> On Friday, June 12, 2015, Srinath Perera  wrote:
>>
>>> yes that is OK.
>>>
>>> On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan 
>>> wrote:
>>>
 Yes. It is a good time. I can take the 6.00AM Train from kandy. Can
 reach colombo by 10.00 i guess. Is it o?


 On Friday, June 12, 2015, Mohamed Fawzan  wrote:

> Understood. Thanks Srinath.
>
> On Friday, June 12, 2015, Srinath Perera  wrote:
>
>> Input and output streams are the same thing. Sometimes, a stream
>> can be both inputs and outputs E.g. Stream 2.
>>
>> [image: Inline image 1]
>>
>> On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan <
>> fawz...@gmail.com> wrote:
>>
>>> Hi Srinath,
>>>
>>> Can you please help me to understand the streams? I mean the 
>>> InputOutputNode
>>> in.
>>>
>>>
>>> InputOutputNode : {
>>>
>>> connectionName : 'StockQuoteStream',
>>>
>>> connectionType :'Stream',
>>>
>>> connectionTypeDetails : 'para1:string, para2:int'
>>>
>>> }
>>>
>>>
>>> In the layout[1]  I have 
>>> considered Input & Output streams as separate things. Is it correct 
>>> ? or else are they belong to same category?
>>>
>>>
>>> -Regards
>>>
>>>
>>> [1]-http://vc.mutexlk.com/dashboard.html
>>>
>>>
>>> On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan <
>>> fawz...@gmail.com> wrote:
>>>
 Hi,



 On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera <
 srin...@wso2.com> wrote:

> Need names inside canvas as well. ( need to handle large
> names).
>
> What are the children of streams? attributes?
>
 I was planning to categorize streams there. Please see the
 updated names here[1]. 

>>>

Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-08 Thread Lasitha Deergawansa
I have tried this with different servers as backends  and failover endpoint
function is working fine.

On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri 
wrote:

> I got Lasitha's web apps and tried to recreate the issue.
>
> In his scenario, he's deactivating the service from the UI. Once the
> service is deactivated, when you send a request to that endpoint, it
> redirects you to the Carbon login page with a HTTP 200 OK.
>
> Response headers:
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/; Secure;
> HttpOnly
> X-FRAME-OPTIONS: DENY
> Content-Type: text/html;charset=UTF-8
> Content-Language: en-US
> Transfer-Encoding: chunked
> Vary: Accept-Encoding
> Date: Wed, 08 Jul 2015 12:18:01 GMT
> Server: WSO2 Carbon Server
>
> So it actually does not consider it as a failed scenario. That is why it's
> not failing over.
>
> @Lasith, could you kindly try with an actual scenario where the endpoint
> fails?
>
> Regards,
> Evanthika
>
> On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa 
> wrote:
>
>> Hi All,
>>
>> I'm in process of automating Failover end point function test case -
>> APIM-45  [1] and figured out the Failover Endpoint function is not working
>> in APIM 1.9.0. This is a blocker for the completion of the test case.
>> Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]
>>
>> Steps to recreate:
>> 1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
>> Endpoint" with a production endpoint and multiple production failover
>> endpoints.
>> 2. Send a request to the API and it will correctly invoked the production
>> end point.
>> 3. Make the production end point unavailable and send the request again
>> 4. No response from the API.
>>
>>
>>
>>
>> [1]
>> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
>> [2] https://wso2.org/jira/browse/APIMANAGER-3967
>>
>>
>>
>> Thanks & Best Regards,
>> Lasitha.
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Class Loading issue in Jaggery, Carbon 4.4.0

2015-07-08 Thread Kishanthan Thangarajah
We have to debug and find the root cause for this Ruwan.

On Wed, Jul 8, 2015 at 11:35 AM, Ruwan Abeykoon  wrote:

> Hi Kishanthan,
>
> Adding  "org.wso2.carbon.governance.metadata.server.feature" did not
> resolve the issue. Still I get the above error on around 50% of restarts.
>
> Cheers,
> Ruwan
>
> On Mon, Jul 6, 2015 at 3:09 PM, Ruwan Abeykoon  wrote:
>
>> Hi Kishanthan,
>> I agree your point about CNF error.
>>
>> I have added "org.wso2.carbon.governance.metadata.server.feature", which
>> seems to export a bundle having the above package, to my p2-profile-gen.  I
>> did not encounter the issue (at least for few restarts) since then. Not
>> sure this is of any significance.
>>
>> I will post an update if this is a permanent fix.
>>
>> However I do not understand why it used to work intermittently without
>> adding the "org.wso2.carbon.governance.metadata.server.feature".
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jul 6, 2015 at 2:54 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> If its CNF related, then there should at-least be a log at the back-end.
>>> Can you check the carbon log file? Sometimes, errors may be logged at file
>>> only instead of console. If nothing is there, then we need to debug and
>>> see. The root cause may not be directly related to "
>>> org.wso2.carbon.governance.api.generic" package.
>>>
>>> On Mon, Jul 6, 2015 at 2:02 PM, Ruwan Abeykoon  wrote:
>>>
 Hi Kishanthan,
 There is no error printed on the backend console. The http handler
 silently failed at the above point on the jag file. (The HTTP socket get
 closed)

 I suspect the class not found/class initialization error as there is no
 other possible cause I could think of.
 Also something like the following in place of offending line works
 without any issue on every restart.

 new java.lang.Runnable({});

 Thats why i suspect it s a classloader issue as Runnable is from java
 runtime whereas GenericArtifactFilter is loaded via OSGI.

 Cheers,
 Ruwan

 On Mon, Jul 6, 2015 at 1:44 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

>
>
> On Sun, Jul 5, 2015 at 11:14 AM, Ruwan Abeykoon 
> wrote:
>
>> Hi All,
>> While upgrading AppManager to use Carbon 4.4.0, I encountered a
>> roadblock in classloading.
>>
>> I have a jag file with the following method, (which is simplified
>> version of actual function). At some times the line works correctly and
>> sometimes it fails silently.
>>
>
> What is the error at the back end? CNF?
>
>
>>
>> var genericArtifactFilter = new
>> org.wso2.carbon.governance.api.generic.GenericArtifactFilter(
>> {});
>>
>> This seems like a classloader issue in OSGI, most probably duplicate
>> or incorrect exports by some bundle. However I could not figure out what 
>> is
>> the exact cause.
>>
>>
>> Can anyone shed some light please.
>>
>> Carbon 4.4.0
>> Governance 4.5.1
>> Registry 4.4.3
>> Jaggery 0.10.1
>>
>> OSGI console prints the correct bundle without any apparent error.
>>
>> osgi> p org.wso2.carbon.governance.api.generic
>> org.wso2.carbon.governance.api.generic;
>> version="4.5.1"
>>   js_1.7.0.R4wso2v1 [63] imports
>>   org.jaggeryjs.scriptengine_0.10.0 [152] imports
>>   org.wso2.carbon.appmgt.hostobjects_1.1.0.SNAPSHOT [172] imports
>>   org.wso2.carbon.appmgt.keymgt_1.1.0.SNAPSHOT [174] imports
>>   org.wso2.carbon.appmgt.mobile_1.1.0.SNAPSHOT [178] imports
>>   org.wso2.carbon.governance.generic_4.5.1 [224] imports
>>   org.wso2.carbon.governance.list_4.5.1 [230] imports
>>   org.wso2.carbon.registry.core_4.4.0 [379] imports
>>   tomcat_7.0.59.wso2v1 [500] imports
>>
>>
>> Cheers,
>> Ruwan
>>
>>
>>
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>> phone:(+94) 39736
>>
>> ___
>> 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
> *
>



 --

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

 email: ruw...@wso2.com
 phone:(+94) 39736

 ___
 Dev mailing list
 Dev@wso2.org
 htt

[Dev] [CEP][HA] How to determine the node with the lock after Hazelcast split merge

2015-07-08 Thread Ramindu De Silva
Hi all,

When there is a network failure within the two CEP nodes in HA mode (active
- passive), after the heartbeat interval, both nodes consider that the
other member has left the hazelcast cluster and they both start acting as
the active node. But when the network becomes stable again also, both CEP
nodes still act as active since there is no way of determining the node
with the active lock.

Is theres a possibility where i can determine which node holds the active
lock after the network becomes stable?

Any help regarding this scenario will be greatly appreciated.

Best Regards,

-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Deploying an ESB Connector with a cApp?

2015-07-08 Thread Shakila Sivagnanarajah
Hi all,

I have done the connector deployment from CApp.

Thank you

On Wed, Jul 8, 2015 at 10:25 AM, Shakila Sivagnanarajah 
wrote:

> Hi all,
>
> Please find the CApp [1].
>
> This is my progress:
>
> 1. I added the connector zip in to the CApp as an artifact and specified
> the artifact type as "zip".
> 2. As the same way to deploy the artifact, I have implemented a method to
> deploy the synapse library in [2] (Still testing).
> 3. I have added some constants in [3].
>
> I am following the way that Dushan noted. Initially I am doing this with a
> single connector. As the first step, Now I am doing the connector
> deployment (CAR -- > upload -- > deploy connector).
>
> [1]
> https://drive.google.com/a/wso2.com/file/d/0B3SvJgvWs9I_eWY5UEJhM3pzb0k/view?usp=sharing
>
> [2]
> /components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployer.java
>
> [3]
> /components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployerConstants.java
>
>
> Thank you.
>
> On Wed, Jul 8, 2015 at 6:02 AM, Dushan Abeyruwan  wrote:
>
>>
>>
>> On Tue, Jul 7, 2015 at 8:07 AM, Jasintha Dasanayake 
>> wrote:
>>
>>> @viraj
>>>
>>> Shall we enable this in ESB project level , since there is a option
>>> already in ESB project , that we can improve to pack connector into capp
>>> when adding the ESB project into Capp ?
>>>
>>  +1 this should be feasible with ESB Project level as its already there
>> in DevS
>>
>> Shashika, could please provide more detail (design and implementation
>> detail/changes you have done) how you planned to integrate this ?
>>
>> however, please note that we need manage depdenencies correctly
>>
>> CAR -- > upload -- > deploy connector/s --- >[[*critical:* monitor the
>> status of connector deployment]] -- if success ---> execute
>> connector-meta-import  --> if success -- > then deploy other
>> synapse-artifacts
>>
>> *guess, the difficulty can be holding synapse artifact deployment till
>> connector's uploaded successfully and import connector meta data, have
>> found solution for this ?*
>>
>>
>>>
>>> Thanks and Regards
>>> /Jasintha
>>>
>>> On Tue, Jul 7, 2015 at 4:33 PM, Shakila Sivagnanarajah >> > wrote:
>>>
 Hi Kasun,

 Since there is no feature in developer studio to import connector zip
 into the CApp, I have manually added the zip in to car. Now I am
 debugging and modifying the code [1]. I think I am going well with the 
 task.

 [1]
 https://github.com/wso2/carbon-mediation/blob/master/components/application-deployers/org.wso2.carbon.application.deployer.synapse/src/main/java/org/wso2/carbon/application/deployer/synapse/SynapseAppDeployer.java

 Thank you.

 On Tue, Jul 7, 2015 at 4:22 PM, Kasun Indrasiri  wrote:

> Any progress on this task?
>
> On Thu, Jul 2, 2015 at 11:09 PM, Malaka Silva  wrote:
>
>> Hi All,
>>
>> Shakila will be starting to implement this functionality from ESB
>> side.
>>
>> @Shakila - Any blockers user this mail thread to discuss.
>>
>> On Tue, Jun 30, 2015 at 5:57 PM, Jasintha Dasanayake <
>> jasin...@wso2.com> wrote:
>>
>>> From tooling perspective, this is similar to class mediator
>>> deployment using Capp , Since Capp class mediator deployment now working
>>> fine with Capp so this can be done , However this is also  kind of sever
>>> extension so we have to educate the users to use this properly.
>>>
>>> Thanks and Regards
>>> /Jasintha
>>>
>>> On Tue, Jun 30, 2015 at 5:11 PM, Kasun Indrasiri 
>>> wrote:
>>>
 Hi,

 AFAIR, this was discussed several times. But in the context of ESB
 as a service, I think this will be quite useful. I don't think we have 
 any
 technical difficulty in doing this.

 Use case :
 - We want to invoke a twitter operation.
 - Import the twitter connector from connector-store( into DevS) and
 use the twitter connector operation in our mediation logic.
 - Now we want to deploy the artifact into ESB but it is required to
 deploy/enable the connector beforehand. (If the connector is not 
 deployed
 in the ESB instance, this config deployment will fail.)
 - If we can include the connector as part of the cApp, then the
 connector deployment is completely transparent to the users.

 WDYT?

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

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

>>>
>>>
>>>
>>> --
>>>
>>> *Jasintha Dasanayake*
>>>
>>> *Senior Software EngineerWSO2 Inc. | http://wso2.com
>

[Dev] Please merge the carbon4-kernel integration test commit#287

2015-07-08 Thread Nuwan Wimalasekara
Hi Carbon Team,

Please merge the pull request
https://github.com/wso2/carbon4-kernel/pull/287

Thanks,
Nuwanw



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] UX/UI Incorporation

2015-07-08 Thread Dakshika Jayathilaka
Hi All,

We have added application notification pane to overview
page(009_cloud_app_details_initial.html). please check.

https://raw.githubusercontent.com/wso2-dev-ux/product-cloud/master/Markup/009_cloud_app_details_initial.html

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Jul 8, 2015 at 10:50 AM, Mahesh Chinthaka  wrote:

> Hi Dakshika ,
>
> I remember the wireframes. Actually 2 things,
>
> 1. Where can I find the markup for issues_initial_blank page (Actually for
> the button "Report an Issue")?
> 2. Last time when I took a git pull (before sending my last mail) create
> issue button was not there in the issues_initial page. Now its there :)
> thank you.
>
>
> On Wed, Jul 8, 2015 at 6:19 AM, Dakshika Jayathilaka 
> wrote:
>
>> Hi,
>>
>> this is the updated listing page..
>>
>>
>> https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/issues_initial.html
>>
>> Regards,
>>
>> *Dakshika Jayathilaka*
>> PMC Member & Committer of Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Wed, Jul 8, 2015 at 6:15 AM, Dakshika Jayathilaka 
>> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Its already there..(issues_initial_blank) seems you missed important
>>> points that we discussed on the meeting.. :). I have attached wireframes
>>> for further reference. please be kind enough to check. We usually update
>>> markup pages everyday. so please take pull and continue your work.
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Tue, Jul 7, 2015 at 7:00 PM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi Dakshika,

 In issue_initial.html  we dont have a Create Issue button.
 In our early UI we had a create issue (New Issue) button in index page
 of the issue tracker.
 With new UI where are we going to have that button or link for a user
 to create an issue ?

 In new UI if there are issues created , then those issues will be shown
 in the data table. When there are no issues,  data table will be empty.
 IMO we should have a button in index page to create issues. Otherwise
 how the user going to add an issue ?
 This is the initial landing page for a user when he clicks on the issue
 tracker link in the left side panel.

 Thanks.

 On Fri, Jul 3, 2015 at 4:41 PM, Dakshika Jayathilaka >>> > wrote:

> Hi All,
>
> We have added issues_new.html
> 
>  and issues_initial.html
> 
>  pages
> to git repo.
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Fri, Jun 19, 2015 at 9:13 AM, Manisha Gayathri 
> wrote:
>
>> Thanks Dakshika,
>>
>> Hasitha will carry on the work regarding app home page
>>
>> Thanks
>> Manisha
>>
>> On Thu, Jun 18, 2015 at 5:04 PM, Dakshika Jayathilaka <
>> daksh...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have added 009_cloud_app_details_initial.html
>>> 
>>>   to git repo. Please be kind enough to merge changes.
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Tue, Jun 16, 2015 at 10:00 AM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Hi All,

 I have added 012_cloud_listing.html
 
  to
 git repo. Please be kind enough to merge changes.

 Regards,

 *Dakshika Jayathilaka*
 PMC Member & Committer of Apache Stratos
 Senior Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Wed, Jun 10, 2015 at 2:33 PM, Danushka Fernando <
 danush...@wso2.com> wrote:

> Hi Dakshika
> In Resource / Runtime Config pages we need some changes to be done
> refer to [1] architecture@.
>
> [1] [AF] Removing Registry Mounts for the Dev, Test, Prod
> Registries
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>>

[Dev] [DEV] Pull Request

2015-07-08 Thread Vanii Thiyagarajah
Hi Malaka,

I have changed the README.txt,HTTP endpoints and templates in foursquare
connector. Now all methods are working fine with Beta. Please find the PR[1]

[1]https://github.com/wso2/esb-connectors/pull/228

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


Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-08 Thread Evanthika Amarasiri
I got Lasitha's web apps and tried to recreate the issue.

In his scenario, he's deactivating the service from the UI. Once the
service is deactivated, when you send a request to that endpoint, it
redirects you to the Carbon login page with a HTTP 200 OK.

Response headers:
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/; Secure;
HttpOnly
X-FRAME-OPTIONS: DENY
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Transfer-Encoding: chunked
Vary: Accept-Encoding
Date: Wed, 08 Jul 2015 12:18:01 GMT
Server: WSO2 Carbon Server

So it actually does not consider it as a failed scenario. That is why it's
not failing over.

@Lasith, could you kindly try with an actual scenario where the endpoint
fails?

Regards,
Evanthika

On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa 
wrote:

> Hi All,
>
> I'm in process of automating Failover end point function test case -
> APIM-45  [1] and figured out the Failover Endpoint function is not working
> in APIM 1.9.0. This is a blocker for the completion of the test case.
> Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]
>
> Steps to recreate:
> 1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
> Endpoint" with a production endpoint and multiple production failover
> endpoints.
> 2. Send a request to the API and it will correctly invoked the production
> end point.
> 3. Make the production end point unavailable and send the request again
> 4. No response from the API.
>
>
>
>
> [1]
> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
> [2] https://wso2.org/jira/browse/APIMANAGER-3967
>
>
>
> Thanks & Best Regards,
> Lasitha.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-08 Thread Evanthika Amarasiri
I just tried out this scenario and this is what I observed.

When you make the 'Production URL' unavailable, it would direct the other
request to the next endpoint. So as far as I see, the functionality is
working. The dynamic failover functionality also works fine. I'm attaching
the API configuration that I used for this scenario. Could you kindly cross
check your synapse config with mine and see whether there are any
differences? Also, note that I'm using 3 App server nodes as the backends.

Regards,
Evanthika Amarasiri
Senior Technical Lead  - Quality Assurance
Mobile: +94773125935
Blog: evanthika.blogspot.com

wso2.com lean.enterprise.middleware

On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa 
wrote:

> Hi All,
>
> I'm in process of automating Failover end point function test case -
> APIM-45  [1] and figured out the Failover Endpoint function is not working
> in APIM 1.9.0. This is a blocker for the completion of the test case.
> Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]
>
> Steps to recreate:
> 1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
> Endpoint" with a production endpoint and multiple production failover
> endpoints.
> 2. Send a request to the API and it will correctly invoked the production
> end point.
> 3. Make the production end point unavailable and send the request again
> 4. No response from the API.
>
>
>
>
> [1]
> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
> [2] https://wso2.org/jira/browse/APIMANAGER-3967
>
>
>
> Thanks & Best Regards,
> Lasitha.
>

http://ws.apache.org/ns/synapse";
 name="admin190beta--Admin190API1"
 context="/1.0.0/admin/api1"
 version="1.0.0"
 version-type="context">
   
  
 

   
   
  
 

   http://172.20.10.2:9764/jaxrs_basic/services/customers"/>


   http://172.20.10.2:9765/jaxrs_basic/services/customers"/>


   http://172.20.10.2:9766/jaxrs_basic/services/customers"/>

 
  
   


   

 
  
  
 
 
  
   
   
  
 

   
   
  
 

   http://172.20.10.2:9764/jaxrs_basic/services/customers"/>


   http://172.20.10.2:9765/jaxrs_basic/services/customers"/>


   http://172.20.10.2:9766/jaxrs_basic/services/customers"/>

 
  
   


   

 
  
  
 
 
  
   
   
  
 
  
  
  
 
 
  
  
  
 
  
  
   

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


[Dev] Address Endpoints in ESB

2015-07-08 Thread Danushka Fernando
Hi All
While I was working on some thing with ESB I needed to create a simple
proxy with echo service. So I created an endpoint in registry. Content of
endpoint as follows.

http://ws.apache.org/ns/synapse";>
   http://localhost:8280/services/echo"; />


Then I started to get some wrong number of inputs exception. Then somehow I
edited the endpoint to be as follows.

http://ws.apache.org/ns/synapse";>
   http://localhost:8280/services/echo";>
  
 1.0
  
  
 0
 0
  
   


Then it worked. First version seems to me simple and OK. Why isn't this
working and why we need extra parameters? Can some one explain?

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Governance registry Endpoint collection not created by default

2015-07-08 Thread John Hawkins
I'm following our ESB lab and in lab 14 (embedded registry) it tells me to
1) create a new registry resource project
2) create a new address endpoint
3) make it a dynamic endpoint
4) select the registry project I just created
5) target to the governance registry/endpoints path

However - when i follow those steps, there is no "endpoints" path. So I'm
wondering how to get that endpoints path. You seem to say that it's created
automatically - but how does that work in this case?

many thanks,
John.

John Hawkins
Director: Solutions Architecture


On Wed, Jul 8, 2015 at 10:42 AM, Kishanthan Thangarajah  wrote:

> Hi John,
>
> Are you trying out the registry resource project from dev-studio? If there
> are endpoints added under a specific registry path, then it should be
> created automatically at ESB when you deploy registry resource project from
> dev-studio.
>
> But by default - event, permission, repository and trunk collections are
> found under the governance collection. And any newly added collections from
> dev-studio will be added to ESB registry space by deploying the registry
> resource project.
>
> Let me also add some dev-studio team members to this thread to get some
> better responses, if the above does not provide information on what you
> seek.
>
> Thanks,
>
> On Wed, Jul 8, 2015 at 2:42 PM, John Hawkins  wrote:
>
>> Hi Folks,
>> any thoughts on this - is it a bug or expected behaviour ?
>>
>> many thanks,
>>
>> John,
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> On Mon, Jul 6, 2015 at 10:59 AM, John Hawkins  wrote:
>>
>>> Hi Folks,
>>>
>>> Using the ESB v4.8.1; I've just created a new governance registry using
>>> dev studio v3.7.1 and I see that it's created the collections: event,
>>> permission, repository and trunk collections under the governance context.
>>> But, it hasn't created the endpoint collection though. Should it have done?
>>> And, if I have to create it manually, are there any instructions on what
>>> has to go under the governance/endpoints/ collection?
>>>
>>> many thanks,
>>> John.
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>
>> ___
>> 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] [PPaaS] Writing Unit Tests for the Configurator & Template Modules

2015-07-08 Thread Anuruddha Liyanarachchi
Hi Imesh,

It is possible to write unit tests to configurator to check whether values
are getting configured in the output file. I will work on this.

Regards,

On Wed, Jul 8, 2015 at 2:58 PM, Imesh Gunaratne  wrote:

> Hi Anuruddha,
>
> Shall we check the possibility of implementing unit/integration tests for
> the Configurator?
>
> Thanks
>
> On Mon, Jun 22, 2015 at 11:59 AM, Imesh Gunaratne  wrote:
>
>> Hi Devs,
>>
>> I think we need to do $subject.
>>
>> [1]
>> https://github.com/wso2/product-private-paas/tree/master/components/org.wso2.ppaas.configurator
>> [2]
>> https://github.com/wso2/product-private-paas/tree/master/cartridges/templates-modules
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create WADL for jax-rs services

2015-07-08 Thread Lakshani Gamage
Hi Bimali,

You can deploy your service. Then you can get WADL file from
*?w*

*adl*
Thank you,
Lakshani.

On Wed, Jul 8, 2015 at 3:24 PM, Bimali Dayananda  wrote:

> Hi,
>
> I have implemented a jax-rs service interface in my project (using
> IntelliJ) and I want to create the WADL for services. I found some methods
> but all seems not working.
> What is the best way to do this?
>
> Thanks.
>
> --
> Bimali Dayananda
> Intern-Software Engineering
> Mobile : +94(77) 571 6618
> bim...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshani Gamage

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


Re: [Dev] [ES][AppM] New branch on ES for Upgrading AppM Carbon 4.4.0 Java 7

2015-07-08 Thread Udara Rathnayake
Hi Ruwan,

On Wed, Jul 8, 2015 at 2:04 PM, Ruwan Yatawara  wrote:

> Hi Udara,
>
> Yes, We would always have the release tag, but would it not be a bit
> confusing for someone who is not aware of this to basically go ahead and
> start development?
>
Yes, ideally we need to carry development in master and avoid this
confusion.But APPM depends on ES1.0, hence we have this separate branch.


> and since the branch name is going to be the same the ES feature version
> in both the already released APPM and the one that will be immediately
> released will be the same. This is very confusing don't you think?
>
> Hence.shall we go and straight away create a separate branch with the PR,
> as suggested by Ruwan as it would be much cleaner, going forward?
>

I thought APPM will move with the latest ES model soon after 1.1(next
immediate) hence proposed above.

>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Senior Software Engineer,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
> www: :http://wso2.com
>
>
> On Wed, Jul 8, 2015 at 12:21 PM, Ruwan Abeykoon  wrote:
>
>> Hi Udara,
>>
>> +1 : go with the existing branch, then tag new release.
>>
>> @Sumedha, @Dinusha please confirm.
>>
>> Cheers,
>> Ruwan
>>
>> On Wed, Jul 8, 2015 at 12:15 PM, Udara Rathnayake 
>> wrote:
>>
>>> Since we have the release tag you can go with the same branch(but having
>>> version 1.0.1 in the branch name is bit confusing)
>>> Until APPM can point to the latest ES release version (with the
>>> extension model) , shall we go with the existing branch?
>>>
>>> On Wed, Jul 8, 2015 at 11:53 AM, Ruwan Abeykoon  wrote:
>>>
 Hi ES/AppM teams,
 We need to change few pom files and couple of classes in ES (branch
 es-1.0.1-apm-reg) in order to get AppM upgraded to C 4.4.0 retaining ES
 1.0.0.


 What is the best option;
 1. create a new branch es-1.1.0-appm-reg and create a PR with new
 version
 2. create a PR on top of es-1.0.1-apm-reg, so that the branch will bump
 up the version.

 Cheers,
 Ruwan


 --

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

 email: ruw...@wso2.com
 phone:(+94) 39736

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


>>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>> phone:(+94) 39736
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Create WADL for jax-rs services

2015-07-08 Thread Bimali Dayananda
Hi,

I have implemented a jax-rs service interface in my project (using
IntelliJ) and I want to create the WADL for services. I found some methods
but all seems not working.
What is the best way to do this?

Thanks.

-- 
Bimali Dayananda
Intern-Software Engineering
Mobile : +94(77) 571 6618
bim...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Governance registry Endpoint collection not created by default

2015-07-08 Thread Kishanthan Thangarajah
Hi John,

Are you trying out the registry resource project from dev-studio? If there
are endpoints added under a specific registry path, then it should be
created automatically at ESB when you deploy registry resource project from
dev-studio.

But by default - event, permission, repository and trunk collections are
found under the governance collection. And any newly added collections from
dev-studio will be added to ESB registry space by deploying the registry
resource project.

Let me also add some dev-studio team members to this thread to get some
better responses, if the above does not provide information on what you
seek.

Thanks,

On Wed, Jul 8, 2015 at 2:42 PM, John Hawkins  wrote:

> Hi Folks,
> any thoughts on this - is it a bug or expected behaviour ?
>
> many thanks,
>
> John,
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Mon, Jul 6, 2015 at 10:59 AM, John Hawkins  wrote:
>
>> Hi Folks,
>>
>> Using the ESB v4.8.1; I've just created a new governance registry using
>> dev studio v3.7.1 and I see that it's created the collections: event,
>> permission, repository and trunk collections under the governance context.
>> But, it hasn't created the endpoint collection though. Should it have done?
>> And, if I have to create it manually, are there any instructions on what
>> has to go under the governance/endpoints/ collection?
>>
>> many thanks,
>> John.
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>
> ___
> 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] [PPaaS] Writing Unit Tests for the Configurator & Template Modules

2015-07-08 Thread Imesh Gunaratne
Hi Anuruddha,

Shall we check the possibility of implementing unit/integration tests for
the Configurator?

Thanks

On Mon, Jun 22, 2015 at 11:59 AM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> I think we need to do $subject.
>
> [1]
> https://github.com/wso2/product-private-paas/tree/master/components/org.wso2.ppaas.configurator
> [2]
> https://github.com/wso2/product-private-paas/tree/master/cartridges/templates-modules
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Governance registry Endpoint collection not created by default

2015-07-08 Thread John Hawkins
Hi Folks,
any thoughts on this - is it a bug or expected behaviour ?

many thanks,

John,

John Hawkins
Director: Solutions Architecture


On Mon, Jul 6, 2015 at 10:59 AM, John Hawkins  wrote:

> Hi Folks,
>
> Using the ESB v4.8.1; I've just created a new governance registry using
> dev studio v3.7.1 and I see that it's created the collections: event,
> permission, repository and trunk collections under the governance context.
> But, it hasn't created the endpoint collection though. Should it have done?
> And, if I have to create it manually, are there any instructions on what
> has to go under the governance/endpoints/ collection?
>
> many thanks,
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES][AppM] New branch on ES for Upgrading AppM Carbon 4.4.0 Java 7

2015-07-08 Thread Ruwan Yatawara
Hi Udara,

Yes, We would always have the release tag, but would it not be a bit
confusing for someone who is not aware of this to basically go ahead and
start development? and since the branch name is going to be the same the ES
feature version in both the already released APPM and the one that will be
immediately released will be the same. This is very confusing don't you
think?

Hence.shall we go and straight away create a separate branch with the PR,
as suggested by Ruwan as it would be much cleaner, going forward?

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com


On Wed, Jul 8, 2015 at 12:21 PM, Ruwan Abeykoon  wrote:

> Hi Udara,
>
> +1 : go with the existing branch, then tag new release.
>
> @Sumedha, @Dinusha please confirm.
>
> Cheers,
> Ruwan
>
> On Wed, Jul 8, 2015 at 12:15 PM, Udara Rathnayake  wrote:
>
>> Since we have the release tag you can go with the same branch(but having
>> version 1.0.1 in the branch name is bit confusing)
>> Until APPM can point to the latest ES release version (with the extension
>> model) , shall we go with the existing branch?
>>
>> On Wed, Jul 8, 2015 at 11:53 AM, Ruwan Abeykoon  wrote:
>>
>>> Hi ES/AppM teams,
>>> We need to change few pom files and couple of classes in ES (branch
>>> es-1.0.1-apm-reg) in order to get AppM upgraded to C 4.4.0 retaining ES
>>> 1.0.0.
>>>
>>>
>>> What is the best option;
>>> 1. create a new branch es-1.1.0-appm-reg and create a PR with new version
>>> 2. create a PR on top of es-1.0.1-apm-reg, so that the branch will bump
>>> up the version.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Architect,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>> phone:(+94) 39736
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-08 Thread Lasitha Deergawansa
Hi All,

I'm in process of automating Failover end point function test case -
APIM-45  [1] and figured out the Failover Endpoint function is not working
in APIM 1.9.0. This is a blocker for the completion of the test case.
Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]

Steps to recreate:
1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
Endpoint" with a production endpoint and multiple production failover
endpoints.
2. Send a request to the API and it will correctly invoked the production
end point.
3. Make the production end point unavailable and send the request again
4. No response from the API.




[1]
https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
[2] https://wso2.org/jira/browse/APIMANAGER-3967



Thanks & Best Regards,
Lasitha.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Insert into and groups by on Siddhi 3.0.0 alpha

2015-07-08 Thread crodriguez
Hi all,

I'm writing an application with Siddhi 3.0.0 alpha and I'm having some
issues with it.

I'm using the documentation from the beta 4.0.0 of CEP [1] and I've found
some differences with this version of Siddhi that i'm using, so I wish you
guys can help me out with the following questions:

1) CEP 4.0.0 is not using Siddhi 3.0.0, Am I right? When is the final
version of Siddhi 3.0.0 going to release? Will it have any documentation?
I'm particulary interested in changes on the query language and the new
annotations.

2) There are some differences between the siddhi language model at [2] and
the examples at [3]. Specifically on the output type on the insert
statement. [2] says that you can specify the output type like this:
 ::= expired-events | current-events | all-events
 ::= ((insert [] into ) | (return
[]))

But the examples at [3] specifies the output type like this:
[...] insert into StockQuote for expired-events 

However, when I try to write a query with any of these two options, I get a
SiddhiParserException.
I suppose the documentation is outdated. Does the new version of Siddhi does
this in a different way?

3) I'm also trying to do the following: For a given stream, which have two
fields: name (string) and count (integer), every 5 minutes write to
outputStream the sum of counts for every name. Is that possible?
I tried to write a query like this to achieve that: 

@config(async = 'true') define stream rawStream (name string, count int)
from rawStream#window.timeBatch(5 min) select name, sum(count) as sumCount
group by name insert into outputStream

While it is valid, this execution plan emits the sum of the name for every
event that arrived in those 5 minutes. That means that the same string
appears more than one time. I would like to get only one name with its
associated sum of "count". Is that possible?

Thank you!

[1] 
https://docs.wso2.com/display/CEP400/WSO2+Complex+Event+Processor+Documentation

  
[2]  https://docs.wso2.com/display/CEP400/Language+Model
  
[3]  https://docs.wso2.com/display/CEP400/Windows
  



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Insert-into-and-groups-by-on-Siddhi-3-0-0-alpha-tp121286.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev