[Dev] Carbon Mediation 4.6.6 build failure due to unsatisfied dependancy

2017-10-06 Thread Dinesh J Weerakkody
Hi,

I tried to build the carbon mediation branch 4.6.6 and I got below error.

[ERROR] Failed to execute goal on project org.wso2.carbon.inbound.endpoint:
Could not resolve dependencies for project org.wso2.carbon.mediation:org.w
so2.carbon.inbound.endpoint:bundle:4.6.7-SNAPSHOT: Failed to collect
dependencies at org.apache.synapse:synapse-nhttp-transport:jar:2.1.7-wso2v7
-> or
g.apache.synapse:synapse-commons:jar:2.1.7-wso2v7: Failed to read artifact
descriptor for org.apache.synapse:synapse-commons:jar:2.1.7-wso2v7: Failure
 to find org.apache.synapse:Apache-Synapse:pom:2.1.7-wso2v8-SNAPSHOT in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
loca
l repository, resolution will not be reattempted until the update interval
of wso2-nexus has elapsed or updates are forced -> [Help 1]


>From where I can find the
* org.apache.synapse:Apache-Synapse:pom:2.1.7-wso2v8-SNAPSHOT*

It is not there in the WSO2 Nexus repo and I'm wondering why this is
happening. This happens even we try to create a mediator project in dev
studio and use the synapse version as 2.1.7-wso2v7.

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 710 868676 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extending API manager

2017-06-06 Thread Dinesh J Weerakkody
Hi Gihan,

If you want to develop a totally new front-end for publisher/ store you can
use the REST APIs provided by the API manager and call from your front-end
app. Go through the following link for REST API details.

[1] https://docs.wso2.com/display/AM210/WSO2+APIs

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 710 868676 | E : dine...@wso2.com | W : www.wso2.com

On Thu, Jun 1, 2017 at 5:29 PM, Gihan Nimath  wrote:

> Hi Rajith & all,
>
> My requirement is not to change the look and feel, but to customize the
> product. I might be changing the publishing approaches, flow in the UI etc.
>
> So I will have my custom code separately, then applied on top of the
> product release via maven build.
>
> Could you please give me some guidance on that?
>
> Thank you
> Gihan
>
>
> On Thu, Jun 1, 2017 at 5:19 PM, Rajith Roshan  wrote:
>
>> Hi Gihan,
>>
>> If your requirement is to change the UI of the store, I would recommend
>> to use sub themes. Please refer following documentation[1],[2] in order to
>> apply sub themes.
>>
>> [1] - https://docs.wso2.com/display/AM200/Adding+a+New+API+Store+Theme
>> <https://support.wso2.com/jira/browse/GSAPRODSUPPROD>
>> [2] - http://sanjeewamalalgoda.blogspot.com/2015/01/how-to-add-
>> sub-theme-to-api-manager.html
>>
>> Thanks!
>> Rajith
>>
>>
>> On Wed, May 31, 2017 at 10:41 PM, Gihan Nimath 
>> wrote:
>>
>>> Dear all,
>>>
>>> I am working on customizing api-manager storefront. Rather than the
>>> customizing the code in my fork, I am thinking about writing the
>>> customization part in a separate project. Then I will be able to have a
>>> maven build that will apply those changes on to the zip file generated as
>>> the release of api manager.
>>>
>>> Is there any specific approaches that you follow in such a requirement?
>>> Any advice will help me.
>>>
>>> Thanking you,
>>> Gihan
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Roshan
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-7 <%2B94-71-554-8430>17-064-214
>>
>
>
> ___
> 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] [VizGrammar] igviz.plot/chart.draw alternatives

2016-10-24 Thread Dinesh J Weerakkody
Hi Udara,
Noted.

The major issues I had was,

   - When we have lower values (< 10) in line charts, X axis will have
   decimal values (known issue)
   - No much flexibility to customize the tooltips (styles etc.).
   - Cannot change the size of the data points in line charts
   - Cannot change the position of the legends in pie charts.

These are the issues I can remember. I'll let Tharik know if I remember any
other issues.

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Tue, Oct 25, 2016 at 10:19 AM, Udara Rathnayake  wrote:

> Hi Dinesh,
>
> On Tue, Oct 25, 2016 at 9:15 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi Udara,
>>
>> If you are considering to revamp the charting library, I strongly believe
>> that we need to reconsider the VizGrammer due to the limitations in this
>> library (No offense :) ). This is based on what I experienced when I'm
>> using it. If you are going to allow users of the product to create gadgets,
>> this will be really helpful for them.
>>
>
> ​Not really trying to replace/revamp the library, but trying to look at
> rendering options which we can implement. Ideally we should not limit
> anyone to use igviz or vizgrammer, rather provide an extension point so
> anyone can plug there own library and visualize.​
>
> ​Right now gagdet is that extension point.
>
> Going forward we are planning to make an uuf component which represents a
> gadget. So anyone can create there own component with any charting library.
> BTW we might not have an extensive use case now, where users go and create
> there own gadgets/components.
>
> Further it's better if you can explain those limitations so Tharik can
> have a look and may be we can improve in future.
> ​
>
>>
>> If we want to be with D3 based library I think we can use nvd3, which is
>> also published under Apache 2.0. Otherwise there are many JS libraries
>> available.
>>
>> [1] http://nvd3.org/
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Senior Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>
>> On Mon, Oct 24, 2016 at 5:23 PM, Udara Rathnayake 
>> wrote:
>>
>>> Thanks Jerad and Tharik!
>>>
>>> Hi Tharik,
>>>
>>> So we do the configuration part in server-side and draw in client-side?
>>> Please correct me if I'm wrong.
>>>
>>>
>>>
>>> On Mon, Oct 24, 2016 at 2:16 PM, Tharik Kanaka  wrote:
>>>
>>>> Hi Udara,
>>>>
>>>> Its not possible. Instead of generating HTML in server side,  can't you
>>>> generate  a chart spec from the server side and use that spec to render in
>>>> the browser?
>>>>
>>>> Regards,
>>>>
>>>> On Mon, Oct 24, 2016 at 2:04 PM, Jerad Rutnam  wrote:
>>>>
>>>>> Hi Udara,
>>>>>
>>>>> AFAIK currently it's not possible.
>>>>>
>>>>> Cheers,
>>>>> Jerad
>>>>>
>>>>> On Mon, Oct 24, 2016 at 1:14 PM, Udara Rathnayake 
>>>>> wrote:
>>>>>
>>>>>> ​Hi All,
>>>>>>
>>>>>> $subject? ​
>>>>>> Is there a way to directly get the html content itself rather
>>>>>> pointing a div and draw?
>>>>>>
>>>>>> I'm trying to figure out possibilities of rendering a gadget in
>>>>>> serverside.
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> UdaraR
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Jerad Rutnam*
>>>>> *Software Engineer*
>>>>>
>>>>> WSO2 Inc.
>>>>> lean | enterprise | middleware
>>>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>>>
>>>>> <https://wso2.com/signature>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Tharik Kanaka*
>>>>
>>>> WSO2, Inc | lean . enterprise . middleware
>>>>
>>>> Email: tha...@wso2.com | Web: www.wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Regards,
> UdaraR
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VizGrammar] igviz.plot/chart.draw alternatives

2016-10-24 Thread Dinesh J Weerakkody
Hi Udara,

If you are considering to revamp the charting library, I strongly believe
that we need to reconsider the VizGrammer due to the limitations in this
library (No offense :) ). This is based on what I experienced when I'm
using it. If you are going to allow users of the product to create gadgets,
this will be really helpful for them.

If we want to be with D3 based library I think we can use nvd3, which is
also published under Apache 2.0. Otherwise there are many JS libraries
available.

[1] http://nvd3.org/

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Mon, Oct 24, 2016 at 5:23 PM, Udara Rathnayake  wrote:

> Thanks Jerad and Tharik!
>
> Hi Tharik,
>
> So we do the configuration part in server-side and draw in client-side?
> Please correct me if I'm wrong.
>
>
>
> On Mon, Oct 24, 2016 at 2:16 PM, Tharik Kanaka  wrote:
>
>> Hi Udara,
>>
>> Its not possible. Instead of generating HTML in server side,  can't you
>> generate  a chart spec from the server side and use that spec to render in
>> the browser?
>>
>> Regards,
>>
>> On Mon, Oct 24, 2016 at 2:04 PM, Jerad Rutnam  wrote:
>>
>>> Hi Udara,
>>>
>>> AFAIK currently it's not possible.
>>>
>>> Cheers,
>>> Jerad
>>>
>>> On Mon, Oct 24, 2016 at 1:14 PM, Udara Rathnayake 
>>> wrote:
>>>
>>>> ​Hi All,
>>>>
>>>> $subject? ​
>>>> Is there a way to directly get the html content itself rather pointing
>>>> a div and draw?
>>>>
>>>> I'm trying to figure out possibilities of rendering a gadget in
>>>> serverside.
>>>>
>>>> --
>>>> Regards,
>>>> UdaraR
>>>>
>>>
>>>
>>>
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>>
>> *Tharik Kanaka*
>>
>> WSO2, Inc | lean . enterprise . middleware
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> Regards,
> UdaraR
>
> ___
> 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] [DAS] Using a filter in event receivers to validate incoming data stream

2016-08-11 Thread Dinesh J Weerakkody
Thanks Niranda.

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Thu, Aug 11, 2016 at 12:30 AM, Niranda Perera  wrote:

> ​Hi Dinesh,
>
> Ye​s, I also agree with Sajith. We can do it in an execution plan and then
> persist the resulting stream.
>
> Best
>
> On Thu, Aug 11, 2016 at 12:13 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi Sajith,
>> Thanks for quick response. I'll try this.
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Senior Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>
>> On Wed, Aug 10, 2016 at 2:19 PM, Sajith Ravindra 
>> wrote:
>>
>>> Hi Dinesh,
>>>
>>> I'm afraid you can't do that in the event receiver itself. Event
>>> receivers will pass all the events for processing without doing any
>>> filtering.
>>>
>>> You can do this with a simple Execution plan. Please refer[1] on the
>>> regex extension for siddhi.
>>>
>>> [1] - https://docs.wso2.com/display/CEP420/Siddhi+Extensions#Siddh
>>> iExtensions-regexregex
>>>
>>> Thanks
>>> *,Sajith Ravindra*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273550
>>> blog: http://sajithr.blogspot.com/
>>> <http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>
>>>
>>> On Wed, Aug 10, 2016 at 11:30 PM, Dinesh J Weerakkody 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is it possible to validate the incoming data stream values in DAS? for
>>>> example let's say I have a stream which has date as a attribute. I need to
>>>> validate the date format with a regex and ignore the event if the format
>>>> doesn't match. Can we do something like this in WSO2 DAS event receivers?
>>>>
>>>> Thanks
>>>>
>>>> *Dinesh J. Weerakkody*
>>>> Senior Software Engineer
>>>> WSO2 Inc.
>>>> lean | enterprise | middleware
>>>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>>>
>>>> ___
>>>> 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
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 <https://twitter.com/N1R44>
> https://pythagoreanscript.wordpress.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Using a filter in event receivers to validate incoming data stream

