Re: [Dev] C5- Datasource startup order issue

2016-03-14 Thread Himasha Guruge
Hi Sameera,

Thanks for the provided info.In bpmn component   to  build  activiti
engine, we require the datasource bundle to be available. Therefore we
tried adding  @Reference annotation  of
org.wso2.carbon.kernel.datasource.core.internal.DataSourceListenerComponent
(for activate method of ActivitiEngineBuilder) but this did not work.

 AFAIU what you suggest is to implement a Listener class that would contain
onJNDIReady() method, which would require other bundles(activiti bundle in
this case) to wait until this method is executed.  Could you please provide
any suggestions on this?

Regards,


On Tue, Mar 15, 2016 at 8:52 AM, Sameera Jayasoma  wrote:

> HI Himasha,
>
> You can refer following documents and samples.
>
> https://github.com/wso2/carbon-jndi
>
> https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java
>
> On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge  wrote:
>
>> Hi Sameera,
>>
>> With regards to $subject, so far we have used the workaround of manually
>> renaming the bundle's symbolic name which works perfectly. However is it
>> possible to know when this fix will be available?
>>
>> Regards,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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


[Dev] Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-03-14 Thread Dulaj Rajitha

/Hi, /
I'm Dulaj Rajitha, 3rd year (Semester 6) undergraduate, university of Moratuwa 
and I found this project is interesting.
I have working experience in machine learning throughout my internship and 
experience in working on Apache Spark ML and MlLib with java 8.
So please provide me some guide lines on how to proceed and what are the 
technologies that are required to get familiar with.

---
Regards,
Dulaj Rajitha,
/Undergraduate //Department of Computer Science and Engineering //University of 
Moratuwa./

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


[Dev] WSO2 Carbon Kernel 4.4.5 Released

2016-03-14 Thread Niranjan Karunanandham
*WSO2 Carbon Kernel 4.4.5 Released*

The Carbon team is pleased to announce the release of Carbon Kernel 4.4.5.

*Improvements and Bug fixes*
https://wso2.org/jira/issues/?filter=12978

*Known Issues*
https://wso2.org/jira/issues/?filter=12979

*How to Contribute*

   - WSO2 Carbon Kernel code is hosted in github.
   - The Git repository is https://github.com/wso2/carbon-kernel/
   - Carbon Kernel 4.4.5 release tag is
   https://github.com/wso2/carbon-kernel/releases/tag/v4.4.5
   - Please report issues at Carbon Jira, https://wso2.org/jira/browse/
   CARBON


*Contact Us *

​WSO2 Carbon developers​ can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org

​You can download the released distribution from the following location.
http://wso2.com/products/carbon/


​Thank you for your interest in WSO2 Carbon Kernel​.


Best Regards
Carbon Team​

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] C5 - Enabling SOAP support for BPEL with Apache CXF integration

2016-03-14 Thread Amal Gunatilake
Hi All,

Following is the initial architecture we came up with in-order to enable
SOAP support in C5 for BPEL using Apache CXF integration.

​

Any feedback is highly appreciated.

[1]
https://drive.google.com/a/wso2.com/file/d/0B7E7tgre4G1RanRObkRqSElkX2M/view?usp=sharing

Best regards,
Amal.

-- 
*Amal Gunatilake*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we add a batch of resources to registry in one go?

2016-03-14 Thread Prabath Abeysekera
I see, okay. Thanks for the info, Isuruwan!

On Mon, Mar 14, 2016 at 12:21 PM, Isuruwan Herath  wrote:

> It is done at the artifact level using the Zip Media Type handler. Yes, at
> the core registry level it saves one by one. Currently there is no support
> for bulk save at registry API level.
>
> On Mon, Mar 14, 2016 at 12:16 PM, Prabath Abeysekera 
> wrote:
>
>> Well, the batch-upload option you've just described is something done
>> through the GovernanceArtifactManager impl? AFAIU, that too depends on the
>> core registry APIs at a low level right? So, I was just wondering if
>> there's any mechanism that allows us to do this at the core registry API
>> level. My primary intention is to update the whole batch in one-go without
>> doing multiple "registry.put()"s.
>>
>> Cheers,
>> Prabath
>>
>> On Mon, Mar 14, 2016 at 11:43 AM, Isuruwan Herath 
>> wrote:
>>
>>> For WSDL or WADL type resources you can use Governance Archive files for
>>> batch upload. Otherwise, it is possible with a custom handler.
>>>
>>> On Fri, Mar 11, 2016 at 8:39 PM, Prabath Abeysekera 
>>> wrote:
>>>
 Folks,

 Is $Subject possible? API doesn't say so, was just wondering if we got
 any workaround.

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

>>>
>>>
>>>
>>> --
>>> Isuruwan Herath
>>> Technical Lead
>>>
>>> Contact: +94 776 273 296
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Annotations are not processed correctly with maven-bundle-plugin 3.0.1 version

2016-03-14 Thread Kishanthan Thangarajah
Hi Aruna,

Let's contact maven-bundle plugin mailing list and bndtools github project
and check with them first on this. bndtools is the internal lib used with
processing ds_annotations in bundles.

On Tue, Mar 15, 2016 at 10:41 AM, Sameera Jayasoma  wrote:

> Yes. Following JIRA is related to this issue. We need to find out why they
> have done this change.
>
> https://wso2.org/jira/browse/CARBON-15810
>
> On Tue, Mar 15, 2016 at 5:31 AM, Aruna Karunarathna 
> wrote:
>
>> Hi all,
>>
>> With the upgrade of wso2 parent pom version 3, the maven-bundle-plugin
>> version is upgraded to 3.0.1.
>>
>> The property annotation inside the Component are not being added to the
>> Manifest headers with this new version. See the below example.
>>
>> @Component(
>> name =
>> "org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent",
>> immediate = true,
>>
>>
>>
>> *property = {
>> "capability-name=org.wso2.carbon.kernel.deployment.Deployer",
>> "component-key=carbon-deployment-service"}*
>> )
>>
>> for the 2.5.4 version's generated MANIFEST.MF I could see the following
>> in Provide-Capability section.
>>
>> Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2
>>  .carbon.kernel.startupresolver.RequiredCapabilityListener";
>>
>> *capability-n
>>  ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon
>>  -sample-deployment-engine*
>>
>> And for the 3.0.1 version's generated MANIFEST.MF I could see the
>> following in Provide-Capability section. the property tag inside the
>> Component annotation is missing.
>>
>> Provide-Capability: osgi.service;objectClass:List="org.wso2.carb
>>  on.kernel.startupresolver.RequiredCapabilityListener"
>>
>> Also the objectClass is changed to objectClass:List.
>>
>> Regards,
>> Aruna
>> --
>>
>> *Aruna Sujith Karunarathna *
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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

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


Re: [Dev] [AppCloud] Freezing master branch of app-cloud repo

2016-03-14 Thread Pirinthapan Mahendran
Hi all,

I have committed the merged changes.

Thanks,
Pirinthapan.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Mon, Mar 14, 2016 at 4:35 PM, Pirinthapan Mahendran  wrote:

> Hi AF Team,
>
> Since we are in the process of merging some drastic changes done after
> restructuring the database, we are freezing the master branch of app-cloud
> repo. So don't commit any further changes to the master branch until
> further notification.
>
> Thanks & Regards,
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB][Connector Redmine] "401 Authorization Required" error when using Redmine connector

2016-03-14 Thread Bhashinee Nirmali
Hi All,

I tried adding the Redmine connector of WSO2 ESB. First I created a Redmine
account and got the key. The url and the key I used to create the proxy
service are listed below.

apiURL - http://connector.m.redmine.org
apiKey - 3bed7029a2e5b8cb6978d81676fc9d3dab74398a


I got an error when trying to send a request. Here I have attached the
error I got and the proxy service.
Kindly appreciate your help on this.

Thank you.

-- 
*Bhashinee Nirmali*
Software Engineer Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>


wirelog
Description: Binary data

http://ws.apache.org/ns/synapse;
   name="Redmine"
   transports="https http"
   startOnLoad="true"
   trace="disable">
   
   
  
 http://connector.m.redmine.org;
   scope="default"
   type="STRING"/>
 
 
 
 
 
 
{$ctx:apiUrl}
{$ctx:apiKey}
{$ctx:responseType}
 
 
 
{$ctx:description}
{$ctx:name}
{$ctx:identifier}
 
 
  
   

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


Re: [Dev] Annotations are not processed correctly with maven-bundle-plugin 3.0.1 version

2016-03-14 Thread Sameera Jayasoma
Yes. Following JIRA is related to this issue. We need to find out why they
have done this change.

https://wso2.org/jira/browse/CARBON-15810

On Tue, Mar 15, 2016 at 5:31 AM, Aruna Karunarathna  wrote:

> Hi all,
>
> With the upgrade of wso2 parent pom version 3, the maven-bundle-plugin
> version is upgraded to 3.0.1.
>
> The property annotation inside the Component are not being added to the
> Manifest headers with this new version. See the below example.
>
> @Component(
> name =
> "org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent",
> immediate = true,
>
>
>
> *property = {
> "capability-name=org.wso2.carbon.kernel.deployment.Deployer",
> "component-key=carbon-deployment-service"}*
> )
>
> for the 2.5.4 version's generated MANIFEST.MF I could see the following in
> Provide-Capability section.
>
> Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2
>  .carbon.kernel.startupresolver.RequiredCapabilityListener";
>
> *capability-n
>  ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon
>  -sample-deployment-engine*
>
> And for the 3.0.1 version's generated MANIFEST.MF I could see the
> following in Provide-Capability section. the property tag inside the
> Component annotation is missing.
>
> Provide-Capability: osgi.service;objectClass:List="org.wso2.carb
>  on.kernel.startupresolver.RequiredCapabilityListener"
>
> Also the objectClass is changed to objectClass:List.
>
> Regards,
> Aruna
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] Proposal 10: [ESB/GW] Security Gateway on top of WSO2 Gateway

2016-03-14 Thread samitha palihawadana
Hi,

I am a Computer Science and Engineering third year Undergraduate of
University of Moratuwa. I am interested in Security Gateway on top of WSO2
Gateway project for GSoC 2016. Please give me some guidance for continue.

-- 
Best regards,
Samitha Palihawadana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Dockerfiles build logs

2016-03-14 Thread Imesh Gunaratne
Thanks Chamila!

On Tue, Mar 15, 2016 at 7:39 AM, Chamila De Alwis  wrote:

> This change is now in the remote with commit [1].
>
> [1] -
> https://github.com/wso2/dockerfiles/commit/e6465a9d93103020316cbfac908bbb41fe2ac776
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Tue, Mar 15, 2016 at 7:27 AM, Chamila De Alwis 
> wrote:
>
>> Hi Vishanth, Imesh,
>>
>> This was introduced to keep the output of the build script to the minimum
>> and to exit with a proper code if the docker build command fails. If the
>> puppet run fails, the docker build command does not fail, as it does not
>> seem to exit with a non-zero code. Therefore, it was necessary to grep for
>> any "error" outputs and exit accordingly.
>>
>> However I see your point about being verbose when it comes to the build.
>> I'm testing a -q flag for the build script which if used, will suppress the
>> output and only show any errors. I will push the changes soon.
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, Mar 14, 2016 at 5:11 PM, Imesh Gunaratne  wrote:
>>
>>> IMO it is important to show the docker build command output to the user.
>>> Otherwise it would be difficult for the user to understand what's happening
>>> behind the scene.
>>>
>>> Thanks
>>>
>>> On Mon, Mar 14, 2016 at 4:07 PM, Vishanth Balasubramaniam <
>>> vishan...@wso2.com> wrote:
>>>
 Hi,

 Currently when building the wso2 docker images [1], we are not
 prompting the complete image building logs [2], we are only prompting if
 there is any error while building.

 Is there any specific reason for not prompting the complete log trace
 when building these images?

 Isn't it better to show the complete build logs or at least an option
 for user to see the complete logs? Thoughts?

 [1] - https://github.com/wso2/dockerfiles
 [2] -
 https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-build.sh#L196-L208

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

 mobile: *+94 77 17 377 18*
 about me: *http://about.me/vishanth *

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


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


[Dev] [dev][BAM] Format of the Row_ID in EVENT_KS : bam_mediation_stats_data_publisher table

2016-03-14 Thread Hasanthi Purnima Dissanayake
Hi All,

In EVENT_KS : bam_mediation_stats_data_publisher table the primary key is
(Row_ID) a composite key.
E.g : 1457935867059::127.0.0.1::9443::2448
Can someone please explain me the format of this key. Is it Timestamp :: IP
address :: Port :: Random Number?

Any feedback is highly appreciated.

Thanks

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com
M :0718407133| http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Annotations are not processed correctly with maven-bundle-plugin 3.0.1 version

2016-03-14 Thread Aruna Karunarathna
Hi all,

With the upgrade of wso2 parent pom version 3, the maven-bundle-plugin
version is upgraded to 3.0.1.

The property annotation inside the Component are not being added to the
Manifest headers with this new version. See the below example.

@Component(
name =
"org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent",
immediate = true,



*property = {
"capability-name=org.wso2.carbon.kernel.deployment.Deployer",
"component-key=carbon-deployment-service"}*
)

for the 2.5.4 version's generated MANIFEST.MF I could see the following in
Provide-Capability section.

Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2
 .carbon.kernel.startupresolver.RequiredCapabilityListener";

*capability-n
 ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon
 -sample-deployment-engine*

And for the 3.0.1 version's generated MANIFEST.MF I could see the following
in Provide-Capability section. the property tag inside the Component
annotation is missing.

Provide-Capability: osgi.service;objectClass:List="org.wso2.carb
 on.kernel.startupresolver.RequiredCapabilityListener"

Also the objectClass is changed to objectClass:List.

Regards,
Aruna
-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to set Password Policy per tenant

2016-03-14 Thread Gayan Gunawardana
On Tue, Mar 15, 2016 at 9:42 AM, Johann Nallathamby  wrote:

> Yes. We don't have tenanted password policy validator by default in IS. We
> may have to write one.
>
Thanks Johann. Will look into custom password validator.

>
> On Tue, Mar 15, 2016 at 9:25 AM, Gayan Gunawardana  wrote:
>
>> Hi All,
>>
>> Is there a way to configure password policy per tenant ?
>>
>>  Do we need to write custom password validator according to [1] ?
>>
>>
>> [1]
>> https://docs.wso2.com/display/IS510/Writing+a+Custom+Password+Validator
>>
>> Thanks,
>> Gayan
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to set Password Policy per tenant

2016-03-14 Thread Johann Nallathamby
Yes. We don't have tenanted password policy validator by default in IS. We
may have to write one.

On Tue, Mar 15, 2016 at 9:25 AM, Gayan Gunawardana  wrote:

> Hi All,
>
> Is there a way to configure password policy per tenant ?
>
>  Do we need to write custom password validator according to [1] ?
>
>
> [1]
> https://docs.wso2.com/display/IS510/Writing+a+Custom+Password+Validator
>
> Thanks,
> Gayan
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to set Password Policy per tenant

2016-03-14 Thread Gayan Gunawardana
Hi All,

Is there a way to configure password policy per tenant ?

 Do we need to write custom password validator according to [1] ?


[1] https://docs.wso2.com/display/IS510/Writing+a+Custom+Password+Validator

Thanks,
Gayan
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5- Datasource startup order issue

2016-03-14 Thread Sameera Jayasoma
HI Himasha,

You can refer following documents and samples.

https://github.com/wso2/carbon-jndi
https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java

On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge  wrote:

> Hi Sameera,
>
> With regards to $subject, so far we have used the workaround of manually
> renaming the bundle's symbolic name which works perfectly. However is it
> possible to know when this fix will be available?
>
> Regards,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] C5- Datasource startup order issue

2016-03-14 Thread Himasha Guruge
Hi Sameera,

With regards to $subject, so far we have used the workaround of manually
renaming the bundle's symbolic name which works perfectly. However is it
possible to know when this fix will be available?

Regards,

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


Re: [Dev] WSO2 Dockerfiles build logs

2016-03-14 Thread Chamila De Alwis
This change is now in the remote with commit [1].

[1] -
https://github.com/wso2/dockerfiles/commit/e6465a9d93103020316cbfac908bbb41fe2ac776



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



On Tue, Mar 15, 2016 at 7:27 AM, Chamila De Alwis  wrote:

> Hi Vishanth, Imesh,
>
> This was introduced to keep the output of the build script to the minimum
> and to exit with a proper code if the docker build command fails. If the
> puppet run fails, the docker build command does not fail, as it does not
> seem to exit with a non-zero code. Therefore, it was necessary to grep for
> any "error" outputs and exit accordingly.
>
> However I see your point about being verbose when it comes to the build.
> I'm testing a -q flag for the build script which if used, will suppress the
> output and only show any errors. I will push the changes soon.
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, Mar 14, 2016 at 5:11 PM, Imesh Gunaratne  wrote:
>
>> IMO it is important to show the docker build command output to the user.
>> Otherwise it would be difficult for the user to understand what's happening
>> behind the scene.
>>
>> Thanks
>>
>> On Mon, Mar 14, 2016 at 4:07 PM, Vishanth Balasubramaniam <
>> vishan...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Currently when building the wso2 docker images [1], we are not prompting
>>> the complete image building logs [2], we are only prompting if there is any
>>> error while building.
>>>
>>> Is there any specific reason for not prompting the complete log trace
>>> when building these images?
>>>
>>> Isn't it better to show the complete build logs or at least an option
>>> for user to see the complete logs? Thoughts?
>>>
>>> [1] - https://github.com/wso2/dockerfiles
>>> [2] -
>>> https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-build.sh#L196-L208
>>>
>>> Regards,
>>> Vishanth
>>> --
>>> *Vishanth Balasubramaniam*
>>> Committer & PMC Member, Apache Stratos,
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>
>>> mobile: *+94 77 17 377 18*
>>> about me: *http://about.me/vishanth *
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> Lean . Enterprise . Middleware
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Dockerfiles build logs

2016-03-14 Thread Chamila De Alwis
Hi Vishanth, Imesh,

This was introduced to keep the output of the build script to the minimum
and to exit with a proper code if the docker build command fails. If the
puppet run fails, the docker build command does not fail, as it does not
seem to exit with a non-zero code. Therefore, it was necessary to grep for
any "error" outputs and exit accordingly.

However I see your point about being verbose when it comes to the build.
I'm testing a -q flag for the build script which if used, will suppress the
output and only show any errors. I will push the changes soon.



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



On Mon, Mar 14, 2016 at 5:11 PM, Imesh Gunaratne  wrote:

> IMO it is important to show the docker build command output to the user.
> Otherwise it would be difficult for the user to understand what's happening
> behind the scene.
>
> Thanks
>
> On Mon, Mar 14, 2016 at 4:07 PM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> Hi,
>>
>> Currently when building the wso2 docker images [1], we are not prompting
>> the complete image building logs [2], we are only prompting if there is any
>> error while building.
>>
>> Is there any specific reason for not prompting the complete log trace
>> when building these images?
>>
>> Isn't it better to show the complete build logs or at least an option for
>> user to see the complete logs? Thoughts?
>>
>> [1] - https://github.com/wso2/dockerfiles
>> [2] -
>> https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-build.sh#L196-L208
>>
>> Regards,
>> Vishanth
>> --
>> *Vishanth Balasubramaniam*
>> Committer & PMC Member, Apache Stratos,
>> Software Engineer, WSO2 Inc.; http://wso2.com
>>
>> mobile: *+94 77 17 377 18*
>> about me: *http://about.me/vishanth *
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Gsoc Project proposal 21

2016-03-14 Thread Tharindu Edirisinghe
Hi Asantha,

Great work ! We will check the source code and provide you feedback soon.
Regarding implementing the interface rather than extending the
JDBCUserStoreManager class... yes here we can and have to implement all the
methods from the scratch because we won't be be able to reuse any code used
in RDBMSs. As you progress through the project, write your experiences in a
blog too...

Thanks,
TharinduE

On Tue, Mar 15, 2016 at 2:48 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> with the help of your guidance and reference links you sent i been able to
> create partially completed working sample of user store for mongodb ,i
> created the userstore by implementing the UserStoreManager interface is it
> a better way to implement the user store? here i shared my work in [1].hope
> for your feedback to continue the user store development,
> Now i'm in the stage of developing the database architecture for mongodb
> and i will soon update all my works done so far in my blog
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Regards,
> Asantha
>
> On Sat, Mar 12, 2016 at 1:28 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> Glad to see you are progressing through the project.
>>
>> Since you are trying this in Identity Server 5.1.0, you need to update
>> the dependencies with correct versions as below.
>>
>> 
>> org.wso2.carbon
>> org.wso2.carbon.user.core
>> 4.4.3
>> 
>> 
>> org.wso2.carbon
>> org.wso2.carbon.user.api
>> 4.4.3
>> 
>>
>>
>> Also for the OSGI issue, I used the maven-scr-plugin 1.7.2 version and
>> could get the OSGI bundle created properly.
>>
>> org.apache.felix
>> maven-scr-plugin
>> 1.7.2
>>
>>
>> I have sent a pull request [1] with these changes to your GIT repo.
>>
>> When you extend the AbstractUserStoreManager class, you must implement
>> the following two methods.
>>
>>
>> public Properties getDefaultUserStoreProperties() {
>> return null;
>> }
>>
>> public Map getProperties(Tenant tenant) throws
>> UserStoreException {
>> return null;
>> }
>>
>> If you have not implemented those two methods, then in the management
>> console UI, userstores dropdown, your userstore manager will not appear.
>>
>> You can find a working sample in [2]. However it is done for IS 5.0.0
>> version, but you can modify the dependencies in POM file as above and get
>> it working on IS 5.1.0.
>>
>> Once you get it to working, you can refactor the code and add your own
>> implementation for the MongoDB userstore manager so that you won't face any
>> OSGI related issues.
>>
>> [1] https://github.com/asanthamax/mongodbuserstoremanager/pull/1/files
>>
>> [2]
>> https://svn.wso2.org/repos/wso2/people/tharindue/customuserstore/mystore/
>>
>> Thanks,
>> TharinduE
>>
>> On Sat, Mar 12, 2016 at 1:33 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi tharindu,
>>>
>>> currently i'm in the development stage of mongodb user store manager and
>>> i implemented some modules to communicate with mongodb and i shared what i
>>> have done so far in github[1]. can you review my code and give me a
>>> feedback whether my approach is correct or has to be improve,  I had some
>>> questions while i developing user store,how can i make carbon core module?
>>>  and also how can i package osgi bundles inside jar folder i added
>>> packaging as bundle in pom file but it's still not adding it to jar file
>>> any idea or suggestion would be grateful.
>>>
>>> [1].  https://github.com/asanthamax/mongodbuserstoremanager
>>>
>>> thanks,
>>> Best Regards,
>>> Asantha
>>>
>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>
>


-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: GSoC 2016- Contact Development Team feature in DevStudio.

2016-03-14 Thread Jasintha Dasanayake
Hello Nathiesha

Please see my inline comments ,

On Mon, Mar 14, 2016 at 10:29 PM, Nathiesha Maddage <
nathieshamadd...@gmail.com> wrote:

> Hi again,
>
> I went through all the 4 links. I followed the tutorials on developing an
> eclipse plugin.
> I created a sample plugin project and practiced the basics like creating
> views, editors, parts and perspectives. I also practiced the basics in
> creating commands, handlers, adding menu items and toolbars and created
> features using the plugin. I feel confident in the basics, and I am
> currently referring to more advanced topics in Eclipse plugin development
> and getting familiar with them.
>

Good to hear that you have familiar with all basic eclipse plugin type and
development  process ,


>
> I also studied about the basic functionality of the eclipse error
> reporting tool and how it reports bugs to *bugzilla.* As that document
> describes, the same tool can be configured for other eclipse based tools as
> well. Is Developer studio a standalone Rich Client Platform application?
>

NO , Developer Studio is not a RCP  , we develop general eclipse
plugins/features and install those into the  eclipse , Actually Developer
studio is a set of plugin/features installed on top of eclipse IDE


> Or is it Eclipse IDE with WSO2 features? Is there a way I can get some
> basic idea about the Developer studio and how different it is from the
> normal Eclipse IDE?
>

 So there is no different , we use vanilla Eclipse IDE to installed our
features



>
> And regarding the proposed contact development team feature, is it going
> to provide the same functionality as eclipse error reporting tool?
>
Yes very much same functionalities , but if you come across more valuable
 functionalities please discuss here


> As I understood, the contact development team feature should automatically
> detect any errors in devStudio and fetch the error logs and meta data
> automatically and sends a report to the development team via wso2 web
> support portal. Please correct me if I have not understood it properly.
>

Yes your understanding is correct , but contact details should be
configurable  because it won't be always wso2 support portal

Could you please come-up with the high level architecture diagram for this
feature ?


PS : It's very important to keep visibility in open source community  so
don't send private mails, always copy @dev list as well.

Thanks and Regards
/Jasintha


>
> Thanks
>
> Nathiesha
>
>
>
>
> On Fri, Mar 11, 2016 at 5:00 PM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi Jasintha,
>>
>> Thank you for the guidance. I will sure go through the tutorials for
>> eclipse plugin as soon as possible and will go through the Eclipse Mars
>> error reporting feature as well.After that I can discuss with you about the
>> error reporting tool requirements for wso2 plugin in detail, and start with
>> the proposal.
>>
>> Thanks again.
>>
>> Regards
>> Nathiesha
>>
>> On Fri, Mar 11, 2016 at 7:04 AM, Jasintha Dasanayake 
>> wrote:
>>
>>> Hello Nathiesha
>>>
>>> Thanks for your interest in Developer Studio.
>>>
>>> Developer Studio is eclipse plugins based product, so basically you need
>>> to know about eclipse plugin development process , that you learn from here
>>> [1][2], If you have any questions, just let me know, so that I can help
>>> you. Once you got the basic understanding and feel confident in developing
>>> eclipse plugins, maybe let me know how you would like to approach the task
>>> so that we can discuss the project.
>>>
>>> So the task is to create a built in error reporting tool that can be
>>> used to identify WSO2 plugins related problems and automatically upload
>>> problems to a WSO2 server, providing key insights as to where problems may
>>> exits in the Developer studio and how they can be improved.
>>>
>>> Similar kind of feature has been implemented for Eclipse Mars [3] to
>>> reach eclipse committers, you can refer that [4] to implement this feature
>>> in Developer studio
>>>
>>> [Looping other possible mentors ]
>>>
>>> Thanks and Regards
>>> /Jasintha
>>>
>>> [1] -http://www.vogella.com/tutorials/EclipsePlugIn/article.html
>>> [2] -
>>> http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Ffirstplugin.htm
>>> [3] -
>>> http://eclipsesource.com/blogs/2015/06/23/error-reporting-top-eclipse-mars-feature-2/
>>> [4] -
>>> https://docs.google.com/document/d/14vRLXcgSwy0rEbpJArsR_FftOJW1SjWUAmZuzc2O8YI/pub
>>>
>>>
>>> On Thu, Mar 10, 2016 at 3:04 PM, Nathiesha Maddage <
>>> nathieshamadd...@gmail.com> wrote:
>>>
 Hi,


 I am a computer science and engineering undergraduate from University
 of Moratuwa.
 I am interested in the Contact Development Team feature in DevStudio
 project for GSoC 2016. Please let me know how to proceed.

 Regards
 Nathiesha Maddage


 ___
 Dev mailing list

[Dev] Proposal 27

2016-03-14 Thread Gishani Rangoda
Hi,
I am a 4th year student at University of Colombo School of Computing and
I'm familiar with java technologies. I'm interested in proposal 27 and
would be grateful if you can help me to get started.
Thank you.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Gsoc Project proposal 21

2016-03-14 Thread Asantha Thilina
Hi Tharindu,

with the help of your guidance and reference links you sent i been able to
create partially completed working sample of user store for mongodb ,i
created the userstore by implementing the UserStoreManager interface is it
a better way to implement the user store? here i shared my work in [1].hope
for your feedback to continue the user store development,
Now i'm in the stage of developing the database architecture for mongodb
and i will soon update all my works done so far in my blog

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Regards,
Asantha