2016-08-10 Thread Dinesh J Weerakkody
Hi Sajith,
Thanks for quick response. I'll try this.

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Aug 10, 2016 at 2:19 PM, Sajith Ravindra  wrote:

> Hi Dinesh,
>
> I'm afraid you can't do that in the event receiver itself. Event receivers
> will pass all the events for processing without doing any filtering.
>
> You can do this with a simple Execution plan. Please refer[1] on the regex
> extension for siddhi.
>
> [1] - https://docs.wso2.com/display/CEP420/Siddhi+Extensions#
> SiddhiExtensions-regexregex
>
> Thanks
> *,Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> <http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>
>
> On Wed, Aug 10, 2016 at 11:30 PM, Dinesh J Weerakkody 
> wrote:
>
>> Hi,
>>
>> Is it possible to validate the incoming data stream values in DAS? for
>> example let's say I have a stream which has date as a attribute. I need to
>> validate the date format with a regex and ignore the event if the format
>> doesn't match. Can we do something like this in WSO2 DAS event receivers?
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Senior Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS] Using a filter in event receivers to validate incoming data stream

2016-08-10 Thread Dinesh J Weerakkody
Hi,

Is it possible to validate the incoming data stream values in DAS? for
example let's say I have a stream which has date as a attribute. I need to
validate the date format with a regex and ignore the event if the format
doesn't match. Can we do something like this in WSO2 DAS event receivers?

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Add zero values for missing data points in dashboard line charts

2016-06-27 Thread Dinesh J Weerakkody
Hi,

When we add line charts in dashboards, there can be senarios where we don't
have any data in the given time period. For example lets say that we
following summerized dataset.

*DateRequestCount*
Sun  5
Mon 3
Tue  4
Thu  6
Fri5
Sat   3

Please note that Wednesday is missing in the data set since we don't have
any request on that day. If we visualize above dataset in a line chart it
will add a Wednesday to the chart without a data point. Chart simply draw
the line from Tue to Thu and it feels like Wed is also has data.

In Google Analitics this is not the case. Please look at the chart beloe.

[image: Inline image 1]

In Above chart we have Zero value data points.

Can we have the same thing with our dshboard also? Can we achive this by
writing a custom JS code for the underlaying JS libraries that are used in
the DS?

@Chanaka,

Please note that this issue is there even in ESB Analytics. Look at the
line charts in [1]. I'm not sure whether this behaviour is ok with you or
not :)

[1]
https://docs.wso2.com/display/ESB500/Monitoring+WSO2+ESB+with+WSO2+Analytics

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Headless JMeter -How to get printed the response data in the output file.

2016-01-20 Thread Dinesh J Weerakkody
Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Jan 20, 2016 at 3:12 PM, Dinesh J Weerakkody 
wrote:

> Hi Ishara,
>
> I think you should be able to get the output by following below steps.
>
>
>- Add a Listener > "View result tree" element to your script
>- provide a full file path to "Write results to file / read from file"
>-  place to save the result file
>
>
> then when you run the script jmeter should write the responses to the file.
> Please note that writing responses to file will slow the process and also
> will increase the result file size.
>
> To view the results, once your script completed
>
>- open a jemter window and add a new Listener > "View result tree"
>element
>- Browse your result file to the same "Write results to file text box
>/ read from file"
>
> this might take some time if the result file is huge.
>
> Hope this will help you.
>
>
> Thanks
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>
> On Wed, Jan 20, 2016 at 2:55 PM, Ishara Cooray  wrote:
>
>> I am running a load test by using a jmeter script in non gui mode.
>>
>> I use the following command to run the JMeter in non gui mode and result
>> is stored in a file Test.jtl
>> *sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl*
>>
>> Sample data written to Test.jtl is as below and there it does not print
>> response data. Is there a way to get printed the response data as well may
>> be by altering jmeter script or above command?
>>
>> Any help would be appreciated.
>>
>>
>>
>>
>>
>> *1453272193899,231,HTTP Request-staging-qqq-customer1,200,OK,Thread Group
>> two 1-6,text,true,466,2311453272193927,227,HTTP
>> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
>> 1-1,text,false,751,2271453272193963,222,HTTP
>> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
>> 1-2,text,false,604,2221453272194026,238,HTTP
>> Request-staging-TT1-customer1,200,OK,Thread Group two
>> 1-3,text,true,448,2381453272194131,233,HTTP
>> Request-staging-qqq-customer2,200,OK,Thread Group two 1-6,text,true,466,233*
>>
>>
>> Thanks & Regards.
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> ___
>> 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] [DEV] Headless JMeter -How to get printed the response data in the output file.

2016-01-20 Thread Dinesh J Weerakkody
Hi Ishara,

I think you should be able to get the output by following below steps.


   - Add a Listener > "View result tree" element to your script
   - provide a full file path to "Write results to file / read from file"


then when you run the script jmeter should write the responses to the file.
Please note that writing responses to file will slow the process and also
will increase the result file size.

To view the results, once your script completed

   - open a jemter window and add a new Listener > "View result tree"
   element
   - Browse your result file to the same "Write results to file text box /
   read from file"

this might take some time if the result file is huge.

Hope this will help you.


Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Jan 20, 2016 at 2:55 PM, Ishara Cooray  wrote:

> I am running a load test by using a jmeter script in non gui mode.
>
> I use the following command to run the JMeter in non gui mode and result
> is stored in a file Test.jtl
> *sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl*
>
> Sample data written to Test.jtl is as below and there it does not print
> response data. Is there a way to get printed the response data as well may
> be by altering jmeter script or above command?
>
> Any help would be appreciated.
>
>
>
>
>
> *1453272193899,231,HTTP Request-staging-qqq-customer1,200,OK,Thread Group
> two 1-6,text,true,466,2311453272193927,227,HTTP
> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
> 1-1,text,false,751,2271453272193963,222,HTTP
> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
> 1-2,text,false,604,2221453272194026,238,HTTP
> Request-staging-TT1-customer1,200,OK,Thread Group two
> 1-3,text,true,448,2381453272194131,233,HTTP
> Request-staging-qqq-customer2,200,OK,Thread Group two 1-6,text,true,466,233*
>
>
> Thanks & Regards.
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> 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] WSO2 Committers += Chamin Dias

2015-12-21 Thread Dinesh J Weerakkody
Congratulations..

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Mon, Dec 21, 2015 at 2:26 PM, Nuwan Dias  wrote:

> Hi,
>
> It is with great pleasure we welcome Chamin Dias as a WSO2 Committer. @
> Chamin, congratulations and keep up the good work!
>
> Thanks,
> NuwanD.
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
> ___
> 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] Adding Metrics to APIManager 1.10.0

2015-11-24 Thread Dinesh J Weerakkody
Hi Isuru,
Thanks for the info. I have already added metrics feature to the product.
Now I can see the JVM stats on APIM. Need to have a discussion with the
team regarding custom metrics UIs and will provide a update soon.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Tue, Nov 24, 2015 at 1:57 PM, Isuru Perera  wrote:

> Hi,
>
> Please refer GitHub readme for Metrics Feature installation instructions &
> usage. Latest Metrics release is v1.1.1. If you want to create custom
> Metrics UI, you will have to implement an OSGi fragment bundle. MB Team has
> created a similar component [1].
>
> JVM Metrics will be there by default [2]. See [3] for the custom Messaging
> Metrics UI.
>
> Thanks!
>
> Best Regards,
>
> [1]
> https://github.com/wso2/carbon-business-messaging/tree/v3.0.1/components/metrics/org.wso2.carbon.messaging.metrics.ui
> [2] https://docs.wso2.com/display/MB300/Using+JVM+Metrics
> [3] https://docs.wso2.com/display/MB300/Using+Messaging+Metrics
>
> On Tue, Nov 24, 2015 at 10:30 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi All,
>>
>> As a part of the effort of performance measuring and improvement of WSO2
>> API Manager, we are planing to incorporate the Metrics feature [1], which
>> will help us to gather statistics during the runtime.
>>
>> Initially we will add metrics to all the handlers in APIM and based on
>> the results we will add more data collection points as necessary.
>>
>> [1] https://github.com/wso2/carbon-metrics
>>
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding Metrics to APIManager 1.10.0

2015-11-23 Thread Dinesh J Weerakkody
Hi All,

As a part of the effort of performance measuring and improvement of WSO2
API Manager, we are planing to incorporate the Metrics feature [1], which
will help us to gather statistics during the runtime.

Initially we will add metrics to all the handlers in APIM and based on the
results we will add more data collection points as necessary.

[1] https://github.com/wso2/carbon-metrics


Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] DepSync url doesn't get updated after carbon.xml is updated

2015-09-29 Thread Dinesh J Weerakkody
Hi Chamila,
It seems like that your new SVN server url cannot be resolved from the
client. See the error message "java.net.NoRouteToHostException: No route to
host". Can you try to check whether you can reach the SVN server using ping
or tracert.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Tue, Sep 29, 2015 at 3:27 PM, Chamila De Alwis  wrote:

> Hi,
>
> I've setup an ESB (4.9.0) cluster with one manager and two workers, with
> SVN DepSync. This was working initially, however after changing the SVN url
> to a different one, the deployment synchronization task fails when the
> server is started. The SVN url it's using is still the old one. The SVN
> server is up and running, since I can access it via HTTP.
>
> I've copied the SVNKit jars to repository/components/dropins and
> repository/components/lib as mentioned in [1].
>
> [2015-09-29 15:20:08,289] ERROR - SVNBasedArtifactRepository Error while
> checking out or updating artifacts from the SVN repository
> org.tigris.subversion.svnclientadapter.SVNClientException:
> org.apache.subversion.javahl.ClientException: svn: E175002: No route to host
> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
> at
> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:1132)
> at
> org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.checkout(SVNBasedArtifactRepository.java:498)
> at
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.checkout(DeploymentSynchronizer.java:178)
> at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:96)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:179)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:137)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.subversion.javahl.ClientException: svn: E175002: No
> route to host
> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
> at
> org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)
> at
> org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1492)
> at
> org.tmatesoft.svn.core.javahl17.SVNClientImpl.update(SVNClientImpl.java:498)
> at
> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:1127)
> ... 12 more
> Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: No route to
> host
> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
> at
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)
> at
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90)
> at
> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:775)
> at
> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:375)
> at
> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:363)
> at
> org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:710)
> at
> org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:627)
> at
> org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:102)
> at
> org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1032)
> at
> org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:143)
> at
> org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.createRepository(SvnRepositoryAccess.java:110)
> at
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepository(SvnNgRepositoryAccess.java:210)
> at
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.updateInternal(SvnNgAbstractUpdate.java:194)
> at
> org

Re: [Dev] APIM ui integration tests

2015-04-23 Thread Dinesh J Weerakkody
Thanks Irham,
I'll update the thread once we find the issue.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Thu, Apr 23, 2015 at 1:07 PM, Irham Iqbal  wrote:

> Hi Dinesh,
>
> I am getting the following exception in
> APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase and  i have
> attached the full log file. It seems like bug in  addAPI method. In the
> test it has used for add APIs.
>
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
> wso2.anonymous.user is not authorized to read the resource
> /_system/governance/apimgt/applicationdata/api-docs/
> APIMANAGER3363-1.0.0-admin-AT-apimanager3363.com/1.2/api-doc.
> (/store/site/blocks/api-doc/ajax/get.jag#101)
>
> Thanks,
>
> Iqbal
>
>
>
> On Thu, Apr 23, 2015 at 12:18 PM, Dinesh J Weerakkody 
> wrote:
>
>> Hi Irham,
>> Regarding APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase,
>>
>> This test should be run with load balancer enabled environment and it is
>> mentioned in class level comments. Anyway, Can you please share the full
>> error log so we can find the root cause.
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:
>>
>>>
>>> Hi,
>>>
>>> Currently I am fixing the following APIM UI integration tests failures.
>>>
>>> Results :
>>>
>>> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>>>
>>> When i go through the code i found the following lines which may causing
>>> the test failures.
>>>
>>> APIMANAGER3272ExternalLogoutPageTestCase
>>>
>>>
>>>- Getting an 404 when try to access
>>>https://localhost:9443/store/site/pages/login.jag.
>>>- In the code variable externalLogoutPage has assigned "custom
>>>logout page url".
>>>
>>>
>>> APIMANAGER3344ScopeSpecificTokenTestCase
>>>
>>>
>>>- Searching Select Scopes link inside My Subscriptions page in the
>>>store but i don't see any select scope link in that page.
>>>
>>>
>>> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>>>
>>>
>>>- When click on API Console tag getting an exception in log and also
>>>bellowing exception under that tag - 500 : undefined
>>>
>>> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>>>.
>>>
>>>
>>> APIMANAGER3366MultipleGatewayPublishTestCase
>>>
>>>- In the publisher when adding the API in the manage state it's
>>>expecting input.env css selector  but it's not in that page.
>>>
>>>
>>> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>>>
>>>- In the publisher when adding the API in the manage state it's try
>>>to click on xpath //form[@id='manage_form']/fieldset[3]/legend  but
>>>it's not in that page.
>>>
>>>
>>> APIMANAGER3412DifferentRegistryContextPath
>>>
>>>
>>>- In the publisher when adding the API in the design state it's try
>>>to find a element by id jsonform-0-elt-production_endpoints but it's
>>>not in that page.
>>>
>>>
>>> APIVersoinStatTestCase
>>>
>>>
>>>- In the publisher in the all API page when it's empty it's trying
>>>to find versionTxt by id but it's not in that page.
>>>
>>>
>>> TestNameLengthTestCase
>>>
>>>
>>>- When running this test alone it's working. Some other test/tests
>>>might be the reason of failure of this test case.
>>>
>>>
>>> YouTubeUIPagesTestCase
>>>
>>>- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
>>>CredentialsRequired OAuth credentials not
>>>provided. Make sure your API invocation call has a header: 
>>> "Authorization:
>>>Bearer ACCESS_TOKEN"
>>>
>>> Thanks,
>>> Iqbal
>>> --
>>> 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
>>>
>>>
>>
>
>
> --
> 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] APIM ui integration tests

2015-04-22 Thread Dinesh J Weerakkody
Hi Irham,
Regarding APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase,

This test should be run with load balancer enabled environment and it is
mentioned in class level comments. Anyway, Can you please share the full
error log so we can find the root cause.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:

>
> Hi,
>
> Currently I am fixing the following APIM UI integration tests failures.
>
> Results :
>
> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>
> When i go through the code i found the following lines which may causing
> the test failures.
>
> APIMANAGER3272ExternalLogoutPageTestCase
>
>
>- Getting an 404 when try to access
>https://localhost:9443/store/site/pages/login.jag.
>- In the code variable externalLogoutPage has assigned "custom logout
>page url".
>
>
> APIMANAGER3344ScopeSpecificTokenTestCase
>
>
>- Searching Select Scopes link inside My Subscriptions page in the
>store but i don't see any select scope link in that page.
>
>
> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>
>
>- When click on API Console tag getting an exception in log and also
>bellowing exception under that tag - 500 : undefined
>
> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>.
>
>
> APIMANAGER3366MultipleGatewayPublishTestCase
>
>- In the publisher when adding the API in the manage state it's
>expecting input.env css selector  but it's not in that page.
>
>
> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>
>- In the publisher when adding the API in the manage state it's try to
>click on xpath //form[@id='manage_form']/fieldset[3]/legend  but it's
>not in that page.
>
>
> APIMANAGER3412DifferentRegistryContextPath
>
>
>- In the publisher when adding the API in the design state it's try to
>find a element by id jsonform-0-elt-production_endpoints but it's not
>in that page.
>
>
> APIVersoinStatTestCase
>
>
>- In the publisher in the all API page when it's empty it's trying to
>find versionTxt by id but it's not in that page.
>
>
> TestNameLengthTestCase
>
>
>- When running this test alone it's working. Some other test/tests
>might be the reason of failure of this test case.
>
>
> YouTubeUIPagesTestCase
>
>- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
>CredentialsRequired OAuth credentials not
>provided. Make sure your API invocation call has a header: "Authorization:
>Bearer ACCESS_TOKEN"
>
> Thanks,
> Iqbal
> --
> 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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Prasanna Dangalla

2015-04-08 Thread Dinesh J Weerakkody
Congratulations Prasanna...

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Thu, Apr 9, 2015 at 8:06 AM, Sagara Gunathunga  wrote:

> It's my pleasure to welcome Prasanna Dangalla as a WSO2 committer.
> Prasanna, welcome aboard and keep up the good work.
>
>
> Thanks !
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
> ___
> 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] WSO2 Committers += Abimaran Kugathasan

2015-01-25 Thread Dinesh J Weerakkody
Congratulations Abimaran.. !!!

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Sun, Jan 25, 2015 at 6:28 AM, Dakshika Jayathilaka 
wrote:

> Congratulations!!
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Sat, Jan 24, 2015 at 11:47 PM, Kalpa Welivitigoda 
> wrote:
>
>> Congratulations Abimaran !
>>
>> On Sat, Jan 24, 2015 at 11:21 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Congratulations Abimaran!!!
>>>
>>> On Sat, Jan 24, 2015 at 10:35 PM, Tharindu Dharmarathna <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Congratulation Abimaran !
>>>>
>>>> On Sat, Jan 24, 2015 at 10:15 PM, Ruwan Yatawara 
>>>> wrote:
>>>>
>>>>> Congratulations Abimaran!
>>>>>
>>>>> Thanks and Regards,
>>>>>
>>>>> Ruwan Yatawara
>>>>>
>>>>> Senior Software Engineer,
>>>>> WSO2 Inc.
>>>>>
>>>>> email : ruw...@wso2.com
>>>>> mobile : +94 77 9110413
>>>>> blog : http://thoughts.ruwan-ace.com/
>>>>> www: :http://wso2.com
>>>>>
>>>>>
>>>>> On Sat, Jan 24, 2015 at 10:14 PM, Sam Sivayogam  wrote:
>>>>>
>>>>>> Contrats Abimaran :)
>>>>>>
>>>>>> On Sat, Jan 24, 2015 at 9:49 PM, Gayan Gunawardana 
>>>>>> wrote:
>>>>>>
>>>>>>> Congratz Abimaran...
>>>>>>>
>>>>>>> On Sat, Jan 24, 2015 at 2:56 PM, Senduran Balasubramaniyam <
>>>>>>> sendu...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Congratulations Abimaran !!
>>>>>>>>
>>>>>>>> On Sat, Jan 24, 2015 at 1:10 PM, Srisunmugaraja Paraparan <
>>>>>>>> parapa...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Congratulations Abimaran
>>>>>>>>>
>>>>>>>>> On Sat, Jan 24, 2015 at 1:06 PM, Danesh Kuruppu 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Congrats Abimaran!!!
>>>>>>>>>>
>>>>>>>>>> On Sat, Jan 24, 2015 at 12:42 PM, Harsha Kumara >>>>>>>>> > wrote:
>>>>>>>>>>
>>>>>>>>>>> Congratulations Abimaran!
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Jan 24, 2015 at 12:40 PM, Roshan Wijesena <
>>>>>>>>>>> ros...@wso2.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Congratulations!! Abimaran.
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, Jan 24, 2015 at 12:35 PM, Nuwan Dias 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Its with great pleasure we welcome Abimaran Kugathasan as a
>>>>>>>>>>>>> WSO2 committer. @Abimaran, congratulations and keep up the
>>>>>>>>>>>>> good work!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> NuwanD.
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Nuwan Dias
>>>>>>>>>>>>>
>>>>>>>>>>>>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>>>>>>>>>>>>> email : nuw...@wso2.com
>>>>>>>>>>>>> Phone : +94 777 775 729
>>>>>>>>>>>>>
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>

Re: [Dev] SVN External in APIM tests/resource

2015-01-20 Thread Dinesh J Weerakkody
Hi Krishantha,

Thank you very much. Now it is clear.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Tue, Jan 20, 2015 at 12:32 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi Dinesh,
>
> On Tue, Jan 20, 2015 at 9:21 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi Krishantha,
>>
>> Thanks for your clarification. Now I have two more questions.
>>
>> If 1.8.0 is PATS version, we can point APIM 1.9.0 test configuration
>> location to the same location that we have used for APIM 1.8.0. Isn't it?
>>
>> If we do a major change to APIM configuration in 1.9.0 version which is
>> incompatible with APIM 1.8.0, do we have to use two config files? (Don't
>> need a new Java class since we can modify the class in new branch if needed)
>>
>
> The idea is to release PATS with each chunk release. I'm not sure whether
> 1.8.0 PATS was released or not. So in this case we need to create 1.9.0
> version of PATS and go ahead.
>
> Thanks,
> Krishantha.
>
>
>>
>>
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>> On Mon, Jan 19, 2015 at 12:11 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> On Fri, Jan 16, 2015 at 10:37 AM, Dinesh J Weerakkody 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Following SVN External links are there in test module of APIManager
>>>> 1.9.0.
>>>>
>>>>- modules/integration/tests/src/test/resources
>>>>- modules/integration/tests-ui/src/test/resources
>>>>
>>>> both locations are pointed to
>>>>
>>>>
>>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/platform-automated-test-suite/
>>>> *1.8.0*/org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
>>>> artifacts/AM
>>>>
>>>> I'm curious to know followings. please help me to understand.
>>>>
>>>>1. What is the reason for having a SVN external in these locations?
>>>>
>>>> This is to maintain centralised artefact repo to promote artefact
>>> reusability among products and various test levels - e.g platform tests.
>>> This concept is dropped in GIT based test suites and externals are no
>>> longer required.
>>>
>>>>
>>>>1. Please note that it is pointed to 1.8.0 location. Is this
>>>>pointed location is correct? I think it should be pointed to 1.9.0 
>>>> location?
>>>>
>>>> You need to create next version of artefact repo.
>>>
>>>>
>>>>1. There are several directories in
>>>>org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
>>>>artifacts/ location such as BAM, AS. if this location is for APIM what 
>>>> is
>>>>the reason for having other product folders?
>>>>
>>>>  Explained under #1
>>>
>>>>
>>>>1. If this is a common place to have all the configuration files
>>>>why it is under 1.8.0? 1.8.0 is APIM version.
>>>>
>>>> It is PATS 1.8.0 (Platform Automated Test Suite) nothing related APIM
>>> 1.8.0
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>>> Thanks
>>>>
>>>> *Dinesh J. Weerakkody*
>>>> Software Engineer
>>>> WSO2 Inc.
>>>> lean | enterprise | middleware
>>>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SVN External in APIM tests/resource