On Sat, Mar 12, 2016 at 1:28 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Glad to see you are progressing through the project.
>
> Since you are trying this in Identity Server 5.1.0, you need to update the
> dependencies with correct versions as below.
>
> 
> org.wso2.carbon
> org.wso2.carbon.user.core
> 4.4.3
> 
> 
> org.wso2.carbon
> org.wso2.carbon.user.api
> 4.4.3
> 
>
>
> Also for the OSGI issue, I used the maven-scr-plugin 1.7.2 version and
> could get the OSGI bundle created properly.
>
> org.apache.felix
> maven-scr-plugin
> 1.7.2
>
>
> I have sent a pull request [1] with these changes to your GIT repo.
>
> When you extend the AbstractUserStoreManager class, you must implement the
> following two methods.
>
>
> public Properties getDefaultUserStoreProperties() {
> return null;
> }
>
> public Map getProperties(Tenant tenant) throws
> UserStoreException {
> return null;
> }
>
> If you have not implemented those two methods, then in the management
> console UI, userstores dropdown, your userstore manager will not appear.
>
> You can find a working sample in [2]. However it is done for IS 5.0.0
> version, but you can modify the dependencies in POM file as above and get
> it working on IS 5.1.0.
>
> Once you get it to working, you can refactor the code and add your own
> implementation for the MongoDB userstore manager so that you won't face any
> OSGI related issues.
>
> [1] https://github.com/asanthamax/mongodbuserstoremanager/pull/1/files
>
> [2]
> https://svn.wso2.org/repos/wso2/people/tharindue/customuserstore/mystore/
>
> Thanks,
> TharinduE
>
> On Sat, Mar 12, 2016 at 1:33 AM, Asantha Thilina  > wrote:
>
>> Hi tharindu,
>>
>> currently i'm in the development stage of mongodb user store manager and
>> i implemented some modules to communicate with mongodb and i shared what i
>> have done so far in github[1]. can you review my code and give me a
>> feedback whether my approach is correct or has to be improve,  I had some
>> questions while i developing user store,how can i make carbon core module?
>>  and also how can i package osgi bundles inside jar folder i added
>> packaging as bundle in pom file but it's still not adding it to jar file
>> any idea or suggestion would be grateful.
>>
>> [1].  https://github.com/asanthamax/mongodbuserstoremanager
>>
>> thanks,
>> Best Regards,
>> Asantha
>>
>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-14 Thread Niranjan Karunanandham
Hi Devs,

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

Regards,
Nira

On Mon, Mar 14, 2016 at 7:25 PM, Chiranga Alwis  wrote:

> Hi all,
>
> I tested the following feature of AS 5.3.0:
>
> - SAML 2.0 based Single-Sign-On (SSO) with WSO2 Identity Server 5.1.0.
> This feature works as expected.
>
> [x] - Stable - go ahead and release.
>
> On Mon, Mar 14, 2016 at 6:53 PM, Niranjan Karunanandham  > wrote:
>
>> Hi all,
>>
>> Tested the following scenarios on AS:
>>
>> - User creation
>> - Role creation
>> - Tenant creation
>> - Artifact deployment of CApps, webapps, and axis2 services
>> - Axis2 Services/ Try-it
>>
>> [x] - Stable - go ahead and release.
>>
>> Regards,
>> Nira
>>
>>
>> On Sat, Mar 12, 2016 at 7:59 AM, Chandana Napagoda 
>> wrote:
>>
>>> Hi,
>>>
>>> Verified following scenarios.
>>> - G-Reg product level integration tests
>>> - G-Reg getting started data population.
>>> - Did a smoke test in GC Store and Publisher
>>> - Enabled and Verified known test failures with kernel 4.4.4 releases.
>>>
>>> [x] Stable - go ahead and release.
>>>
>>> [1]. https://wso2.org/jira/browse/REGISTRY-3358
>>>
>>> Regards,
>>> Chandana
>>>
>>> On Thu, Mar 10, 2016 at 6:34 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Devs,

 This is the 1st release candidate of WSO2 Carbon Kernel 4.4.5.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12978

 Please download and test your products with kernel 4.4.5 RC1 and vote.
 Vote will be open for 72 hours or as longer as needed.

 ​*Source and binary distribution files:*​

 http://svn.wso2.org/repos/wso2/people/niranjan/Carbon-4.4.5/wso2carbon-4.4.5.zip

 ​*Maven staging repository:*​
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-402/

 ​*The tag to be voted upon:*​
 https://github.com/wso2/carbon-kernel/releases/tag/v4.4.5-RC1


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

 Thank you
 Carbon Team​

 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

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


>>>
>>>
>>> --
>>> *Chandana Napagoda*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.org
>>>
>>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>>> <%2B94718169299>*
>>>
>>> *Blog  :http://cnapagoda.blogspot.com
>>> *
>>>
>>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chiranga Alwis,
> Software Engineering Intern,
> +94 77 5930497
> +94 77 6368208
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-14 Thread Chiranga Alwis
Hi all,

I tested the following feature of AS 5.3.0:

- SAML 2.0 based Single-Sign-On (SSO) with WSO2 Identity Server 5.1.0. This
feature works as expected.

[x] - Stable - go ahead and release.

On Mon, Mar 14, 2016 at 6:53 PM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> Tested the following scenarios on AS:
>
> - User creation
> - Role creation
> - Tenant creation
> - Artifact deployment of CApps, webapps, and axis2 services
> - Axis2 Services/ Try-it
>
> [x] - Stable - go ahead and release.
>
> Regards,
> Nira
>
>
> On Sat, Mar 12, 2016 at 7:59 AM, Chandana Napagoda 
> wrote:
>
>> Hi,
>>
>> Verified following scenarios.
>> - G-Reg product level integration tests
>> - G-Reg getting started data population.
>> - Did a smoke test in GC Store and Publisher
>> - Enabled and Verified known test failures with kernel 4.4.4 releases.
>>
>> [x] Stable - go ahead and release.
>>
>> [1]. https://wso2.org/jira/browse/REGISTRY-3358
>>
>> Regards,
>> Chandana
>>
>> On Thu, Mar 10, 2016 at 6:34 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.5.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12978
>>>
>>> Please download and test your products with kernel 4.4.5 RC1 and vote.
>>> Vote will be open for 72 hours or as longer as needed.
>>>
>>> ​*Source and binary distribution files:*​
>>>
>>> http://svn.wso2.org/repos/wso2/people/niranjan/Carbon-4.4.5/wso2carbon-4.4.5.zip
>>>
>>> ​*Maven staging repository:*​
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-402/
>>>
>>> ​*The tag to be voted upon:*​
>>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.5-RC1
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you
>>> Carbon Team​
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com *
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chiranga Alwis,
Software Engineering Intern,
+94 77 5930497
+94 77 6368208
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-14 Thread Thusitha Thilina Dayaratne
Hi All,

I've tested below scenarios

   - Capp deployment and un-deployment
   - Jaggery apps
   - Basic logging

Didn't found any issues
[x] - Stable - go ahead and release.

Thanks
Thusitha

On Mon, Mar 14, 2016 at 6:53 PM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> Tested the following scenarios on AS:
>
> - User creation
> - Role creation
> - Tenant creation
> - Artifact deployment of CApps, webapps, and axis2 services
> - Axis2 Services/ Try-it
>
> [x] - Stable - go ahead and release.
>
> Regards,
> Nira
>
>
> On Sat, Mar 12, 2016 at 7:59 AM, Chandana Napagoda 
> wrote:
>
>> Hi,
>>
>> Verified following scenarios.
>> - G-Reg product level integration tests
>> - G-Reg getting started data population.
>> - Did a smoke test in GC Store and Publisher
>> - Enabled and Verified known test failures with kernel 4.4.4 releases.
>>
>> [x] Stable - go ahead and release.
>>
>> [1]. https://wso2.org/jira/browse/REGISTRY-3358
>>
>> Regards,
>> Chandana
>>
>> On Thu, Mar 10, 2016 at 6:34 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.5.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12978
>>>
>>> Please download and test your products with kernel 4.4.5 RC1 and vote.
>>> Vote will be open for 72 hours or as longer as needed.
>>>
>>> ​*Source and binary distribution files:*​
>>>
>>> http://svn.wso2.org/repos/wso2/people/niranjan/Carbon-4.4.5/wso2carbon-4.4.5.zip
>>>
>>> ​*Maven staging repository:*​
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-402/
>>>
>>> ​*The tag to be voted upon:*​
>>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.5-RC1
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you
>>> Carbon Team​
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com *
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


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

2016-03-14 Thread Niranjan Karunanandham
Hi all,

Tested the following scenarios on AS:

- User creation
- Role creation
- Tenant creation
- Artifact deployment of CApps, webapps, and axis2 services
- Axis2 Services/ Try-it

[x] - Stable - go ahead and release.

Regards,
Nira


On Sat, Mar 12, 2016 at 7:59 AM, Chandana Napagoda 
wrote:

> Hi,
>
> Verified following scenarios.
> - G-Reg product level integration tests
> - G-Reg getting started data population.
> - Did a smoke test in GC Store and Publisher
> - Enabled and Verified known test failures with kernel 4.4.4 releases.
>
> [x] Stable - go ahead and release.
>
> [1]. https://wso2.org/jira/browse/REGISTRY-3358
>
> Regards,
> Chandana
>
> On Thu, Mar 10, 2016 at 6:34 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Devs,
>>
>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.5.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12978
>>
>> Please download and test your products with kernel 4.4.5 RC1 and vote.
>> Vote will be open for 72 hours or as longer as needed.
>>
>> ​*Source and binary distribution files:*​
>>
>> http://svn.wso2.org/repos/wso2/people/niranjan/Carbon-4.4.5/wso2carbon-4.4.5.zip
>>
>> ​*Maven staging repository:*​
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-402/
>>
>> ​*The tag to be voted upon:*​
>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.5-RC1
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you
>> Carbon Team​
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :http://cnapagoda.blogspot.com *
>
>