2015-01-19 Thread Dinesh J Weerakkody
Hi Krishantha,

Thanks for your clarification. Now I have two more questions.

If 1.8.0 is PATS version, we can point APIM 1.9.0 test configuration
location to the same location that we have used for APIM 1.8.0. Isn't it?

If we do a major change to APIM configuration in 1.9.0 version which is
incompatible with APIM 1.8.0, do we have to use two config files? (Don't
need a new Java class since we can modify the class in new branch if needed)



Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Mon, Jan 19, 2015 at 12:11 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi,
>
> On Fri, Jan 16, 2015 at 10:37 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi,
>>
>> Following SVN External links are there in test module of APIManager 1.9.0.
>>
>>- modules/integration/tests/src/test/resources
>>- modules/integration/tests-ui/src/test/resources
>>
>> both locations are pointed to
>>
>>
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/platform-automated-test-suite/
>> *1.8.0*/org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
>> artifacts/AM
>>
>> I'm curious to know followings. please help me to understand.
>>
>>1. What is the reason for having a SVN external in these locations?
>>
>> This is to maintain centralised artefact repo to promote artefact
> reusability among products and various test levels - e.g platform tests.
> This concept is dropped in GIT based test suites and externals are no
> longer required.
>
>>
>>1. Please note that it is pointed to 1.8.0 location. Is this pointed
>>location is correct? I think it should be pointed to 1.9.0 location?
>>
>> You need to create next version of artefact repo.
>
>>
>>1. There are several directories in
>>org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
>>artifacts/ location such as BAM, AS. if this location is for APIM what is
>>the reason for having other product folders?
>>
>>  Explained under #1
>
>>
>>1. If this is a common place to have all the configuration files why
>>it is under 1.8.0? 1.8.0 is APIM version.
>>
>> It is PATS 1.8.0 (Platform Automated Test Suite) nothing related APIM
> 1.8.0
>
> Thanks,
> Krishantha.
>
>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] SVN External in APIM tests/resource

2015-01-15 Thread Dinesh J Weerakkody
Hi,

Following SVN External links are there in test module of APIManager 1.9.0.

   - modules/integration/tests/src/test/resources
   - modules/integration/tests-ui/src/test/resources

both locations are pointed to

https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/platform-automated-test-suite/
*1.8.0*/org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
artifacts/AM

I'm curious to know followings. please help me to understand.

   1. What is the reason for having a SVN external in these locations?
   2. Please note that it is pointed to 1.8.0 location. Is this pointed
   location is correct? I think it should be pointed to 1.9.0 location?
   3. There are several directories in
   org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
   artifacts/ location such as BAM, AS. if this location is for APIM what is
   the reason for having other product folders?
   4. If this is a common place to have all the configuration files why it
   is under 1.8.0? 1.8.0 is APIM version.


Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploy APIs and Sequences in ATF runtime

2015-01-13 Thread Dinesh J Weerakkody
Thank you Krishantha. Found it in APIManagerIntegrationTest class.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Jan 14, 2015 at 9:46 AM, Krishantha Samaraweera  wrote:

> If your query is related to ESB, addAPI method in ESBIntegrationTest [1]
> base class can be used. The same class is there in APIM as well.
>
> [1]
> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/test-common/integration-test-utils/src/main/java/org/wso2/esb/integration/common/utils/ESBIntegrationTest.java
>
> Thanks
> Krishantha.
>
> On Wed, Jan 14, 2015 at 9:26 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi,
>>
>> I want to deploy some API and sequence artifacts before start automation
>> test. Do we have something smiler to 
>> *serverConfigurationManager.applyConfiguration(fileName)
>> *method which we can use to deploy artifacts in runtime?
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deploy APIs and Sequences in ATF runtime

2015-01-13 Thread Dinesh J Weerakkody
Hi,

I want to deploy some API and sequence artifacts before start automation
test. Do we have something smiler to
*serverConfigurationManager.applyConfiguration(fileName)
*method which we can use to deploy artifacts in runtime?

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] PizzaShack Sample: List of Pizzas not loaded in web application

2015-01-13 Thread Dinesh J Weerakkody
Hi Yohanna,

Do you have any error logs in your console?

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Tue, Jan 13, 2015 at 5:41 PM, Yohanna Fernando  wrote:

>
> As shown in diagram, the lists of pizzas are not loaded and I don't get
> the screen which says:
>
> "This App will be able to"
>
> Has anyone come across this before and know if I'm missing something?
> --
> Yohanna Fernando
> Training Specialist
> WSO2 Inc.
>  http://wso2.com
>
> E-mail: yoha...@wso2.com
> Cell: +94779021159
> <http://wso2con.com/>
>
> ___
> 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] Transforming Message Content

2014-12-21 Thread Dinesh J Weerakkody
Hi Maz,

You will be able to come up with a solution if you through the JSON Support
[1] page of WSO2 ESB documentation. Also there are more JSON related
samples in this page [2].

[1] https://docs.wso2.com/display/ESB481/JSON+Support
[2] https://docs.wso2.com/display/ESB481/Mediating+JSON+Messages

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Mon, Dec 22, 2014 at 2:46 AM, Maz Lakadia  wrote:

> Hello,
>
> I am currently trying to create an application that will help to output
> data in a specific format for a user to view on a website. The way I am
> thinking about doing this is by using WSO2 Payload Factory Mediator to
> modify the client request to be what the server database expects. Then I
> can modify the server's response to output in the form expected by the
> client. My database is JSON, not XML. I had a look at Sample 17 (
> https://docs.wso2.com/pages/viewpage.action?pageId=33136018) on the WSO2
> website for ESB. However, that is an XML example. I was wondering if there
> was a similar example, but for JSON. Even if the method used does not
> utilise Payload Factory Mediator I would be open to using it.
>
> Thank you for your time,
>
> Maz
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Please review and commit

2014-12-10 Thread Dinesh J Weerakkody
Hi,

I have attached a diff file herewith which has test cases and some
improvements to TestUtil class.

This diff contain testcases for following jiras
https://wso2.org/jira/browse/APIMANAGER-3017
https://wso2.org/jira/browse/APIMANAGER-3149
https://wso2.org/jira/browse/APIMANAGER-2957

Modifications done to TestUtil class
Used api name as contextpath (removed hard coded path. otherwise we cannot
create multiple APIs) and JSONParser to check the response status when
creating an API

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
Index: 
1.8.0/modules/integration/tests-ui/src/test/java/org/wso2/carbon/am/integration/ui/APIMANAGER2957EpochTimeTestCase.java
===
--- 
1.8.0/modules/integration/tests-ui/src/test/java/org/wso2/carbon/am/integration/ui/APIMANAGER2957EpochTimeTestCase.java
 (revision 0)
+++ 
1.8.0/modules/integration/tests-ui/src/test/java/org/wso2/carbon/am/integration/ui/APIMANAGER2957EpochTimeTestCase.java
 (working copy)
@@ -0,0 +1,118 @@
+/*
+*Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+*
+*WSO2 Inc. licenses this file to you under the Apache License,
+*Version 2.0 (the "License"); you may not use this file except
+*in compliance with the License.
+*You may obtain a copy of the License at
+*
+*http://www.apache.org/licenses/LICENSE-2.0
+*
+*Unless required by applicable law or agreed to in writing,
+*software distributed under the License is distributed on an
+*"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+*KIND, either express or implied.  See the License for the
+*specific language governing permissions and limitations
+*under the License.
+*/
+
+package org.wso2.carbon.am.integration.ui;
+
+import org.apache.http.protocol.HttpContext;
+import org.openqa.selenium.Alert;
+import org.openqa.selenium.By;
+import org.openqa.selenium.NoAlertPresentException;
+import org.openqa.selenium.NoSuchElementException;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.support.ui.ExpectedConditions;
+import org.openqa.selenium.support.ui.WebDriverWait;
+import org.testng.Assert;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+import org.wso2.carbon.am.integration.ui.util.TestUtil;
+import org.wso2.carbon.automation.core.BrowserManager;
+import org.wso2.carbon.automation.core.ProductConstant;
+
+import java.util.concurrent.TimeUnit;
+import java.util.regex.Pattern;
+
+import static org.testng.Assert.assertTrue;
+
+public class APIMANAGER2957EpochTimeTestCase extends AMIntegrationUiTestBase {
+private WebDriver driver;
+private boolean acceptNextAlert = true;
+private StringBuffer verificationErrors = new StringBuffer();
+
+private static final String TEST_DATA_API_NAME = "EpochAPI";
+private static final String TEST_DATA_API_VERSION = "1.0.0";
+private static final String TEST_DATA_API_TIER = "Unlimited";
+private static final String TEST_DATA_APP_NAME = "DefaultApplication";
+
+@BeforeClass(alwaysRun = true)
+public void init() throws Exception {
+super.init(0);
+driver = BrowserManager.getWebDriver();
+driver.get(getLoginURL(ProductConstant.AM_SERVER_NAME));
+
+driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
+}
+
+@Test(groups = "wso2.am", description = "This method adds and publishes 
the Test API in carbon.super store")
+public void testCreatePublishAndSubscribeAPI() throws Exception {
+
+// login to publisher and create new API
+String publisherURL = getPublisherURL(ProductConstant.AM_SERVER_NAME);
+HttpContext httpContext = TestUtil.login(userInfo.getUserName(), 
userInfo.getPassword(), publisherURL);
+assertTrue(TestUtil.addAPI(userInfo.getUserName(), TEST_DATA_API_NAME, 
TEST_DATA_API_VERSION, httpContext, publisherURL));
+assertTrue(TestUtil.publishAPI(userInfo.getUserName(), 
TEST_DATA_API_NAME, TEST_DATA_API_VERSION, httpContext, publisherURL));
+
+// login to store and subscribe to API
+String storeURL = getStoreURL(ProductConstant.AM_SERVER_NAME);
+httpContext = TestUtil.login(userInfo.getUserName(), 
userInfo.getPassword(), storeURL);
+assertTrue(TestUtil.addSubscription(userInfo.getUserName(), 
TEST_DATA_API_NAME, TEST_DATA_API_VERSION, TEST_DATA_API_TIER, 
TEST_DATA_APP_NAME, httpContext, storeURL));
+
+System.out.println("API Create and Publish test case is completed ");
+}
+
+@Test(groups = "wso2.am", description = "Check time conversion from epoch 
to human readable version", dependsOnMethods = 
"testCreatePublishAndSubscribeAPI")
+public void te

Re: [Dev] what would be more efficient? obj.clone() or new object?

2014-12-04 Thread Dinesh J Weerakkody
Hi Lahiru,

I believe second method is better than the clone option. because
1) in clone option you are creating 11 JsonObject instances if you have 10
elements in resultset. (you are explicitly creating one instance before the
loop and in clone method there will be another 10 instances). But in second
option only 10 will be created (if you don't create new instance when you
define the reference).
2) So obliviously additional operations also invoked in clone option.
3) other than that second method is very easy to understand :)

Thanks,
Dinesh

On Fri, Dec 5, 2014 at 11:10 AM, Lahiru Cooray  wrote:

> Hi,
>
> I'm trying to execute a SQL and store the result in a Json Array.
>
> What would be the most efficient code block??
>
>
>
> JSONObject obj = new JSONObject();
>
> while (rs.next()) {
>
> obj.put("NAME", rs.getString("NAME"));
>
> jsonArr.add(obj.clone());
>
> }
>
> * Or*
>
> while (rs.next()) {
>
> obj = new JSONObject();
>
> obj.put("NAME", rs.getString("NAME"));
>
> jsonArr.add(obj);
>
> }
>
> On Fri, Dec 5, 2014 at 11:05 AM, Lahiru Cooray  wrote:
>
>>
>> Hi,
>>
>> I'm trying to execute a SQL and store the result in a Json Array.
>>
>> What would be the most efficient code block??
>>
>>
>>
>>  JSONObject obj = new JSONObject();
>>
>> while (rs.next()) {
>>
>> obj.put("NAME", rs.getString("NAME"));
>>
>> jsonArr.add(obj.clone());
>>
>> }
>>
>> * Or*
>>
>> while (rs.next()) {
>>
>> JSONObject obj = new JSONObject();
>>
>> obj.put("NAME", rs.getString("NAME"));
>>
>> jsonArr.add(obj);
>>
>> }
>>
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>
>
>
> --
> *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
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Please commit patch for APIMANAGER-3149

2014-12-04 Thread Dinesh J Weerakkody
Hi,

Please review and commit the diff attached to jira [1]

[1] https://wso2.org/jira/browse/APIMANAGER-3149

Thanks,

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can not subscribe to API with user has subscriber permission

2014-11-10 Thread Dinesh J Weerakkody
Hi Waruna,

This error occurs when API is not available in the registry. I hope that
you are running a jmeter script. If so, please keep some time gap between
requests because server take some time to store and make available newly
created APIs.

Thanks,

On Mon, Nov 10, 2014 at 1:27 PM, Waruna Perera  wrote:

>
> Hi,
>
> I am writing a test cae for JWT claim checks. For that I created a user
> with subscriber permission. But when user sends the subscriber request it
> gives following error. What could be the reason?
>
> UserAwareAPIConsumer Failed to get API from :
> /apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
> INFO
>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
>
> Thanks,
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] integrating IS 5.0 with Active Directory

2014-10-31 Thread Dinesh J Weerakkody
/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
>
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165 <%2B94772264165>*
>
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>
> twitter: https://twitter.com/godwinamila
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
>
>
>
>
> --
>
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165 <%2B94772264165>*
>
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>
> twitter: https://twitter.com/godwinamila
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-21 Thread Dinesh J Weerakkody
Hi Dilan,

As I understood, Jaggery is running on top of JSP/Servlet structure and use
same principles (more like a wrapper to JSP). Session scopes and
concurrency also similar to simple Jsp app. Each request will be served by
separate thread. So You have to deal with shared resources by keeping that
in mind..

PS: Please correct me if I'm wrong.. :)

On Wed, Oct 22, 2014 at 7:59 AM, Dilan Udara Ariyaratne 
wrote:

> Hi All,
>
> I am just curious to know on "To what extent, Jaggery can deal with
> Concurrency Issues".
>
> For example, if some Jaggery Script is there to handle some file operations
> on a shared file or some database operations that we expect to be mutually
> exclusive...
>
> And also about the scope of Jaggery "session" variable: i.e. when the
> server is dealing with
> multiple concurrent executions of the same Jaggery script, are we dealing
> with multiple independent sessions or just one session instance...
>
> Any Feedback on this would be highly appreciated.
>
> Thanks.
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94775149066
> lean . enterprise . middleware
>
> ___________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Rajkumar Rajaratnam

2014-10-20 Thread Dinesh J Weerakkody
t;>>>>>>>> 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
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Shiroshica Kulatilake
>>>>>>>>>>
>>>>>>>>>> Architect,
>>>>>>>>>> WSO2, Inc. http://wso2.com/
>>>>>>>>>> Phone: +94 776523867
>>>>>>>>>>
>>>>>>>>>> ___
>>>>>>>>>> Dev mailing list
>>>>>>>>>> Dev@wso2.org
>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Suhan Dharmasuriya
>>>>>>>>> Software Engineer - Test Automation
>>>>>>>>>
>>>>>>>>> *WSO2, Inc. *
>>>>>>>>>
>>>>>>>>> lean . enterprise . middleware
>>>>>>>>> Tel: +94 112 145345
>>>>>>>>> Mob: +94 779 869138
>>>>>>>>> Blog: http://suhan-opensource.blogspot.com/
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2
>>>>>>>> Inc. *
>>>>>>>>
>>>>>>>> *lean . enterprise . middleware |  http://wso2.com
>>>>>>>> <http://wso2.com> *
>>>>>>>>
>>>>>>>> ___
>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thilini Shanika
>>>>>> Software Engineer
>>>>>> WSO2, Inc.; http://wso2.com
>>>>>> 20, Palmgrove Avenue, Colombo 3
>>>>>>
>>>>>> E-mail: tgtshan...@gmail.com
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Prasanna Dangalla
>>>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>>>> lean.enterprise.middleware
>>>>>
>>>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>>>> twitter: @prasa77
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Roshan Wijesena.
>>>> Senior Software Engineer-WSO2 Inc.
>>>> Mobile: *+94752126789*
>>>> Email: ros...@wso2.com
>>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>>> lean.enterprise.middleware.
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gay...@wso2.com  | mobile : +94 766819985
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Lasindu Charith

2014-10-20 Thread Dinesh J Weerakkody
t;>>>>>>>>> --
>>>>>>>>>>>>> Lakmal Warusawithana
>>>>>>>>>>>>> Vice President, Apache Stratos
>>>>>>>>>>>>> Director - Cloud Architecture; WSO2 Inc.
>>>>>>>>>>>>> Mobile : +94714289692
>>>>>>>>>>>>> Blog : http://lakmalsview.blogspot.com/
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ___
>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Suhan Dharmasuriya
>>>>>>>>>>> Software Engineer - Test Automation
>>>>>>>>>>>
>>>>>>>>>>> *WSO2, Inc. *
>>>>>>>>>>>
>>>>>>>>>>> lean . enterprise . middleware
>>>>>>>>>>> Tel: +94 112 145345
>>>>>>>>>>> Mob: +94 779 869138
>>>>>>>>>>> Blog: http://suhan-opensource.blogspot.com/
>>>>>>>>>>>
>>>>>>>>>>> ___
>>>>>>>>>>> Dev mailing list
>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Tharindu Edirisinghe
>>>>>>>>>> Software Engineer | WSO2 Inc
>>>>>>>>>> Identity Server Team
>>>>>>>>>> mobile : +94 775 181586
>>>>>>>>>>
>>>>>>>>>> ___
>>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thilini Shanika
>>>>>>>> Software Engineer
>>>>>>>> WSO2, Inc.; http://wso2.com
>>>>>>>> 20, Palmgrove Avenue, Colombo 3
>>>>>>>>
>>>>>>>> E-mail: tgtshan...@gmail.com
>>>>>>>>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Shashika Prabath Karunatilaka,
>>>>>>> Software Engineer,
>>>>>>> WSO2, Inc: http://wso2.com/
>>>>>>> mobile : +94 77 7487792
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Milinda Perera
>>>>>> Software Engineer;
>>>>>> WSO2 Inc. http://wso2.com ,
>>>>>> Mobile: (+94) 714 115 032
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Roshan Wijesena.
>>>>> Senior Software Engineer-WSO2 Inc.
>>>>> Mobile: *+94752126789*
>>>>> Email: ros...@wso2.com
>>>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>>>> lean.enterprise.middleware.
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Godwin Amila Shrimal*
>>>> Senior Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94772264165*
>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>> twitter: https://twitter.com/godwinamila
>>>>
>>>> ___
>>>> 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
>>>
>>>
>>
>>
>> --
>> Regards,
>> Manula Chathurika Thantriwatte
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>> lean . enterprise . middleware
>>
>> email : manu...@wso2.com / man...@apache.org
>> phone : +94 772492511
>> blog : http://manulachathurika.blogspot.com/
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gay...@wso2.com  | mobile : +94 766819985
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Tishan Dahanayakage

2014-10-17 Thread Dinesh J Weerakkody
Congratulations... !

On Fri, Oct 17, 2014 at 12:36 PM, Abimaran Kugathasan 
wrote:

> Congrats!
>
> On Fri, Oct 17, 2014 at 12:15 PM, Supun Sethunga  wrote:
>
>> Congratulations Tishan !!
>>
>> On Fri, Oct 17, 2014 at 12:11 PM, Lasindu Charith 
>> wrote:
>>
>>> Congratz Tishan ..!!!
>>>
>>> On Fri, Oct 17, 2014 at 11:35 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Congratulations Tishan...!!!
>>>>
>>>> On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> It's our pleasure to welcome Tishan Dahanayakage as a WSO2
>>>>> Committer. Tishan has contributed immensely to WSO2 Complex Event 
>>>>> Processor
>>>>> especially on Siddhi and shown great commitment.
>>>>> In recognition of his contribution, he has been voted as a WSO2
>>>>> Commiter.
>>>>>
>>>>> Welcome aboard and keep up the good work  !
>>>>>
>>>>> Regards
>>>>> Suho.
>>>>>
>>>>> --
>>>>>
>>>>> *S. Suhothayan*
>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>>  *WSO2 Inc. *http://wso2.com
>>>>> * <http://wso2.com/>*
>>>>> lean . enterprise . middleware
>>>>>
>>>>>
>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter:
>>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
>>>>> http://lk.linkedin.com/in/suhothayan 
>>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lakshman Udayakantha
>>>> WSO2 Inc. www.wso2.com
>>>> lean.enterprise.middleware
>>>> Mobile: *0711241005*
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Lasindu Charith*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94714427192
>>> Web: blog.lasindu.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 77 1708229
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimaran>
> <https://twitter.com/abimaran>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sachini Jayasekara