-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invoke proxy service from WSO2 ESB

2016-03-14 Thread Lakshitha Warnakulasuriya
Hi All,

How to invoke proxy service from ESB to BPEL workflow process. What are the
steps I should follow.
Any help can be really appreciated.

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


Re: [Dev] Clarification regarding BuilderMediator

2016-03-14 Thread Malintha Amarasinghe
+ Viraj, IsuruU, dev

On Sat, Mar 12, 2016 at 12:19 AM, Akila Wicky  wrote:

> Hi all,
>
> I like to know more about project  Proposal 15: [ESB/Tooling] ESB
> Visual editor enhancements
>



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

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


Re: [Dev] Native Cloud Support for Running WSO2 Middleware on Apache Mesos

2016-03-14 Thread Imesh Gunaratne
Hi Osura,

Please note that we changed this project description to the following:
https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal29:[Cloud]NativeCloudSupportforRunningWSO2MiddlewareonMicrosoftAzure

Thanks

On Sat, Mar 5, 2016 at 3:25 PM, Osura Rathnayake  wrote:

> Hi sir,
>
> I followed the steps in [1].
>
> [1] http://mesos.apache.org/gettingstarted/
>
> thanks and regards
>
> On Sat, Mar 5, 2016 at 3:17 PM, Imesh Gunaratne  wrote:
>
>> Can you please explain how you installed Mesos on a Ubuntu machine?
>>
>> Thanks
>>
>>
>> On Saturday, March 5, 2016, Osura Rathnayake  wrote:
>>
>>> Hi Sir,
>>>
>>> We were able to install mesos, docker and WSO2 carbon on a Ubuntu
>>> machine. Furthermore we installed wso2 ESB and AS through docker. Currently
>>> we are working on understanding how K8S works in this scenario. After that
>>> what would be the next step?
>>>
>>> thanks and regards,
>>> Osura Rathnayake, Sahan Wickramaarachchi, Vishwa Jayaratne, Allan
>>> Barthelot
>>>
>>> On Mon, Feb 29, 2016 at 12:38 PM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Osura,

 It's nice to hear your interest on this project. The starting point
 would be to install Mesos and see how it works. Then try to deploy a WSO2
 product on Mesos using Docker. Then understand how Carbon clustering works
 including K8S membership scheme [1] we have implemented for the same
 purpose on K8S. Later on move to other native PaaS features needed.

 [1]
 https://github.com/wso2/kubernetes-artifacts/tree/master/common/kubernetes-membership-scheme

 Thanks

 On Mon, Feb 29, 2016 at 12:29 PM, Osura Rathnayake 
 wrote:

> Dear Sir,
>
> We are a group of 4th year students following the Computer Systems and
> Networking degree program at SLIIT. We are interested in undertaking above
> mentioned project as our 4th year research project.
>
> As 4th year CSN students we have a fairly good understanding in PaaS
> concepts and Java language. We have a basic understanding of basic
> features of WSO2 Carbon.
>
> We were asked to contact you by Senior Lecturer Mr. Lakmal Rupasinghe.
> Please get back to us soon.
>
> Regards,
> Osura Rathnayake, Sahan Wickramaarachchi, Vishwa Jayaratne, Allan
> Barthelot
>



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


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


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


Re: [Dev] [GSoC][2016] Proposal 29: [Cloud] Native Cloud Support for Running WSO2 Middleware on Apache Mesos

2016-03-14 Thread Imesh Gunaratne
Hi Milindu,

Yes, we have change the project proposal to the following:
https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal29:[Cloud]NativeCloudSupportforRunningWSO2MiddlewareonMicrosoftAzure

Thanks

On Sun, Mar 13, 2016 at 11:10 AM, Milindu Sanoj Kumarage <
agentmili...@gmail.com> wrote:

> Hi Imesh,
>
> Any updates on this? I'm really interested in something related to Apache
> Mesos and Marathon.
>
> Regard,
> Milindu
>
> On Fri, Mar 11, 2016 at 5:02 PM, Imesh Gunaratne  wrote:
>
>> Hi Milindu,
>>
>> We have decided to change this project proposal, will update soon.
>>
>> Thanks
>>
>> On Fri, Mar 11, 2016 at 9:26 AM, Milindu Sanoj Kumarage <
>> agentmili...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm Milindu Sanoj Kumarage, an undergraduate of University of Colombo
>>> School of Computing doing my 4th year of Computer Science major. I'm
>>> interested in task "Native Cloud Support for Running WSO2 Middleware on
>>> Apache Mesos"
>>> .
>>> I have  worked with Docker, Kubernetes and has a good knowledge of cgroups,
>>> containers, pods, etc. I have a  decent knowledge on Apache Mesos and
>>> Marathon also. I have just started my 4th year and I am working on a
>>> research base on distributed computing, therefor I'm working with tools and
>>> technologies related to distributed computing, which I hope that will help
>>> me to work on this task better. I went though the given references also,  I
>>> like to work on this task. Please guide me through.
>>>
>>> Regards,
>>> Milindu
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> Lean . Enterprise . Middleware
>>
>>
>


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


Re: [Dev] Circuit breaker implementation for MSF4J

2016-03-14 Thread Afkham Azeez
This looks like a lot of changes so let's hold this off until the MSF4J
feature review meeting tomorrow.

Thanks
Azeez

On Mon, Mar 14, 2016 at 4:05 PM, Isuru Perera  wrote:

> Hi Azeez,
>
> We can use the "Meter" in metrics to record the number of failures per
> second and use the rates in Meter (Mean, Last One Minute, Last Five Minutes
> and Last Fifteen Minutes) for checking a certain threshold.
>
> However we need following changes to be done in Carbon Metrics component.
>
>- Expose Meter Rates from the Carbon Metrics library. (Carbon Metrics
>didn't expose ways to read metrics from the Java APIs). For example,
>Dropwizard Meter [1] has APIs to read meter rates and Carbon Metrics Meter
>has only the basic APIs for using a Meter [2].
>- I will try to include these APIs in Carbon Metrics v2.0.0 release,
>   which will be compatible with Carbon 5 products.
>   - Initialize Metrics in a single place. Right now, MSF4J
>initialization code for Metrics is in msf4j-analytics component [3]. In
>MSF4J, the Metrics is initialized via the Metrics Interceptor [4]. When
>Circuit Breaker implementation also plans to use Metrics, we need to have a
>common way initializing metrics. (We need to think of a good design for
>that).
>
> I will start working on these.
>
> Thanks!
>
> Best Regards,
> [1]
> https://github.com/dropwizard/metrics/blob/v3.1.2/metrics-core/src/main/java/com/codahale/metrics/Meter.java#L85
> [2]
> https://github.com/wso2/carbon-metrics/blob/v1.2.1/components/org.wso2.carbon.metrics.manager/src/main/java/org/wso2/carbon/metrics/manager/Meter.java
> [3]
> https://github.com/wso2/msf4j/blob/v1.0.0/analytics/msf4j-analytics/src/main/java/org/wso2/msf4j/analytics/metrics/Metrics.java
> [4]
> https://github.com/wso2/msf4j/blob/v1.0.0/samples/metrics-httpmon/metrics-httpmon-fatjar/src/main/java/org/wso2/msf4j/example/Application.java#L38
>
>
> On Mon, Mar 7, 2016 at 11:58 AM, Afkham Azeez  wrote:
>
>> I was looking at
>> http://www.javaworld.com/article/2824163/application-performance/stability-patterns-applied-in-a-restful-architecture.html?page=2
>> and looks like we can implement it for the server side as a combination of
>> an interceptor & metrics.
>>
>> Isuru, will we need any changes to the metrics side to implement this or
>> can we directly make use of the existing metrics functionality to get the
>> metrics to decide whether to trip the circuit? What supports does the
>> current metrics implementation have related to fault monitoring? Pointed to
>> the Java APIs to retrieve metrics would be appreciated. Also wondering how
>> it would work in a cluster.
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>



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

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

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

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


Re: [Dev] WSO2 Dockerfiles build logs

2016-03-14 Thread Imesh Gunaratne
IMO it is important to show the docker build command output to the user.
Otherwise it would be difficult for the user to understand what's happening
behind the scene.

Thanks

On Mon, Mar 14, 2016 at 4:07 PM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> Hi,
>
> Currently when building the wso2 docker images [1], we are not prompting
> the complete image building logs [2], we are only prompting if there is any
> error while building.
>
> Is there any specific reason for not prompting the complete log trace when
> building these images?
>
> Isn't it better to show the complete build logs or at least an option for
> user to see the complete logs? Thoughts?
>
> [1] - https://github.com/wso2/dockerfiles
> [2] -
> https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-build.sh#L196-L208
>
> Regards,
> Vishanth
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94 77 17 377 18*
> about me: *http://about.me/vishanth *
>



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


[Dev] Common configuration for publishing events from carbon servers to DAS/CEP

2016-03-14 Thread Malith Dhanushka
Hi all,

Please follow the steps bellow when publishing events from carbon servers
to DAS/CEP. Here we keep the DAS/CEP server location in
CARBON_HOME/repository/deployment/server/eventpublishers directory and this
is common across platform.

- Install the Event Publisher Aggregate feature from p2_repo [1]

- Install Registry Core feature if not installed

- Create event stream and deploy that to
CARBON_HOME/repository/deployment/server/eventstreams

- Create publishers for the created stream and deploy that to
 CARBON_HOME/repository/deployment/server/eventpublishers
Following is a sample configuration,


http://wso2.org/carbon/eventpublisher;>
  
  
  
admin
thrift
non-blocking
0
tcp://localhost:7611
X
  


- Publish events to the created stream using
org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
Following is a sample code snippet.

Event event = new Event();
event.setTimeStamp(System.currentTimeMillis());
event.setStreamId("streamTest:1.0.0");
event.setPayloadData(new Object[]{data});
eventStreamService.publish(event);

Please note that Event Publisher Aggregate feature is not yet included
in carbon feature repo. It will be available with the immediate analytics
feature release.

[1]
https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature

Thanks,
Malith
-- 
Malith Dhanushka
Senior Software Engineer - Data Technologies
*WSO2, Inc. : wso2.com *
*Mobile*  : +94 716 506 693
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppCloud] Freezing master branch of app-cloud repo