2014-10-17 Thread Dinesh J Weerakkody
>>>>>>>>> *S. Suhothayan*
>>>>>>>>>>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>>>>>>>>>>>  *WSO2 Inc. *http://wso2.com
>>>>>>>>>>>>>> * <http://wso2.com/>*
>>>>>>>>>>>>>> lean . enterprise . middleware
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> |
>>>>>>>>>>>>>> blog: http://suhothayan.blogspot.com/
>>>>>>>>>>>>>> <http://suhothayan.blogspot.com/>twitter: 
>>>>>>>>>>>>>> http://twitter.com/suhothayan
>>>>>>>>>>>>>> <http://twitter.com/suhothayan> | linked-in:
>>>>>>>>>>>>>> http://lk.linkedin.com/in/suhothayan 
>>>>>>>>>>>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Kalpa Welivitigoda
>>>>>>>>>>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>>>>>>>>>>> Email: kal...@wso2.com
>>>>>>>>>>>>> Mobile: +94776509215
>>>>>>>>>>>>>
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Vijitha Ekanayake
>>>>>>>>>>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>>>>>>>>>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>>>
>>>>>>>>>>>> ___
>>>>>>>>>>>> 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
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> Sithumini Senevirathne
>>>>>>>>>> Software Engineer
>>>>>>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>>>>>>
>>>>>>>>>> email: sithumi...@wso2.com,   mobile: +94 756977999
>>>>>>>>>>
>>>>>>>>>> ___
>>>>>>>>>> Dev mailing list
>>>>>>>>>> Dev@wso2.org
>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thilini Shanika
>>>>>>>>> Software Engineer
>>>>>>>>> WSO2, Inc.; http://wso2.com
>>>>>>>>> 20, Palmgrove Avenue, Colombo 3
>>>>>>>>>
>>>>>>>>> E-mail: tgtshan...@gmail.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Harsha Kumara
>>>>>>>> Software Engineer, WSO2 Inc.
>>>>>>>> Mobile: +94775505618
>>>>>>>> Blog:harshcreationz.blogspot.com
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Anuruddha Premalal*
>>>>>>> Software Eng. | WSO2 Inc.
>>>>>>> Mobile : +94710461070
>>>>>>> Web site : www.regilandvalley.com
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Niranda Perera*
>>>>>> Software Engineer, WSO2 Inc.
>>>>>> Mobile: +94-71-554-8430
>>>>>> Twitter: @n1r44 <https://twitter.com/N1R44>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shashika Prabath Karunatilaka,
>>>>> Software Engineer,
>>>>> WSO2, Inc: http://wso2.com/
>>>>> mobile : +94 77 7487792
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Roshan Wijesena.
>>>> Senior Software Engineer-WSO2 Inc.
>>>> Mobile: *+94752126789*
>>>> Email: ros...@wso2.com
>>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>>> lean.enterprise.middleware.
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Lasindu Charith*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94714427192
>>> Web: blog.lasindu.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 77 1708229
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimaran>
> <https://twitter.com/abimaran>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] error in setup BAM server in API cluster setup

2014-10-14 Thread Dinesh J Weerakkody
PoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>
>>at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>
>>at java.lang.Thread.run(Thread.java:745)
>>
>> Caused by: org.apache.thrift.transport.TTransportException: Could not
>> connect to 172.20.2.150 on port 7717
>>
>>at
>> org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212)
>>
>>at
>> org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166)
>>
>>at
>> org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90)
>>
>>at
>> org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48)
>>
>>at
>> org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
>>
>>at
>> org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50)
>>
>>... 8 more
>>
>> Caused by: java.net.ConnectException: Connection refused
>>
>>at java.net.PlainSocketImpl.socketConnect(Native Method)
>>
>>at
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>>
>>at
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>>
>>at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>>
>>at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>>
>>at java.net.Socket.connect(Socket.java:579)
>>
>>at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
>>
>>at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:407)
>>
>>at
>> sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
>>
>>at
>> org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208)
>>
>>
>>
>> what should I do and when we setup BAM in api cluster is there specific
>> server component(gateway or keymanager or store or publisher or both)to
>> setup
>>
>>
>>
>> Regards,
>>
>> Akila
>>
>>
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facsimile or (ii) delete this message immediately if this
>> is an electronic communication. Thank you.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>>
>>
>>
>> --
>>
>> Harsha Kumara
>>
>> Software Engineer, WSO2 Inc.
>>
>> Mobile: +94775505618
>>
>> Blog:harshcreationz.blogspot.com
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facsimile or (ii) delete this message immediately if this
>> is an electronic communication. Thank you.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>>
>>
>>
>> --
>>
>> W.G. Gihan Anuruddha
>>
>> Senior Software Engineer | WSO2, Inc.
>>
>> M: +94772272595
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facsimile or (ii) delete this message immediately if this
>> is an electronic communication. Thank you.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
> Inosh Goonewardena
> Associate Technical Lead- WSO2 Inc.
> Mobile: +94779966317
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sameera Kannangara

2014-10-09 Thread Dinesh J Weerakkody
Congratulations Sameera...

On Fri, Oct 10, 2014 at 10:05 AM, Dakshika Jayathilaka 
wrote:

> Congratulations Sameera!!
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Fri, Oct 10, 2014 at 9:59 AM, Anuruddha Premalal 
> wrote:
>
>> Congratulations Sameera!!
>>
>> On Fri, Oct 10, 2014 at 9:56 AM, Prasanna Dangalla 
>> wrote:
>>
>>> Congratulations Sameera 
>>>
>>> On Fri, Oct 10, 2014 at 9:53 AM, Lasindu Charith 
>>> wrote:
>>>
>>>> Congratulations Sameera ..!!!
>>>>
>>>> On Fri, Oct 10, 2014 at 9:51 AM, Sewwandi Perera 
>>>> wrote:
>>>>
>>>>> Congratulations Sameera...!!! :)
>>>>>
>>>>> On Fri, Oct 10, 2014 at 9:45 AM, Milinda Perera 
>>>>> wrote:
>>>>>
>>>>>> Congratulations Sameera ...!
>>>>>>
>>>>>> On Fri, Oct 10, 2014 at 9:44 AM, Ayesha Dissanayaka 
>>>>>> wrote:
>>>>>>
>>>>>>> Congratulations Sameera!!!
>>>>>>>
>>>>>>> On Fri, Oct 10, 2014 at 9:42 AM, Heshani Gamage 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Congratulations Sameera!
>>>>>>>>
>>>>>>>> On Fri, Oct 10, 2014 at 9:38 AM, Subash Chaturanga >>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>> It's our pleasure to welcome Sameera Kannangara as a WSO2
>>>>>>>>> Committer. Sameera has contributed immensely to WSO2 Governance 
>>>>>>>>> Registry
>>>>>>>>> and platform and shown great commitment. In recognition of his
>>>>>>>>> contribution, he has been voted as a WSO2 Commiter.
>>>>>>>>>
>>>>>>>>> Welcome aboard and keep up the good work.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thanks
>>>>>>>>> /subash
>>>>>>>>>
>>>>>>>>> *Subash Chaturanga*
>>>>>>>>> Senior Software Engineer
>>>>>>>>> Platform TG; WSO2 Inc. http://wso2.com
>>>>>>>>> Contact:
>>>>>>>>> email: sub...@wso2.com
>>>>>>>>> blog:  http://subashsdm.blogspot.com/
>>>>>>>>> twitter: @subash89
>>>>>>>>> phone: +9477 2225922
>>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Heshani Gamage
>>>>>>>> Software Engineer, WSO2, Inc.
>>>>>>>> email : hesh...@wso2.com
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Ayesha Dissanayaka*
>>>>>>> Software Engineer,
>>>>>>> WSO2, Inc : http://wso2.com
>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>>>>>> 20, Palmgrove Avenue, Colombo 3
>>>>>>> E-Mail: aye...@wso2.com 
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Milinda Perera
>>>>>> Software Engineer;
>>>>>> WSO2 Inc. http://wso2.com ,
>>>>>> Mobile: (+94) 714 115 032
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sewwandi Perera
>>>>> Software Engineer
>>>>>
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> mobile: +94-713765098
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Lasindu Charith*
>>>> Software Engineer, WSO2 Inc.
>>>> Mobile: +94714427192
>>>> Web: blog.lasindu.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Prasanna Dangalla
>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>> twitter: @prasa77
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>> ___
>> 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
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Denuwanthi De Silva

2014-10-09 Thread Dinesh J Weerakkody
Congratulations... !

On Fri, Oct 10, 2014 at 10:27 AM, Vijitha Ekanayake 
wrote:

> Congratulations Denuwanthi !!!
>
> On Fri, Oct 10, 2014 at 9:55 AM, Prasanna Dangalla 
> wrote:
>
>> Congratulations Denuwanthi 
>>
>> On Fri, Oct 10, 2014 at 9:53 AM, Lasindu Charith 
>> wrote:
>>
>>> Congratulations Denuwanthi ..!!!
>>>
>>> On Fri, Oct 10, 2014 at 9:50 AM, Sewwandi Perera 
>>> wrote:
>>>
>>>>
>>>> Congratulations Denuwanthi...!!! :)
>>>>
>>>> On Fri, Oct 10, 2014 at 9:45 AM, Danesh Kuruppu 
>>>> wrote:
>>>>
>>>>> Congrats Denuwanthi !!!
>>>>>
>>>>> On Fri, Oct 10, 2014 at 9:44 AM, Sameera Jayaratna 
>>>>> wrote:
>>>>>
>>>>>> Congratz Denuwanthi!!
>>>>>>
>>>>>> On Fri, Oct 10, 2014 at 9:42 AM, Heshani Gamage 
>>>>>> wrote:
>>>>>>
>>>>>>> Congratulations Denuwanthi!
>>>>>>>
>>>>>>> On Fri, Oct 10, 2014 at 9:36 AM, Subash Chaturanga 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>> It's our pleasure to welcome Denuwanthi De Silva as a WSO2
>>>>>>>> Committer. Denuwanthi has contributed immensely to WSO2 Governance 
>>>>>>>> Registry
>>>>>>>> and platform and shown great commitment. In recognition of her
>>>>>>>> contribution, she has been voted as a WSO2 Commiter.
>>>>>>>>
>>>>>>>> Welcome aboard and keep up the good work.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thanks
>>>>>>>> /subash
>>>>>>>>
>>>>>>>> *Subash Chaturanga*
>>>>>>>> Senior Software Engineer
>>>>>>>> Platform TG; WSO2 Inc. http://wso2.com
>>>>>>>> Contact:
>>>>>>>> email: sub...@wso2.com
>>>>>>>> blog:  http://subashsdm.blogspot.com/
>>>>>>>> twitter: @subash89
>>>>>>>> phone: +9477 2225922
>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Heshani Gamage
>>>>>>> Software Engineer, WSO2, Inc.
>>>>>>> email : hesh...@wso2.com
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *
>>>>>>
>>>>>> *lean . enterprise . middleware |  http://wso2.com <http://wso2.com> *
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Danesh Kuruppu
>>>>> Software Engineer
>>>>> WSO2 Inc,
>>>>> Mobile: +94 (77) 1690552
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sewwandi Perera
>>>> Software Engineer
>>>>
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>> mobile: +94-713765098
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Lasindu Charith*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94714427192
>>> Web: blog.lasindu.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Dinesh J Weerakkody
Hi Niranda,

modern browsers support accept attribute and explain in this stackoverflow
tread [1]. If that doesn't work for you, you have to write a custom js for
validation.
Sample validation can be found here [2].

[1]
http://stackoverflow.com/questions/3521122/html-input-type-file-apply-a-filter
[2]
http://www.codeproject.com/Tips/700593/FileUpload-Filter-File-Type-File-Extension-File-Si


On Wed, Oct 8, 2014 at 5:48 PM, Niranda Perera  wrote:

> Hi,
>
> Is there any way to restrict only files of certain file types to be
> uploaded in the API thumbnail image section in APIM?
>
> Rgds
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 <https://twitter.com/N1R44>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jaggery file upload

2014-10-06 Thread Dinesh J Weerakkody
Hi Lochana,

What you can simply do is read the uploaded file once the upload is
finished and write it to the place where you want :)


On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi 
wrote:

> Unfortunately, that's not going to work. Shouldn't there be a file
> uploader in jaggery (that can upload a file to a given location)?
>
> On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Lochana!
>>
>> Do not know exactly whether their is a way to directly
>> give an absolute path and save the file.
>>
>> BTW, as a workaround, if no such way exists, can you try to create the
>> corresponding relative path for the given absolute one
>> and use the same method provided.
>>
>> Cheers!
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Tue, Oct 7, 2014 at 10:29 AM, Lochana Menikarachchi 
>> wrote:
>>
>>> Dilan, There is a specific requirement.. We need to upload a file to a
>>> given location
>>> Madhuka, That method returns absolute path.. What I want is to upload a
>>> file to a given location (that is when absolute path is given as a string)
>>> Thanks.
>>>
>>> On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha <
>>> madhukaudan...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> you can do it. absolute path
>>>>
>>>>  var absolute = function (path) {
>>>> var systemProcess = require('process');
>>>> var parent = 'file:///' +
>>>> (systemProcess.getProperty('jaggery.home') ||
>>>> systemProcess.getProperty('carbon.home')).replace(/[\\]/g,
>>>> '/').replace(/^[\/]/g, '');
>>>> return parent + MODULE_PATH + path;
>>>> };
>>>>
>>>> [1]
>>>> https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js
>>>> On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi >>> > wrote:
>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Cheers,
>>>> Madhuka Udantha
>>>> http://madhukaudantha.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> Lochana Menikarachchi
>>> Senior Tech Lead
>>> WSO2 Inc.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Lochana Menikarachchi
> Senior Tech Lead
> WSO2 Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error Occured When Deploying JaX-RS WebAPP in application Server

2014-10-06 Thread Dinesh J Weerakkody
Hi,

I haven't come across this issue. But found this mail thread [1] and just
give a try..

[1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html

On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna 
wrote:

> Hi all,
> I have tryed to deploy an Jax-RS app in Application Server .When it
> deploys, following exception is shown.
>
> Is there any work around which solves this issue ?
>
>
> Caused by: java.lang.LinkageError: loader constraint violation: when
> resolving method
> "org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;"
> the class loader (instance of
> org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
> class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader
> (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
> resolved class, org/wso2/securevault/SecretResolverFactory, have different
> Class objects for the type org/apache/axiom/om/OMElement used in the
> signature
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> at
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
> at org.apache.axis2.client.ServiceClient.(ServiceClient.java:143)
> at
> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:623)
> at
> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:609)
> at
> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:658)
> at
> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:650)
> at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>
>
>
> --
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API manager - Error while getting Subscriber

2014-10-03 Thread Dinesh J Weerakkody
Akila,

Do you get this error at each and every time when you starts nodes or just
one time error?

On Thu, Oct 2, 2014 at 3:11 PM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