2016-03-14 Thread Pirinthapan Mahendran
Hi AF Team,

Since we are in the process of merging some drastic changes done after
restructuring the database, we are freezing the master branch of app-cloud
repo. So don't commit any further changes to the master branch until
further notification.

Thanks & Regards,
Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Dockerfiles build logs

2016-03-14 Thread Vishanth Balasubramaniam
Hi,

Currently when building the wso2 docker images [1], we are not prompting
the complete image building logs [2], we are only prompting if there is any
error while building.

Is there any specific reason for not prompting the complete log trace when
building these images?

Isn't it better to show the complete build logs or at least an option for
user to see the complete logs? Thoughts?

[1] - https://github.com/wso2/dockerfiles
[2] -
https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-build.sh#L196-L208

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

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


Re: [Dev] Circuit breaker implementation for MSF4J

2016-03-14 Thread Isuru Perera
Hi Azeez,

We can use the "Meter" in metrics to record the number of failures per
second and use the rates in Meter (Mean, Last One Minute, Last Five Minutes
and Last Fifteen Minutes) for checking a certain threshold.

However we need following changes to be done in Carbon Metrics component.

   - Expose Meter Rates from the Carbon Metrics library. (Carbon Metrics
   didn't expose ways to read metrics from the Java APIs). For example,
   Dropwizard Meter [1] has APIs to read meter rates and Carbon Metrics Meter
   has only the basic APIs for using a Meter [2].
   - I will try to include these APIs in Carbon Metrics v2.0.0 release,
  which will be compatible with Carbon 5 products.
  - Initialize Metrics in a single place. Right now, MSF4J
   initialization code for Metrics is in msf4j-analytics component [3]. In
   MSF4J, the Metrics is initialized via the Metrics Interceptor [4]. When
   Circuit Breaker implementation also plans to use Metrics, we need to have a
   common way initializing metrics. (We need to think of a good design for
   that).

I will start working on these.

Thanks!

Best Regards,
[1]
https://github.com/dropwizard/metrics/blob/v3.1.2/metrics-core/src/main/java/com/codahale/metrics/Meter.java#L85
[2]
https://github.com/wso2/carbon-metrics/blob/v1.2.1/components/org.wso2.carbon.metrics.manager/src/main/java/org/wso2/carbon/metrics/manager/Meter.java
[3]
https://github.com/wso2/msf4j/blob/v1.0.0/analytics/msf4j-analytics/src/main/java/org/wso2/msf4j/analytics/metrics/Metrics.java
[4]
https://github.com/wso2/msf4j/blob/v1.0.0/samples/metrics-httpmon/metrics-httpmon-fatjar/src/main/java/org/wso2/msf4j/example/Application.java#L38


On Mon, Mar 7, 2016 at 11:58 AM, Afkham Azeez  wrote:

> I was looking at
> http://www.javaworld.com/article/2824163/application-performance/stability-patterns-applied-in-a-restful-architecture.html?page=2
> and looks like we can implement it for the server side as a combination of
> an interceptor & metrics.
>
> Isuru, will we need any changes to the metrics side to implement this or
> can we directly make use of the existing metrics functionality to get the
> metrics to decide whether to trip the circuit? What supports does the
> current metrics implementation have related to fault monitoring? Pointed to
> the Java APIs to retrieve metrics would be appreciated. Also wondering how
> it would work in a cluster.
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unable to send SOAP call.

2016-03-14 Thread Shakila Sivagnanarajah
Hi,

I am implementing an authenticator for WSO2-IS-5.1.0. I am
getting [1] exception while getting instance of
*javax.xml.soap.SOAPConnectionFactory* like [2]. But I imported the "
*org.apache.axis2.saaj.**" in pom. How can I fix this issue?

More Info: But did not get this error, if I use [3] to initiate the SOAP
connection. But getting [4] while building the SOAP message from response.
Since [5] is used to take instance of the SOAPMessage in
*org.apache.axis2.saaj.SOAPConnectionImpl* class.

[1] Unable to create SOAP connection factory: Provider
*org.apache.axis2.saaj.SOAPConnectionFactoryImpl* not found

[2] SOAPConnectionFactory soapConnectionFactory =
SOAPConnectionFactory.newInstance();

[3] SOAPConnection soapConnection = new
SOAPConnectionFactoryImpl().createConnection();

[4] Unable to create message factory for SOAP: Provider
*org.apache.axis2.saaj.MessageFactoryImpl* not found

[5]
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage response = mf.createMessage();


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


Re: [Dev] GSoC project for building an ensemble of models

2016-03-14 Thread Supun Sethunga
Hi Anurag,

Yes, the master branch is using java 8, hence you can use lambda
expressions.

Regards,
Supun

On Mon, Mar 14, 2016 at 3:24 PM, Anurag Kashyap 
wrote:

> Hi Supun,
> One more question. I couldn't find if the version of Java being used is
> Java 8 or a previous version. If it is Java 8, Lambda calculus can be used
> to make some things easier, especially while working with spark.
> Thanks and Regards,
> Anurag Kashyap
>
>
> On Mon, Mar 7, 2016 at 8:05 PM, Supun Sethunga  wrote:
>
>> [Adding WSO2 Developers mailing list]
>>
>> Hi Anurag,
>>
>> Please find my comments inline.
>>
>> First, which boosting model are we going to target-Ada boosting or some
>>> other model, or various models?
>>
>> You can pick any method as you wish.
>>
>>
>> Second, what method would you suggest I use to combine the results of the
>>> models in stacking- is it going to be a single layer LR model?
>>
>> This has to be a user input (i.e. user should be able to pick any
>> algorithm for the base-learners as well as for the meta-learner).
>>
>> Regards,
>> Supun
>>
>> On Mon, Mar 7, 2016 at 5:15 PM, Anurag Kashyap 
>> wrote:
>>
>>> Hi Supun,
>>>  I've begun reading the source rom link 3. I had a couple of questions.
>>> First, which boosting model are we going to target-Ada boosting or some
>>> other model, or various models? Second, what method would you suggest I use
>>> to combine the results of the models in stacking- is it going to be a
>>> single layer LR model?
>>>
>>>
>>>
>>> On Sun, Mar 6, 2016 at 6:25 PM, Supun Sethunga  wrote:
>>>
 Hi Anurag,

 Thank you for your interest in the above project. You can start by
 getting to know the Machine Learner product by downloading it and running
 it (Please use link [1] to download). Official documentation [2] will help
 you on using the product. You can find the source code base at [3] and [4].
 As we have mentioned in the project proposal as well, the main
 objective is to integrate ensemble support for the existing flow of the
 WSO2 Machine Learner. We are focusing on the three methods: Bagging,
 Boosting and Stacking.

 Please feel free to raise, if you have any questions or any unclear
 points.

 [1] http://wso2.com/products/machine-learner/
 [2] https://docs.wso2.com/display/ML100/Introducing+Machine+Learner
 [3] https://github.com/wso2/carbon-ml
 [4] https://github.com/wso2/product-ml

 Regards,
 Supun

 On Sun, Mar 6, 2016 at 12:08 PM, Anurag Kashyap 
 wrote:

> Hi Supun,
>  I'm currently working as a research assistant at NTU, Singapore for
> my bachelor thesis in my final year, I looked at the list of GSoC
> projects for WSO2 and I'm particularly interested in the project *Ensemble
> Methods Support for WSO2 Machine Learner.* I am currently working on
> Ensemble methods for multi-label classification, so I have some experience
> in this field and I've read several scholarly articles about their
> implementation and benefit. I believe I can contribute to this project as 
> a
> GSoC intern. Eagerly awaiting a response!
>
> Yours Sincerely,
> *Anurag Kashyap*
> *Research Assistant*
> *Robotics-|| *
> *Nanyang Technological University, Singapore*
>
> [image: Blog] 
>



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

>>>
>>>
>>>
>>> --
>>> Yours sincerely,
>>>
>>> *Anurag Kashyap*
>>> *MSc.(Tech.)* Information Systems,
>>> *BITS Pilani K K Birla Goa Campus*
>>>
>>> [image: Blog] 
>>>
>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
> Yours sincerely,
>
> *Anurag Kashyap*
> *MSc.(Tech.)* Information Systems,
> *BITS Pilani K K Birla Goa Campus*
>
> [image: Blog] 
>



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


Re: [Dev] Regarding GSoC Project : Auto-tuning of WSO2 CEP

2016-03-14 Thread Miyuru Dayarathna
Hi Ramindu,

Thanks for your interest on working on GSoC'16 proposal 17 "Auto-tuning of
WSO2 CEP". Based on the GSoC 2016 timeline as the next step of this process
please prepare a project proposal. The guidelines on preparation of the
proposal are available in [1]. Two sample project proposals are on [2][3].
Please maintain the proposal in a public place such as in your blog. Please
feel free to email us if you have any unclear points in preparing the
project proposal.

[1] http://write.flossmanuals.net/gsocstudentguide/writing-a-proposal/

[2] http://write.flossmanuals.net/gsocstudentguide/proposal-example-1/

[3] http://write.flossmanuals.net/gsocstudentguide/proposal-example-2/

Thanks,
Miyuru Dayarathna, Ph.D.
Senior Technical Lead, WSO2 Inc.
Mobile: +94713527783

On Tue, Mar 8, 2016 at 10:02 PM, Ramindu Senarath <
ramindu.senar...@gmail.com> wrote:

> Hi Miyuru & Sriskandarajah,
>
> I am a undergraduate of University of Moratuwa, Faculty of Information
> Technology. I am interested in contribute to this project. For a start I
> have studied about CEP and did some work with it. Then I have read given
> references and had some knowledge about project deliverables. Since I have
> some knowledge about CEP, I am going to start dig into the source code. I
> have build the source code for product-cep which I have cloned from git.
> Could you please suggest a further step to start the project.
>
> *Thanks & Regards*
> *Ramindu Senarath*
> *Undergraduate*
> *Faculty of Information Technology*
> *University of Moratuwa*
> *Mobile:** +94713639896* <%2B94713639896>
>



-- 
Thanks,
Miyuru Dayarathna
Senior Technical Lead
Mobile: +94713527783
Blog: http://miyurublog.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-14 Thread Kasun Dananjaya Delgolla
Hi Sameera,

Thank you for your interest in this project.


In order to get a better picture of the project make sure to build WSO2
EMM[1] including CDMF framework[2] using the git repositories listed.

Enroll a device and a publish a sample policy against the device and study
the current behavior of the policy.
You are expected to change the behavior a mentioned below.

Given policy must be activated automatically when the device enters a
predefined area.
Given policy must be deactivated when a device leaves a predefined area.
Given policy must be activated automatically in the given time frame.
Stats of the current policy, whether its active or inactive need to be
visible in the dashboard.
Policy compliance monitoring to the given device must be activated when a
policy is activated.

Project deliverable "Extension point for current EMM policy module with
location and time based policy publishing capability" includes followings,

   - Location based policy enforcement component.
   - A component which enables the location base policy monitoring and
  enforcement including statics.This need to be a extension to thee
  component which enabled device policies currently
   - Time based location component.
   - A component which enables the time base policy monitoring and
  enforcement including statics.This need to be a extension to thee
  component which enabled device policies currently
   - Location and time based policy configuration UI.
   - This is to enable users to configure and maintain the locations and
  time frames.The UI must have the ability to monitor the policies which
  is active in the device and compliance status.Above features must
  follow the current pattern used for policy monitoring and Policy
Management
  in WSO2 EMM.


While working with WSO2 EMM, if you found any bugs or improvements feel
free to let us know by using the oxygen tank[3].

[1] https://github.com/wso2/carbon-device-mgt
[2] https://github.com/wso2/product-mdm
[3] https://wso2.org/jira/secure/Dashboard.jspa

Thank you

On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
itssamw...@gmail.com> wrote:

>
>
> Hi ,
> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
> Moratuwa Faculty of information Technology. Im interested in the Location
> and Time-based Device policy Endorsement Project. I have good experience in
> Java and Android development. and Im confident i would be able to complete
> this project with your guidance.please let me know how to proceed from here.
>
> thank you
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Applying for GSOC

2016-03-14 Thread Adiesha Liyanage
Dear all,
I am interested on Proposal 14: [ESB/Tooling] Support JSON, CSV, Java,
Excel and Web services formats in Data Mapper tool for GSOC this time. And
I am going through the Apache Avro documentation right now. Please let me
know if there is anything new to be look into and any suggestions.

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


[Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-14 Thread Sameera Wickramasekara
Hi ,
Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
Moratuwa Faculty of information Technology. Im interested in the Location
and Time-based Device policy Endorsement Project. I have good experience in
Java and Android development. and Im confident i would be able to complete
this project with your guidance.please let me know how to proceed from here.

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


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

2016-03-14 Thread Mahesh Dananjaya
Hi Maheshakya,
I am writing some java programs and try to break the dataset into several
pieces and train a model repeatedly with those data sets using Spark MLLib.
Do i have to do anything with Hadoop at this stage, because i am working
with a standalone mode.thank you.
BR,
Mahesh.

On Sun, Mar 13, 2016 at 6:30 PM, Maheshakya Wijewardena  wrote:

> Hi Mahesh,
>
> You don't have to look into carbon-ml.
>
> Best regards.
>
> On Sun, Mar 13, 2016 at 5:49 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi maheshakya,
>> i am working on some examples related to Spark and ML.is there anything
>> to do with carbon-ml. I think i dont need to look into that one.do i?
>> BR,
>> Mahesh
>>
>> On Tue, Mar 8, 2016 at 11:55 AM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> does that Scala API is with your current product or repo?
>>>
>>>
>>> No, we don't have the Scala API included. What we want is to design the
>>> Java implementations of those algorithms to train with mini-batches of
>>> streaming data with the help of the aforementioned methods so that we can
>>> include in as a CEP extension.
>>>
>>> As to clarify, please try to write a simple Java program using Spark
>>> MLLib linear regression and k-means clustering with a sample data set (You
>>> can find alot of data sets from UCI repo[1]).  You need to break the
>>> dataset into several pieces and train a model repeatedly with those.
>>> After each training run, save the model information (such as weights,
>>> intercepts for regression and cluster centers for clustering - please check
>>> the arguments of those methods I have mentioned and save the required
>>> information of the model)
>>> When training a model we a new piece of data, use those methods to
>>> initialize and put the save values for the arguments. This way you can
>>> start from where you stopped in the previous run.
>>>
>>> Let us know your observations and feel free to ask if you need to know
>>> anything more on this.
>>>
>>> We'll let you know what needs to be done to include this in CEP.
>>>
>>> Best regards.
>>>
>>> On Tue, Mar 8, 2016 at 10:59 AM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 great.thank you.i already have ML and CEP and working more towards it.
 does that Scala API is with your current product or repo?.  thank you.
 BR,
 Mahesh.

 On Sun, Mar 6, 2016 at 5:49 PM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> Please find the comments inline.
>
> does data stream is taken to ML as the event publisher's format
>> through event publisher. Or  we can use direct traffic that comes to 
>> event
>> receiver, or else as streams
>>
> We intend to use the direct data as even streams.
>
> 1.) Those data coming from wso2 DAS to ML are coming as streams?
>>
> No, WSO2 ML doesn't use any even stream. The data stored in tables in
> DAS is loaded into ML.
>
> 2.) Are there any incremental learning algorithms currently active in
>> ML?you mentioned that there are and they are with scala API. So there is 
>> a
>> streaming support with that Scala API. In that API which format the data 
>> is
>> aquired to ML?
>>
> No, there are no incremental learning algorithms in ML. The scala API
> is about Spark MLLib. MLLib supports streaming k-means and other
> generalized linear models (linear regression variants and logistic
> regression) with Scala API. What they basically do in those 
> implementations
> is retraining the trained models with mini batches when data sequentially
> arrives. There, the breaking of streaming data into mini batches is done
> with the help of Spark Streaming. But we do not intend to use Spark
> streaming in our implementation. What we need to do is implement a similar
> behavior for event streams using the Java API.  The Java API has the
> following methods:
>
>- *createModel
>
> *
>(Vector
>
> 
>  weights,
>double intercept) - for GLMs
>- *setInitialModel
>
> *
>(KMeansModel
>
> 
>  model)
>- for K means
>
> With the help of these methods, we can train models again with newly
> arriving data, keeping the characteristics learned with the previous 

Re: [Dev] Can we add a batch of resources to registry in one go?

2016-03-14 Thread Isuruwan Herath
It is done at the artifact level using the Zip Media Type handler. Yes, at
the core registry level it saves one by one. Currently there is no support
for bulk save at registry API level.

On Mon, Mar 14, 2016 at 12:16 PM, Prabath Abeysekera 
wrote:

> Well, the batch-upload option you've just described is something done
> through the GovernanceArtifactManager impl? AFAIU, that too depends on the
> core registry APIs at a low level right? So, I was just wondering if
> there's any mechanism that allows us to do this at the core registry API
> level. My primary intention is to update the whole batch in one-go without
> doing multiple "registry.put()"s.
>
> Cheers,
> Prabath
>
> On Mon, Mar 14, 2016 at 11:43 AM, Isuruwan Herath 
> wrote:
>
>> For WSDL or WADL type resources you can use Governance Archive files for
>> batch upload. Otherwise, it is possible with a custom handler.
>>
>> On Fri, Mar 11, 2016 at 8:39 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Folks,
>>>
>>> Is $Subject possible? API doesn't say so, was just wondering if we got
>>> any workaround.
>>>
>>> Cheers,
>>> Prabath
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>> Isuruwan Herath
>> Technical Lead
>>
>> Contact: +94 776 273 296
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we add a batch of resources to registry in one go?

2016-03-14 Thread Prabath Abeysekera
Well, the batch-upload option you've just described is something done
through the GovernanceArtifactManager impl? AFAIU, that too depends on the
core registry APIs at a low level right? So, I was just wondering if
there's any mechanism that allows us to do this at the core registry API
level. My primary intention is to update the whole batch in one-go without
doing multiple "registry.put()"s.

Cheers,
Prabath

On Mon, Mar 14, 2016 at 11:43 AM, Isuruwan Herath  wrote:

> For WSDL or WADL type resources you can use Governance Archive files for
> batch upload. Otherwise, it is possible with a custom handler.
>
> On Fri, Mar 11, 2016 at 8:39 PM, Prabath Abeysekera 
> wrote:
>
>> Folks,
>>
>> Is $Subject possible? API doesn't say so, was just wondering if we got
>> any workaround.
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DS] Render gadgets seamlessly (without IFRAME) in Dashboard server

2016-03-14 Thread Lasantha Samarakoon
+architecture

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Mon, Mar 14, 2016 at 12:02 PM, Manuranga Perera  wrote:

> I think we have to keep the gadget concept as is, and bring in a new
> concept. This was the initial plan with the widgets, but we removed it due
> to above complications.
> I think we can bring it back, and use WebComponent to implement it. But
> unfortunately it’s not implanted in all browsers. But HTML template is [1].
> Can you please do some research on this and find if we can leverage this to
> implement the requirement.
> Another option is to use WebComponent polyfills.
>
>
> [1] http://caniuse.com/#feat=template
>
> On Mon, Mar 14, 2016 at 11:44 AM, Lasantha Samarakoon 
> wrote:
>
>> Hi all,
>>
>> There is a recent requirement from ESB analytics dashboards, that they
>> need to wrap a jQuery data range picker within a gadget. In this case once
>> the date picker is expanded part of it get cropped down by the IFRAME
>> borders. In order to solve this issue, we thought of facilitating to render
>> gadgets without IFRAMES. But that approach may cause following issues.
>>
>>
>>1. Shindig modifies the HTML content specified in the gadget's XML
>>(add new scripts, css styles, re-order content and add extra HTML markup
>>such as HTML, HEAD and BODY).
>>2. Unable to provide DOM isolation to prevent script injections and
>>style conflicts.
>>3. Namespace conflicts may happen since multiple instances of a
>>gadget may reside in a same page.
>>4. Some of the Shindig features may not work as some of the
>>parameters are previously sent via the IFRAME URL.
>>
>>
>> WRT these issues, it seems like the solution is not feasible for the
>> moment. Any other options or ideas to solve this issue?
>>
>>
>> Regards,
>>
>> *Lasantha Samarakoon* | Software Engineer
>> WSO2, Inc.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 (71) 214 1576
>> Email:  lasant...@wso2.com
>> Web:www.wso2.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DS] Render gadgets seamlessly (without IFRAME) in Dashboard server

2016-03-14 Thread Manuranga Perera
I think we have to keep the gadget concept as is, and bring in a new
concept. This was the initial plan with the widgets, but we removed it due
to above complications.
I think we can bring it back, and use WebComponent to implement it. But
unfortunately it’s not implanted in all browsers. But HTML template is [1].
Can you please do some research on this and find if we can leverage this to
implement the requirement.
Another option is to use WebComponent polyfills.


[1] http://caniuse.com/#feat=template

On Mon, Mar 14, 2016 at 11:44 AM, Lasantha Samarakoon 
wrote:

> Hi all,
>
> There is a recent requirement from ESB analytics dashboards, that they
> need to wrap a jQuery data range picker within a gadget. In this case once
> the date picker is expanded part of it get cropped down by the IFRAME
> borders. In order to solve this issue, we thought of facilitating to render
> gadgets without IFRAMES. But that approach may cause following issues.
>
>
>1. Shindig modifies the HTML content specified in the gadget's XML
>(add new scripts, css styles, re-order content and add extra HTML markup
>such as HTML, HEAD and BODY).
>2. Unable to provide DOM isolation to prevent script injections and
>style conflicts.
>3. Namespace conflicts may happen since multiple instances of a gadget
>may reside in a same page.
>4. Some of the Shindig features may not work as some of the parameters
>are previously sent via the IFRAME URL.
>
>
> WRT these issues, it seems like the solution is not feasible for the
> moment. Any other options or ideas to solve this issue?
>
>
> Regards,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][DS] Render gadgets seamlessly (without IFRAME) in Dashboard server

2016-03-14 Thread Lasantha Samarakoon
Hi all,

There is a recent requirement from ESB analytics dashboards, that they need
to wrap a jQuery data range picker within a gadget. In this case once the
date picker is expanded part of it get cropped down by the IFRAME borders.
In order to solve this issue, we thought of facilitating to render gadgets
without IFRAMES. But that approach may cause following issues.


   1. Shindig modifies the HTML content specified in the gadget's XML (add
   new scripts, css styles, re-order content and add extra HTML markup such as
   HTML, HEAD and BODY).
   2. Unable to provide DOM isolation to prevent script injections and
   style conflicts.
   3. Namespace conflicts may happen since multiple instances of a gadget
   may reside in a same page.
   4. Some of the Shindig features may not work as some of the parameters
   are previously sent via the IFRAME URL.


WRT these issues, it seems like the solution is not feasible for the
moment. Any other options or ideas to solve this issue?


Regards,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

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


Re: [Dev] Can we add a batch of resources to registry in one go?

2016-03-14 Thread Isuruwan Herath
For WSDL or WADL type resources you can use Governance Archive files for
batch upload. Otherwise, it is possible with a custom handler.

On Fri, Mar 11, 2016 at 8:39 PM, Prabath Abeysekera 
wrote:

> Folks,
>
> Is $Subject possible? API doesn't say so, was just wondering if we got any
> workaround.
>
> Cheers,
> Prabath
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Streaming File transfer with File Inbound/File Connector

2016-03-14 Thread Vivekananthan Sivanayagam
Hi Malaka,

I have created Jira [1].

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




*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

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

On Mon, Mar 14, 2016 at 10:59 AM, Malaka Silva  wrote:

> Hi Vivekananthan,
>
> Can we create a Jira and follow up on this please?
>
> On Mon, Mar 14, 2016 at 10:40 AM, Kasun Indrasiri  wrote:
>
>>
>>
>> On Mon, Mar 14, 2016 at 9:57 AM, Malaka Silva  wrote:
>>
>>> Hi Kasun,
>>>
>>> I don't think we have the same functionality of VFS sender in file
>>> connector. We have only focused on use cases not covered with VFS transport.
>>>
>>
>> Ok. I think we need to make sure things are consistent across the
>> transport and the file connector. Can we please include this as an
>> improvement for the next version of the connector.
>>
>>
>>>
>> @Vivekananthan - Please confirm this?
>>>
>>> On Sat, Mar 12, 2016 at 4:39 PM, Kasun Indrasiri  wrote:
>>>
 This is great. Thanks a lot Malaka.
 Also, if we use the file connector as the outbound channel, will it
 work in the same way?

 On Tue, Mar 1, 2016 at 12:36 PM, Malaka Silva  wrote:

> Hi All,
>
> Please ignore my previous comments. This can be done with current
> implementation.
>
> if (builder instanceof DataSourceMessageBuilder &&
> "true".equals(streaming)) {
> dataSource = ManagedDataSourceFactory.create(new
> FileObjectDataSource(file, contentType));
> in = null;
> } else {
> in = new
> AutoCloseInputStream(file.getContent().getInputStream());
> dataSource = null;
> }
> ..
> OMElement documentElement;
> if (in != null) {
> documentElement = builder.processDocument(in,
> contentType, axis2MsgCtx);
> } else {
> documentElement =
> ((DataSourceMessageBuilder)builder).processDocument(dataSource,
> contentType, axis2MsgCtx);
> }
> ...
> if(dataSource != null) {
> dataSource.destroy();
> }
>
> This is
> ​because ​
> message builder able to build messages from
> ​​
> DataSource objects.
> ​
> ​
> DataSource​
>  by definition the data from a DataSource can be read
> ​
> multiple times,
> ​builders that implement ​
> this interface
> ​can​
>  avoid storing the message content in memory.
> ​ ​
> If a message builder implements this interface and the
> ​file/vfs
>  is able to provide the message payload as a data source, then the
> method defined by this interface should be preferred over the method
> defined by Builder.
> ​ This
>  helps optimizing
> ​PT​
>  with
> ​vfs/file​.
> The builder will typically expose the data source directly or
> indirectly through the returned OMElement, e.g. by adding to the tree an
> OMText or OMDataSource node referencing the data source.
>
> ​I have checked this with inbound but there is a fix we need to do. I
> have done it in [1]. I have done several tests with and without streaming
> from 5mb to 1gb files.
>
> Without streaming [2] and [3] will show the memory growth. With
> streaming [4]. Without streaming most of the time ESB went OOM​.
>
> Find the related configs and axis2 changes in [5] and [6].
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4458
>
> [2]
>
> [image: Inline image 1]
>
> [3]
>
> [image: Inline image 2]
>
> [4]
>
> [image: Inline image 3]
>
> [5]
>
> http://ws.apache.org/ns/synapse;  name="load"
>  sequence="request"  onError="fault" protocol="file" suspend="false">
>
>   1
>   true
>    name="transport.vfs.ContentType">application/file
>    name="transport.vfs.LockReleaseSameNode">false
>   false
>    name="transport.vfs.ActionAfterFailure">DELETE
>   true
>   true
>    name="transport.vfs.ActionAfterProcess">DELETE
>    name="transport.vfs.FileURI">file:///home/wso2/work/tmp/file/in
>   false
>   true
>   enable
>    name="transport.vfs.FileSortAscending">true
>    name="transport.vfs.FileSortAttribute">NONE
>   false
>
> 
>
> 
> 
> 
> 
>  value="true"/>
> 
> 
> 
> 
>
> [6]
>  class="org.apache.axis2.format.BinaryBuilder"/>
>
> 
>