>  Hi Udara and Dinesh,
>
>
>
> I think I solved the problem.. problem was with my oracle ojdbc connector
> I think. What I did was changed the odbc5 to odbc6 and cleared all
> generated files in repository/components/dropins.
>
> Thank you very much for your instant replies.
>
> Now all server components working but when starting Publisher it shows a
> error(but anyway server is up and running) regarding
> “CarbonDeploymentSchedulerTask Error while running deployment scheduler”
> check below for full error . also I search in the internet about this and
> it says I need to add some patch to solve this problem. Guys do you have
> any idea about that.
>
>
>
> ERROR - CarbonDeploymentSchedulerTask Error while running
> deployment scheduler..
>
> java.util.ConcurrentModificationException
>
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
>
> at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>
> at java.util.HashMap$EntryIterator.next(HashMap.java:832)
>
> at
> org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(Re
> positoryListener.java:270)
>
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(Repositor
> yListener.java:253)
>
> at
> org.apache.axis2.deployment.RepositoryListener.startListener(Repositor
> yListener.java:371)
>
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sc
> hedulerTask.java:59)
>
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.
> java:67)
>
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisD
> eployment(CarbonDeploymentSchedulerTask.java:79)
>
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(Carb
> onDeploymentSchedulerTask.java:124)
>
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439
> )
>
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:
> 317)
>
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.a
> ccess$101(ScheduledThreadPoolExecutor.java:98)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
> unPeriodic(ScheduledThreadPoolExecutor.java:180)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
> un(ScheduledThreadPoolExecutor.java:204)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> tor.java:895)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:918)
>
> at java.lang.Thread.run(Thread.java:662)
>
>
>
> Regards,
>
> Akila
>
>
>
> *From:* Dinesh J Weerakkody [mailto:dine...@wso2.com]
> *Sent:* Thursday, October 02, 2014 8:31 AM
> *To:* Udara Rathnayake
> *Cc:* Akila Nimantha [IT/EKO/LOITS]; dev@wso2.org
> *Subject:* Re: [Dev] API manager - Error while getting Subscriber
>
>
>
> Hi Akila,
>
> If you go down to your error log you will be able to see a database
> connection issue
>
> Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
>
>  When I go through your database configuration I saw a typo in connection
> URL
>
> jdbc:oracle:*chin*:@10.20.30.40:50/databasess
>
> and it should be
>
> jdbc:oracle:*thin*:@10.20.30.40:50/databasess
>
>
>
> I hope this will help you..
>
> Thanks.
>
>
>
>
>
> On Thu, Oct 2, 2014 at 1:45 AM, Udara Rathnayake  wrote:
>
>  Hi Akila,
>
> Are you getting the same error when you login to store app continuously?
>
>
>
> On Wed, Oct 1, 2014 at 7:46 AM, Akila Nimantha [IT/EKO/LOITS] <
> aki...@lolctech.com> wrote:
>
>  Hi all,
>
>
>
> I am trying to deploy api manager in cluster pattern with targeting oracle
> db. I just followed
> https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager and
> changed to oracle db from mysql. now all four components are up and running
> but in Store node, when I trying to login, in front end it shows nothing.
> But the log gives me following error,(please check attached log.txt for
> more..)
>
>
>
> TID: [0] [AM] [2014-10-01 19:54:17,205] ERROR
> {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
> org

Re: [Dev] WSO2 Committers += Samith Dassanayake

2014-10-01 Thread Dinesh J Weerakkody
Congratulations Samith.. !!!

On Thu, Oct 2, 2014 at 10:40 AM, Kasun De Silva  wrote:

> Congratz Samith 
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Thu, Oct 2, 2014 at 10:39 AM, Dimuthu Leelarathne 
> wrote:
>
>> Hi all,
>>
>> Its my pleasure to welcome Samith Dassanayake  as a WSO2 Committer.
>> Samith has contributed immensely to WSO2 App Factory and has shown great
>> commitment. In recognition of his contribution, he has been voted as a WSO2
>> Committer.
>>
>> Samith, welcome aboard!
>>
>> thanks,
>> dimuthu
>>
>> --
>> Dimuthu Leelarathne
>> Architect & Product Lead of App Factory
>>
>> WSO2, Inc. (http://wso2.com)
>> email: dimut...@wso2.com
>> Mobile : 0773661935
>>
>> Lean . Enterprise . Middleware
>>
>> ___
>> 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
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the standard way of handling exceptions

2014-10-01 Thread Dinesh J Weerakkody
Hi,

I'm just curious about the stranded way of handling exceptions in WSO2
products. When I go through source code, I found that we use
handleException method in some places (in some places use deferent method
such as create new exceptions, catch, log and ignore, etc.) Can someone
explain the standard exception handling mechanism in WSO2 products and it
will be very helpful for newcomers also. (use cases for each case like when
to use what method).


When it comes to handleException method, I have another question.


*Current handle exception method*
public void handleException(String msg, Exception e) throws
ProductException{
log.error(msg, e);
throw new ProductException(msg, e);
}

*Problem*
class One{
public void methodOne() {
try {
Two two = new Two();
two.methodTwo();
} catch (WhateverException e) {
handleException("Whatever exception message", e);
}
}
}

class Two{
public void methodTwo() {
try {
// Database manipulation code goes here
} catch (SQLException e) {
handleException("Cannot complete the transaction", e);
}
}
}

In handleException method we always create a new Exception. When we have
multiple method calls, there will be duplicate stacktraces and the actual
exception is printed in very latter part of the stack trace. Sometimes it
is bit difficult to trace an error. Is there any specific reason to create
new exceptions inside handleException method, instead of throwing same
exception object if the exceptions is an instance of ProductException like
below sample.

public void handleException(String msg, Exception e) throws
ProductException{
log.error(msg, e);
if(e instanceof ProductException)
   throw e;
throw new ProductException(msg, e);
}

Thank you.


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API manager - Error while getting Subscriber

2014-10-01 Thread Dinesh J Weerakkody
Hi Akila,

If you go down to your error log you will be able to see a database
connection issue

Caused by: java.sql.SQLException: ORA-00942: table or view does not exist

When I go through your database configuration I saw a typo in connection URL

jdbc:oracle:*chin*:@10.20.30.40:50/databasess

and it should be

jdbc:oracle:*thin*:@10.20.30.40:50/databasess

I hope this will help you..

Thanks.





On Thu, Oct 2, 2014 at 1:45 AM, Udara Rathnayake  wrote:

> Hi Akila,
>
> Are you getting the same error when you login to store app continuously?
>
> On Wed, Oct 1, 2014 at 7:46 AM, Akila Nimantha [IT/EKO/LOITS] <
> aki...@lolctech.com> wrote:
>
>>  Hi all,
>>
>>
>>
>> I am trying to deploy api manager in cluster pattern with targeting
>> oracle db. I just followed
>> https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager and
>> changed to oracle db from mysql. now all four components are up and running
>> but in Store node, when I trying to login, in front end it shows nothing.
>> But the log gives me following error,(please check attached log.txt for
>> more..)
>>
>>
>>
>> TID: [0] [AM] [2014-10-01 19:54:17,205] ERROR
>> {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.apimgt.api.APIManagementException: Error while getting
>> Subscriber (/store/modules/user/login.jag#38)
>> {org.jaggeryjs.scriptengine.engine.RhinoEngine}
>>
>> TID: [0] [AM] [2014-10-01 19:54:17,205] ERROR
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.apimgt.api.APIManagementException: Error while getting
>> Subscriber (/store/modules/user/login.jag#38)
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>>
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.apimgt.api.APIManagementException: Error while getting
>> Subscriber (/store/modules/user/login.jag#38)
>>
>>
>>
>> also I attached my changed master-datasource.xml and registry.xml.
>>
>> but in Store node sign up part is working fine.
>>
> What do you mean by store node here?
> Are you able to login to the publisher app?
>
> Can you attach logs from Key-manager node when you face this issue.
>
>>
>>
>> Regards,
>>
>> Akila
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facsimile or (ii) delete this message immediately if this
>> is an electronic communication. Thank you.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : 1 4087864651
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tomcat Session Replication Using Caching

2014-09-30 Thread Dinesh J Weerakkody
Hi,

I came across this project [1] and might be useful. It is based on
memcached library.

[1] http://code.google.com/p/memcached-session-manager/

On Tue, Sep 30, 2014 at 8:01 PM, Pubudu Dissanayake 
wrote:

> Hi All,
>
> I am working on an improvement for Carbon to enable tomcat session
> replication support using caching .Our previous implementation was based
> on a Tomcat Valve ( CarbonTomcatSessionReplicationValve.java).And it was
> used to replicate the session and adding it to cluster message.
>
> Http Session replication in carbon works like this (its quite similar to
> how the same work in a standalone tomcat).
>
> 1. Not every webbapp session will be replicated. You need to set a context
> property (distributable) for the webapp you need.
> 2. Once enabled, and when the session is modified on a node, that
> modification is sent to other nodes via a cluster message ( using
> clustering )
>
> For the new implementation, initial suggestion is to use our caching
> implementation. So we need to store the session object in the cache and
> when session is modified, then we need to update the cache.
>
> Please guide me through the process what should I carried out and any
> references to help me further to achieve [1].
>
> [1] https://redmine.wso2.com/issues/2816
> ​
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
> Blog: http://geekdetected.wordpress.com/
> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> <http://lk.linkedin.com/in/pubududissanayake>
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>
> ___________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Premalal

2014-09-28 Thread Dinesh J Weerakkody
Congratulations..

On Mon, Sep 29, 2014 at 9:43 AM, Rajith Vitharana  wrote:

> Congratulations Anuruddha ... :)
>
> On Mon, Sep 29, 2014 at 9:07 AM, Dakshika Jayathilaka 
> wrote:
>
>> Congratulations Anuruddha.!!
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Mon, Sep 29, 2014 at 9:06 AM, Danesh Kuruppu  wrote:
>>
>>> Congrats Anuruddha.!!
>>>
>>> On Mon, Sep 29, 2014 at 9:01 AM, Tharindu Dharmarathna <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Congratz Anuruddha!!
>>>>
>>>> On Mon, Sep 29, 2014 at 8:58 AM, Rajith Siriwardena 
>>>> wrote:
>>>>
>>>>> Congratulations Anuruddha.!!
>>>>>
>>>>> On Mon, Sep 29, 2014 at 8:53 AM, Dimuthu Leelarathne <
>>>>> dimut...@wso2.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Its my pleasure to welcome Anuruddha Premalal  as a WSO2 Committer.
>>>>>> Anuruddha has contributed immensely to WSO2 App Factory and has shown 
>>>>>> great
>>>>>> commitment. In recognition of his contribution, he has been voted as a 
>>>>>> WSO2
>>>>>> Committer.
>>>>>>
>>>>>> Anuruddha, welcome aboard!
>>>>>>
>>>>>> Regards,
>>>>>> Amila.
>>>>>>
>>>>>> --
>>>>>> Dimuthu Leelarathne
>>>>>> Architect & Product Lead of App Factory
>>>>>>
>>>>>> WSO2, Inc. (http://wso2.com)
>>>>>> email: dimut...@wso2.com
>>>>>> Mobile : 0773661935
>>>>>>
>>>>>> Lean . Enterprise . Middleware
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Rajith Siriwardana*
>>>>> Software Engineer | Cloud Team
>>>>> WSO2 Inc. ; http://wso2.com
>>>>> *lean. enterprise. middleware*
>>>>>
>>>>> ---
>>>>> *http://people.apache.org/~siriwardana
>>>>> <http://people.apache.org/~siriwardana>*
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Tharindu Dharmarathna*Associate Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94779109091 <%2B94779109091>*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Danesh Kuruppu
>>> Software Engineer
>>> WSO2 Inc,
>>> Mobile: +94 (77) 1690552
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to create List type of method in stub for a service method.

2014-09-17 Thread Dinesh J Weerakkody
Hi,

Yes. It is a limitation. Web services does not support Java Collections (or
any other language specific types). we have to use arrays.

On Thu, Sep 18, 2014 at 9:45 AM, Aiyadurai Rajeevan 
wrote:

> Hi All,
>
> i'm trying to implement a Order processing carbon component, Here i have
> to list down a set of books that are already available in store, to store
> the books i used List and wrote a method to returns this as *List
> getBook() *in service class. But after I generate the stub for this
> service we could noticed that this method has been stubbed as an Array (the
> actual code for this stubbed method is : public
> org.wso2.carbon.library.mgt.data.xsd.Book[] getBook())
>
> and also as per the code, we could see the output list has been
> purposefully converted to array as below,
>
>  object.set_return((org.wso2.carbon.library.mgt.data.xsd.Book[])
>
>
> org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
>
>
> org.wso2.carbon.library.mgt.data.xsd.Book.class,
> list1));
>
>
> I would appreciate if someone could please let me know the reason for this
> strange behavior, is there any limitation in sending List over webservice?
>
> Thanks & Regards,
> S.A.Rajeevan
> Software Engineer WSO2 Inc
> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: How to delete json element using Jaggery?

2014-08-19 Thread Dinesh J Weerakkody
Hi Thushara,

As I understood, what you want to do is that remove a record from the table
on a button click.

So to do that, you should understand the way that Jaggary works. Simply,
Jaggary is not a client side scripting API. Jaggary executes in server side
live JSP. So we have to send a request to the server which contain the
jaggary code. As you can see in the tutorial you have followed, you have to
write separate methods to add, remove employees. and you should have a way
to find the relevant method to execute. (Hint: using an additional
parameter to identify the function). In add remove methods you should
update the employees.json file as described in the tutorial.






On Tue, Aug 19, 2014 at 3:24 PM, Buddhima Wijeweera 
wrote:

> Hi,
>
> Hope following example will give you the answer:
>
> <%
>  var e = {
>  "employees": [
>   {
>"id": "1",
>"name": "Kasun",
>"age": "25",
>"town": "Galle",
>"salary": "4"
>   },
>   {
>"id": "3",
>"name": "Sunil",
>"age": "29",
>"town": "Colombo",
>"salary": "2"
>   },
>   {
>"id": "4",
>"name": "Rani",
>"age": "32",
>"town": "Kandy",
>"salary": "6"
>   }
>
>  ]
>
> }; // Initial array
>
> delete e.employees[0] // Delete first element
>
> print(e); // Print array
>
> %>
>
> Which results:
> {"employees" : [{"id" : "3", "name" : "Sunil", "age" : "29", "town" :
> "Colombo", "salary" : "2"}, {"id" : "4", "name" : "Rani", "age" : "32",
> "town" : "Kandy", "salary" : "6"}]}
>
>
>
>
> On Tue, Aug 19, 2014 at 2:57 PM, Thushara Ranawaka 
> wrote:
>
>>
>>
>> -- Forwarded message --
>> From: Thushara Ranawaka 
>> Date: Tue, Aug 19, 2014 at 2:56 PM
>> Subject: How to delete json element using Jaggery?
>> To: WSO2 Training Group , Waruna De Silva <
>> waru...@wso2.com>, d...@wso2.com
>>
>>
>> Hi,
>> As per the fast track training for the new employees in the 6.a.ii we
>> need to develop a jaggery app, that deal with JSON data formats. Therefore
>> I found this article[1] and followed it. Now I need to add a new feature
>> which is to delete this json elements one by one. I logged a question in
>> stackoverflow[2] as well but no one is answering it. Could some one help me
>> on this.
>>
>> Kindly refer the stackoverflow question for more information.
>>
>>1.
>>
>>   [1]
>> http://blog.lasindu.com/2014/05/how-to-write-wso2-jaggery-application.html
>> <http://www.google.com/url?q=http%3A%2F%2Fblog.lasindu.com%2F2014%2F05%2Fhow-to-write-wso2-jaggery-application.html&sa=D&sntz=1&usg=AFQjCNHkm7jAgXBGXMs_wTQv6x7lpmhrUw>
>> [2]
>> http://stackoverflow.com/questions/25304255/how-to-delete-json-element-using-jaggery
>>
>>
>> <http://www.google.com/url?q=http%3A%2F%2Fblog.lasindu.com%2F2014%2F05%2Fhow-to-write-wso2-jaggery-application.html&sa=D&sntz=1&usg=AFQjCNHkm7jAgXBGXMs_wTQv6x7lpmhrUw>
>> --
>> Thushara Kasun Ranawaka
>> Software Engineer
>> WSO2 Inc.; <http://wso2.com/>
>> lean.enterprise.middleware
>> Mobile : *+94 (0) 773438949*
>> *thusha...@wso2.com *
>>
>>
>>
>> --
>> Thushara Kasun Ranawaka
>> Software Engineer
>> WSO2 Inc.; <http://wso2.com/>
>> lean.enterprise.middleware
>> Mobile : *+94 (0) 773438949*
>> *thusha...@wso2.com *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thank you.

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] - Couldn't download artifacts

2014-07-22 Thread Dinesh J Weerakkody
Hi Chamila,

You should be able to resolve this issue by adding the WSO2 repository to
your pom file. Just copy and paste following repository declaration any
where within  tag.

 

wso2-maven2-repository
WSO2 Maven2 Repository
http://dist.wso2.org/maven2

true


true
never
fail






On Tue, Jul 22, 2014 at 9:10 PM, Chamila De Alwis  wrote:

> Thanks Harsha!
>
> That did it actually. Earlier the build failed because the dependencies
> were not resolved.
>
> I wasn't aware of the locations of these repositories. Is there any
> particular document mentioning these?
>
>
> On Tue, Jul 22, 2014 at 6:23 PM, Harsha Kumara  wrote:
>
>> Hi Chamila,
>> Did you build your project? Or is it failing because of cannot resolved
>> these jars? May be you haven's specify the wso2 repositories in your pom
>> file. Can you check it?
>> See repositories in [1] as an example.
>>
>> [1]-
>> https://github.com/wso2-dev/carbon-storage-management/blob/master/pom.xml
>> Thanks,
>> Harsha
>>
>>
>> On Tue, Jul 22, 2014 at 6:05 PM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying out this[1] tutorial to create a carbon component. However
>>> two dependencies can't be solved because they are not located.
>>>
>>> 
>>> org.apache.ws.commons.axiom.wso2
>>> axiom
>>> 1.2.11.wso2v4
>>> 
>>> 
>>> wsdl4j.wso2
>>> wsdl4j
>>> 1.6.2.wso2v4
>>> 
>>>
>>> Should I specify any mirror settings to resolve these jars?
>>>
>>> I've located the second jar, wsdl4j[2] but I can't locate the axiom
>>> jar[3]. Both of these can't be resolved.
>>>
>>> [1] -
>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>> [2] -
>>>
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/wsdl4j/wso2/wsdl4j/maven-metadata.xml
>>> [3] - http://findjar.com/index.x?query=axiom+limit%3Anone
>>>
>>>
>>> --
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> _______
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thank you.

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev