[Dev] [IS] Returning to application with authentication failure state

2017-03-13 Thread Danushka Fernando
Hi All

I am trying to work on $subject. While looking in to $subject I found a
status in AuthenticatorFlowStatus class named FAIL_COMPLETED but we haven't
used it in the code. So even from the authenticator I set that value it
won't take an effect. I guess we should have use that state and since we
are using same framework for IS 6 shall we do that for IS 6?

Meanwhile have anybody tried to achieve this in IS 5.x and succeeded? Any
ideas are appreciated.

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


Re: [Dev] How can I add a registry resource using registry REST API?

2017-03-13 Thread Shazni Nazeer
Sequences are raw registry resources. In that case you can't use the
Governance REST API. You'll probably have to use WSRegistryServiceClient in
a Java client.

On Mon, Mar 13, 2017 at 10:47 AM, Rajkumar Rajaratnam 
wrote:

>
>
> On Mon, Mar 13, 2017 at 12:26 AM, Rajkumar Rajaratnam 
> wrote:
>
>> Hi Shazni,
>>
>> I just want to add/update a synapse sequence to the registry through a
>> HTTP call. Please let me know if there is a way to do this in API-M 1.10.
>>
>> Thanks,
>> Raj.
>>
>> On Mon, Mar 13, 2017 at 12:19 AM, Shazni Nazeer  wrote:
>>
>>> If you want to retrieve first class assets like the ones to which you
>>> have rxt definition, you can use the following recently introduced REST
>>> API. This is a separate feature which may not be packed with the API-M
>>> versions. You should be able to install it manually however.
>>>
>>> [1] https://docs.wso2.com/display/Governance540/Governance+REST+API
>>>
>>> On Mon, Mar 13, 2017 at 9:39 AM, Rajkumar Rajaratnam >> > wrote:
>>>
 It seems registry REST API is not there in API-M 1.10.

 Using the following command I can get a registry resource in API-M 1.10

 curl -X GET -k -H "Authorization:Basic YWRtaW46YWRtaW4=" "
 https://127.0.0.1:9443/registry/resource/_system/governance
 /apimgt/applicationdata/provider/admin/CalculatorAPI/1.0/in/
 cal_log_in_message"

 Similarly, how can I add/update a resource?

 Thanks.

 On Sun, Mar 12, 2017 at 11:29 PM, Rajkumar Rajaratnam <
 rajkum...@wso2.com> wrote:

> Hi,
>
> I'm referring [1] and trying to add a registry resource using registry
> REST API in API Manager 1.10 using the following command.
>
> curl -X PUT -k -H "Authorization:Basic YWRtaW46YWRtaW4=" -H
> "Content-Type: application/xml" -H "Media-Type: application/xml" -d
> @cal_log_in_message.xml "https://127.0.0.1:9443/resour
> ce/1.0.0/artifact/_system/governance/apimgt/applicationdata/
> provider/admin/CalculatorAPI/1.0/in/cal_log_in_message"
>
> It's not working. Here is the response.
>
> raj@raj-Latitude-E6540:~/workspace$ curl -i -X PUT -k -H
> "Authorization:Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/xml"
> -H "Media-Type: application/xml" -d @cal_log_in_message.xml "
> https://127.0.0.1:9443/resource/1.0.0/artifact/_system/gove
> rnance/apimgt/applicationdata/provider/admin/CalculatorAPI/1
> .0/in/cal_log_in_message"
> HTTP/1.1 302 Found
> Set-Cookie: JSESSIONID=1A4DC76C0BB20201DF5C416D5B7105FE; Path=/;
> Secure; HttpOnly
> Set-Cookie: requestedURI=../../resource/1.
> 0.0/artifact/_system/governance/apimgt/applicationdata/provi
> der/admin/CalculatorAPI/1.0/in/cal_log_in_message; Path=/
> Location: https://127.0.0.1:9443/carbon/admin/login.jsp
> Content-Type: text/html;charset=UTF-8
> Content-Length: 0
> Date: Mon, 13 Mar 2017 03:22:18 GMT
> Server: WSO2 Carbon Server
>
> Can you please advise how to do it in API-M 1.10?
>
> [1] https://docs.wso2.com/display/Governance510/Resources+with+R
> EST+API
>
> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Senior Software Engineer, WSO2
>
> LinkedIn: https://lk.linkedin.com/in/rajuu
> Mobile: +1 408 791 7640 <(408)%20791-7640>
> Blogs: http://wso2tech.blogspot.com/ | https://medium.com/@wso2tech
>



 --
 Rajkumar Rajaratnam
 Committer & PMC Member, Apache Stratos
 Senior Software Engineer, WSO2

 LinkedIn: https://lk.linkedin.com/in/rajuu
 Mobile: +1 408 791 7640 <(408)%20791-7640>
 Blogs: http://wso2tech.blogspot.com/ | https://medium.com/@wso2tech

>>>
>>>
>>>
>>> --
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Senior Software Engineer, WSO2
>>
>> LinkedIn: https://lk.linkedin.com/in/rajuu
>> Mobile: +1 408 791 7640 <(408)%20791-7640>
>> Blogs: http://wso2tech.blogspot.com/ | https://medium.com/@wso2tech
>>
>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Senior Software Engineer, WSO2
>
> LinkedIn: https://lk.linkedin.com/in/rajuu
> Mobile: +1 408 791 7640 <(408)%20791-7640>
> Blogs: http://wso2tech.blogspot.com/ | https://medium.com/@wso2tech
>



-- 
Shazni Nazeer
Associate Technical Lead | WSO2

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


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


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-13 Thread Madhawa Vidanapathirana
Hi,
Thank you for your quick reply.

Since directly using Siddhi Library is the more general case, I'll first
focus on it.

1) I am thinking about following the same structure in JAVA API, centered
around Siddhi Manager. Any opinions on this?
2) Any idea on extent to which lower level/internal components should be
exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
I have heard that it is usually discouraged to use lower level components
instead of the query approach.

Will try to send you a prototype covering basic functionality through
Siddhi Java API, before making the proposal for entire project.

Madhawa

On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan 
wrote:

>
>
> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi.
>>
>> I am an undergraduate from Department of Computer Science and
>> Engineering, University of Moratuwa. I recently completed my internship at
>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>> Base.
>>
>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>> CEP"*. My internship project at WSO2 was almost entirely done using
>> Python. Additionally, I used Py4J Framework to interface certain parts of
>> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
>> with Siddhi/CEP through the WHACK project I took part.
>>
>> I went through the provided details in WSO2 GSOC 2017 Project List page
>> and I am interested to know some more details.
>>
>>1. What version of CEP/Siddhi should be used by the API?
>>
>> You need to support the latest released version of Siddhi and DAS which
> is in DAS 3.1 and also for the latest Siddhi (4.0)
>
>>
>>1. In the description, does "Service APIs" refer to "Admin Services
>>API" which is usually used by Admin Panel to communicate with CEP?
>>
>> Yes, to deploy the queries and to send and receive events
>
>>
>>1. Should the Siddhi Python API require WSO2 CEP to be running in
>>order to make Python API usable?
>>
>> Not necessay it should both work with the running CEP/DAS and use Siddhi
> library in the ohter cases.
>
>>
>>1. Is the Python API expected to do configuring of Siddhi CEP,
>>streaming events to/from Siddhi CEP, or both?
>>
>> Yes in terms of queries.
>
>
>
>> Thank You
>>
>>
>> --
>> *Madhawa Vidanapathirana*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> Mobile: (+94) 716874425 <071%20687%204425>
>> Email: madhawavidanapathir...@gmail.com
>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
*Madhawa Vidanapathirana*
Student
Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka

Mobile: (+94) 716874425
Email: madhawavidanapathir...@gmail.com
Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Lakshani Gamage

2017-03-13 Thread Rushmin Fernando
Hi All,

It's my pleasure to welcome Lakshani Gamage as a WSO2 Committer.

Lakshani had been a valuable contributor to the App Manager team and she is
currently a member of the IoT team. In recognition of her contribution,
dedication, and commitment she has been voted as a WSO2 committer.

Lakshani, welcome aboard and keep up the good work!

Regards,

-- 
*Best Regards*

*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

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


Re: [Dev] How to Wrap Java Exception in UUF

2017-03-13 Thread Gayan Gunawardana
On Tue, Mar 14, 2017 at 9:17 AM, Ayesha Dissanayaka  wrote:

> Hi,
>
> I think this[1] has to be fixed from UUF in order to be able to access
> original exception.
>
Still cause.getTargetException() gives original exception, how can we get
errorCode in that case?

>
> [1] https://github.com/wso2/carbon-uuf/issues/177
>
> Thanks!
> -Ayesha
>
>
> On Tue, Mar 14, 2017 at 9:10 AM, Gayan Gunawardana  wrote:
>
>>
>> Hi UUF team,
>>
>> Client OSGI service throw  UserPortalUIException with error message
>> (message) and error code (errorCode).
>>
>> String error = "Failed to update user password.";
>> LOGGER.error(error, e);
>> throw new UserPortalUIException(error, e.getErrorCode());
>>
>> Form client side .js I can retrieve error message as below
>>
>> } catch (e) {
>>  var message = e.message;
>> var cause = e.getCause();
>> if (cause != null) {
>> //the exceptions thrown by the actual osgi service method is 
>> wrapped inside a InvocationTargetException.
>> if (cause instanceof 
>> java.lang.reflect.InvocationTargetException) {
>> message = cause.getTargetException().message;
>> }
>> }
>>
>> Is there a way to retrieve errorCode as well ?
>>
>> Thanks,
>> Gayan
>>
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> *Ayesha Dissanayaka*
> Senior Software Engineer,
> WSO2, Inc : http://wso2.com
> 
> 20, Palm grove Avenue, Colombo 3
> E-Mail: aye...@wso2.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 Wrap Java Exception in UUF

2017-03-13 Thread Ayesha Dissanayaka
Hi,

I think this[1] has to be fixed from UUF in order to be able to access
original exception.

[1] https://github.com/wso2/carbon-uuf/issues/177

Thanks!
-Ayesha


On Tue, Mar 14, 2017 at 9:10 AM, Gayan Gunawardana  wrote:

>
> Hi UUF team,
>
> Client OSGI service throw  UserPortalUIException with error message
> (message) and error code (errorCode).
>
> String error = "Failed to update user password.";
> LOGGER.error(error, e);
> throw new UserPortalUIException(error, e.getErrorCode());
>
> Form client side .js I can retrieve error message as below
>
> } catch (e) {
>   var message = e.message;
> var cause = e.getCause();
> if (cause != null) {
> //the exceptions thrown by the actual osgi service method is 
> wrapped inside a InvocationTargetException.
> if (cause instanceof java.lang.reflect.InvocationTargetException) 
> {
> message = cause.getTargetException().message;
> }
> }
>
> Is there a way to retrieve errorCode as well ?
>
> Thanks,
> Gayan
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com

20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to Wrap Java Exception in UUF

2017-03-13 Thread Gayan Gunawardana
Hi UUF team,

Client OSGI service throw  UserPortalUIException with error message
(message) and error code (errorCode).

String error = "Failed to update user password.";
LOGGER.error(error, e);
throw new UserPortalUIException(error, e.getErrorCode());

Form client side .js I can retrieve error message as below

} catch (e) {
var message = e.message;
var cause = e.getCause();
if (cause != null) {
//the exceptions thrown by the actual osgi service method
is wrapped inside a InvocationTargetException.
if (cause instanceof java.lang.reflect.InvocationTargetException) {
message = cause.getTargetException().message;
}
}

Is there a way to retrieve errorCode as well ?

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] [IoTS] Cannot enroll new device with the new created account

2017-03-13 Thread 云展智创
Hi Harshan,

I just created the account in the register link. I can’t select the role by 
myself. In the previous IoTS version, the server will provide a default role 
(maybe devicemgt-user) to the new registered user but not in IoTS 3.0.0.

I need to manually create a new role and assign the user to the role with admin 
user so that the new user can enroll new device. Is that right?

Thanks.


--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: IOT, API

在 2017年3月9日,下午6:15,Harshan Liyanage  写道:

> Hi Zhanwen,
> 
> If the user created at first doesn't have the required permissions to enroll 
> a device, the UI won't show up the "Enroll new device" button in the UI. If 
> that's the case it's the expected behaviour. But if the user has all the 
> required permissions then there's a problem. Could you please tell us what 
> permissions were given to the new role (which did not had in the beginning)?
> 
> Thanks,
> 
> Harshan Liyanage
> EMM/IoT TG
> Mobile: +94765672894
> Email: hars...@wso2.com 
> Blog : http://harshanliyanage.blogspot.com/
> WSO2, Inc. : wso2.com
> lean.enterprise.middleware.
> 
> On Thu, Mar 9, 2017 at 2:36 PM, 云展智创  wrote:
> Hi team,
> 
> I deployed the WSO2 IOT pack plugins and started the IoTS server 
> successfully. But I could not enroll new device with the new created account 
> and got the following errors in the backend server:
> 
> 
> 
> I tried to use IP instead of localhost but the URL will redirect to 
> localhost:9443 and got the same error. I couldn’t find the “Enroll new 
> device” button below.
> 
> 
> But after I created a new role with necessary permissions and assigned the 
> above user to that role, then I could enroll a new device with that user. Is 
> that right?
> 
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: IOT, API
> 
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
> 
> 

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


Re: [Dev] [IS] GSoC 2017 - WS-Trust Implementation for IS 6.0.0 using Apache CXF Library

2017-03-13 Thread Sagara Gunathunga
Hi Isuranga,

On Mon, Mar 13, 2017 at 1:22 PM, Isuranga Perera 
wrote:

> Hi All,
>
> Can you explain the scope of this project?
>
> Regards
>
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> isurangamper...@gmail.com
>  W  https://isurangaperera.wordpress.com/
> 
>
> 
> 
> 
> 
> Get a signature like this: Click here!
> 
>
> On Sat, Mar 11, 2017 at 3:58 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi All
>>
>> I am Isuranga Perera a Computer Science undergraduate at University of
>> Colombo School of Computing. I am looking forward to participating GSoC
>> 2017.
>>
>> I am really interested in the project "WS-Trust Implementation for IS
>> 6.0.0 using Apache CXF Library". I have already gone through the IS
>> documentation and I'm familiar with Apache CXF and WS-Trust.
>>
>
It is great to see your interest on this project, let me provide some
context.

- Feature wise outcome of this project should be equivalent to current
WS-Trust implementation of WSO2 IS which is based on Apache Axis2 web
service stack, If you haven't already try out current implementation please
download WSO2 IS 5.3.0 version and familiar yourself about current
implementation. Following pages may help [1] [2] and you can find some good
resources on web as well. This is the necessary 1st step to start this
project.

- As 2nd step it would be better of you can try out Apache CXF samples and
their architecture on WS-Trust implementation.


- In current WSO2 IS implementation which based on Carbon 4 platform, Axis2
web service engine is OOTB available but IS 6 which based on Carbon 5
platform does not provide any WS engine. This is the major architectural
change cause to re-implement  WS-Trust for IS 6.

- As mentioned there is no WS engine in IS 6 but it has cool REST framework
(WSO2 MSF4J) available OOTB, so we can reuse MSF4J to handle transport
(HTTP/S) related activities of new WS-Trust implementation without bringing
any new transports. In others words we don't need to use any CXF transport
for this project, ideally MSF4J can accept HTTP messages and then it can
delegate messages into CXF engine for processing ( without going through
CXF transports ).

- Scope wise this is well defined we need same level of functionalities as
current IS 5.X implementation.

- Implementation wise this is not very hard but design the proper solution
needs some effort and time so it's an advantage to start the design as
early as possible.

I believe now you have enough information to start, if you need further
clarifications please don't hesitate to contact us.



[1] - https://docs.wso2.com/display/IS530/WS-Trust
[2] - https://docs.wso2.com/display/IS530/Identity+Federation+with+WS-Trust

[3] - https://github.com/wso2/msf4j


Thanks !




>
>> Thank You
>>
>> [image: photo]
>> Isuranga Perera
>> at University of Colombo School of Computing
>> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
>> isurangamper...@gmail.com
>>  W  https://isurangaperera.wordpress.com/
>> 
>>
>> 
>> 
>> 
>> 
>> Get a signature like this: Click here!
>> 
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Associate Director / Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Hasitha Jayasundara
Hi all,

I did some changes in FTP client and server so that it can be tested
easily. Refer the readme [1] for further information.

Thanks

[1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server

On Tue, Mar 14, 2017 at 6:53 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> On my research I found many java SSH libraries that support SFTP.The main
> differences between these libraries can be given as,
>
>- client authentication over password / public key
>- server authentication
>- upload /download files from local host over SFTP
>- download files to local host over SFTP
>- file operations on the remote host like move, delete, list all
>children of a given folder (filtering after type like file or folder) over
>SFTP
>- execute plain shell commands
>
> Considering the popularity and the ease of implementation JSch and SSHJ
> are the best libraries I found other than apacheVFS .The details on how
> these libraries differ from each other according to above mentioned points
> are included in the following link.[1] Currently the implementation only
> supports apache-vfs.I will update my implementation with JScH and SSHJ soon.
>
> Thanks
>
> [1] https://www.javacodegeeks.com/2015/08/commons-vfs-sshj-and-
> jsch-in-comparison.html (Comparison of apache-vfs , SSHJ and JScH )
>
> On Tue, Mar 14, 2017 at 3:32 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>>
>> I 've added sftp support to the implementation [2] in order to get an
>> idea about how apache vfs is used in file transferring.I used
>> com.jcraft(jsch),apache.commons and commons-logging dependencies in the
>> implementation which you can find in the pom.
>> To run the program,
>>
>> 1.Add server details to the SFTPProperties.txt
>>
>> serverAddress=[server address]
>> userId=[userId]
>> password=[user password]
>> remoteDirectory=[Remote folder name]/
>> localDirectory=/LocalSFTP/  *don't change this
>>
>> You can simply setup a openssh sftp server [1] and add the credentials to
>> the txt file above mentioned
>> Your local file folder is LocalSFTP.Add files you want to exchange in
>> that folder.
>> Your remote file folder is [Remote folder name](You can create a folder
>> with a name you preferred in the server)
>>
>> 2. Build the pom.xml
>> 3. Run the scripts SFTPDownload.java and SFTPUpload.java
>>
>> [1] http://askubuntu.com/questions/420652/how-to-setup-a-
>> restricted-sftp-server-on-ubuntu
>> [2] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>>
>> On Mon, Mar 13, 2017 at 7:16 PM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> No need to install any Server locally.You can find the server
>>> implementation in FTPServer.java.
>>>
>>> 1. Run FTPServer.java
>>> 2. Run FTPClient.java
>>> 3. In the folders Client and Server include the files you need to
>>> exchange.
>>> (Change file paths according to your development environment
>>>   eg - File f=new File("Add your file path/Client/"+fileName);
>>>  File f=new File("Add your file path/Server/"+fileName);)
>>> 4.In FTPClient.java console you can find
>>>   1.SendFile
>>>   2.ReceiveFile
>>>
>>> Include the number of the operation you need.(eg - 1 for SendFile, 2 for
>>> ReceiveFile ).And you can see it's working.(Include files inside Client and
>>> Server folders.Otherwise the console would outputs "File not found").
>>>
>>> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>>>
 +Kevin

 On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:

> Hi Hasitha,
>
> How did you test the sample?
>
> Did you install a FTP/SFTP server locally and try this use case?
>
> On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>>
>> I have implemented a simple FTP client and server using Java [1] to
>> get a better understanding and trying to extend this to support SFTP 
>> also.
>> Will update the implementation with new technologies and mechanisms 
>> found.
>>
>> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-
>> server
>>
>> On Wed, Mar 8, 2017 at 9:54 PM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi Vivekanthan,
>>>
>>> I'll go through this and let you know if there's any issue.
>>>
>>> Thanks.
>>>
>>> On Wed, Mar 8, 2017 at 9:28 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 ​
 ​Hi Hasitha,

 ​you can refer the existing file connector​[1]​ which used the
 Apache Commons VFS I/O functionalities​ to get an idea of the file 
 operation
 ​s​
 when implementing ​
 ​the ​
 connector for FTP/SFTP​​
 ​.

 [1]
 

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Hasitha Jayasundara
Hi all,

On my research I found many java SSH libraries that support SFTP.The main
differences between these libraries can be given as,

   - client authentication over password / public key
   - server authentication
   - upload /download files from local host over SFTP
   - download files to local host over SFTP
   - file operations on the remote host like move, delete, list all
   children of a given folder (filtering after type like file or folder) over
   SFTP
   - execute plain shell commands

Considering the popularity and the ease of implementation JSch and SSHJ are
the best libraries I found other than apacheVFS .The details on how these
libraries differ from each other according to above mentioned points are
included in the following link.[1] Currently the implementation only
supports apache-vfs.I will update my implementation with JScH and SSHJ soon.

Thanks

[1]
https://www.javacodegeeks.com/2015/08/commons-vfs-sshj-and-jsch-in-comparison.html
(Comparison of apache-vfs , SSHJ and JScH )

On Tue, Mar 14, 2017 at 3:32 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> I 've added sftp support to the implementation [2] in order to get an idea
> about how apache vfs is used in file transferring.I used
> com.jcraft(jsch),apache.commons and commons-logging dependencies in the
> implementation which you can find in the pom.
> To run the program,
>
> 1.Add server details to the SFTPProperties.txt
>
> serverAddress=[server address]
> userId=[userId]
> password=[user password]
> remoteDirectory=[Remote folder name]/
> localDirectory=/LocalSFTP/  *don't change this
>
> You can simply setup a openssh sftp server [1] and add the credentials to
> the txt file above mentioned
> Your local file folder is LocalSFTP.Add files you want to exchange in that
> folder.
> Your remote file folder is [Remote folder name](You can create a folder
> with a name you preferred in the server)
>
> 2. Build the pom.xml
> 3. Run the scripts SFTPDownload.java and SFTPUpload.java
>
> [1] http://askubuntu.com/questions/420652/how-to-setup-
> a-restricted-sftp-server-on-ubuntu
> [2] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>
> On Mon, Mar 13, 2017 at 7:16 PM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi Malaka,
>>
>> No need to install any Server locally.You can find the server
>> implementation in FTPServer.java.
>>
>> 1. Run FTPServer.java
>> 2. Run FTPClient.java
>> 3. In the folders Client and Server include the files you need to
>> exchange.
>> (Change file paths according to your development environment
>>   eg - File f=new File("Add your file path/Client/"+fileName);
>>  File f=new File("Add your file path/Server/"+fileName);)
>> 4.In FTPClient.java console you can find
>>   1.SendFile
>>   2.ReceiveFile
>>
>> Include the number of the operation you need.(eg - 1 for SendFile, 2 for
>> ReceiveFile ).And you can see it's working.(Include files inside Client and
>> Server folders.Otherwise the console would outputs "File not found").
>>
>> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>>
>>> +Kevin
>>>
>>> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>>>
 Hi Hasitha,

 How did you test the sample?

 Did you install a FTP/SFTP server locally and try this use case?

 On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> I have implemented a simple FTP client and server using Java [1] to
> get a better understanding and trying to extend this to support SFTP also.
> Will update the implementation with new technologies and mechanisms found.
>
> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>
> On Wed, Mar 8, 2017 at 9:54 PM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi Vivekanthan,
>>
>> I'll go through this and let you know if there's any issue.
>>
>> Thanks.
>>
>> On Wed, Mar 8, 2017 at 9:28 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> ​
>>> ​Hi Hasitha,
>>>
>>> ​you can refer the existing file connector​[1]​ which used the
>>> Apache Commons VFS I/O functionalities​ to get an idea of the file 
>>> operation
>>> ​s​
>>> when implementing ​
>>> ​the ​
>>> connector for FTP/SFTP​​
>>> ​.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the
>>> +File+Connector+Version+2
>>> ​
>>>
>>> Thanks,
>>> Vivek.​
>>> ​
>>>
>>> Vivekananthan Sivanayagam
>>> Associate Software Engineer | WSO2
>>> E:vivekanant...@wso2.com
>>> M:+94752786138 <+94%2075%20278%206138>
>>>
>>> On Wed, Mar 8, 2017 at 8:00 PM, Malaka Silva 
>>> wrote:
>>>
 Hi Hasitha,

 Good to hear. Keep us posted.

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Hasitha Jayasundara
Hi all,

I 've added sftp support to the implementation [2] in order to get an idea
about how apache vfs is used in file transferring.I used
com.jcraft(jsch),apache.commons and commons-logging dependencies in the
implementation which you can find in the pom.
To run the program,

1.Add server details to the SFTPProperties.txt

serverAddress=[server address]
userId=[userId]
password=[user password]
remoteDirectory=[Remote folder name]/
localDirectory=/LocalSFTP/  *don't change this

You can simply setup a openssh sftp server [1] and add the credentials to
the txt file above mentioned
Your local file folder is LocalSFTP.Add files you want to exchange in that
folder.
Your remote file folder is [Remote folder name](You can create a folder
with a name you preferred in the server)

2. Build the pom.xml
3. Run the scripts SFTPDownload.java and SFTPUpload.java

[1]
http://askubuntu.com/questions/420652/how-to-setup-a-restricted-sftp-server-on-ubuntu
[2] https://github.com/hasithajayasundara/Simple-FTP-client-and-server

On Mon, Mar 13, 2017 at 7:16 PM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi Malaka,
>
> No need to install any Server locally.You can find the server
> implementation in FTPServer.java.
>
> 1. Run FTPServer.java
> 2. Run FTPClient.java
> 3. In the folders Client and Server include the files you need to exchange.
> (Change file paths according to your development environment
>   eg - File f=new File("Add your file path/Client/"+fileName);
>  File f=new File("Add your file path/Server/"+fileName);)
> 4.In FTPClient.java console you can find
>   1.SendFile
>   2.ReceiveFile
>
> Include the number of the operation you need.(eg - 1 for SendFile, 2 for
> ReceiveFile ).And you can see it's working.(Include files inside Client and
> Server folders.Otherwise the console would outputs "File not found").
>
> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>
>> +Kevin
>>
>> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>>
>>> Hi Hasitha,
>>>
>>> How did you test the sample?
>>>
>>> Did you install a FTP/SFTP server locally and try this use case?
>>>
>>> On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi all,

 I have implemented a simple FTP client and server using Java [1] to get
 a better understanding and trying to extend this to support SFTP also. Will
 update the implementation with new technologies and mechanisms found.

 [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server

 On Wed, Mar 8, 2017 at 9:54 PM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi Vivekanthan,
>
> I'll go through this and let you know if there's any issue.
>
> Thanks.
>
> On Wed, Mar 8, 2017 at 9:28 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> ​
>> ​Hi Hasitha,
>>
>> ​you can refer the existing file connector​[1]​ which used the Apache
>> Commons VFS I/O functionalities​ to get an idea of the file operation
>> ​s​
>> when implementing ​
>> ​the ​
>> connector for FTP/SFTP​​
>> ​.
>>
>> [1]
>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the
>> +File+Connector+Version+2
>> ​
>>
>> Thanks,
>> Vivek.​
>> ​
>>
>> Vivekananthan Sivanayagam
>> Associate Software Engineer | WSO2
>> E:vivekanant...@wso2.com
>> M:+94752786138 <+94%2075%20278%206138>
>>
>> On Wed, Mar 8, 2017 at 8:00 PM, Malaka Silva  wrote:
>>
>>> Hi Hasitha,
>>>
>>> Good to hear. Keep us posted.
>>>
>>> On Wed, Mar 8, 2017 at 7:18 PM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi Malaka,

 Sorry for the late reply.

 I studied the implementation of ESB connectors[1],File Inbound
 protocol [2] and now I have a fully understanding about the project 
 and the
 deliverables. As the description of the project states I'll update the
 thread with my findings on methods to to be used for file operations 
 via
 ftp/sftp other than Apache-vfs.

 (I do confirm that I am a full time student and eligible to
 participate GSoC)

 [1] https://docs.wso2.com/display/ESBCONNECTORS/WSO2+ESB+Connectors
 [2] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol


 *D.M.Hasitha Nadishan Jayasundara*
 *Department of Electronic and Telecommunication Engineering*
 University of Moratuwa
 *mobile:* *+94711959266 <071%20195%209266>*
 *blogspot*: learnjavawithisla.blogspot.com/  *email:*
 hasithajayasunda...@gmail.com
 
 
 

Re: [Dev] About Google Summer of code 2017

2017-03-13 Thread Sriskandarajah Suhothayan
Sorry for the late reply, not sure how I have missed this mail, Please do a
google search on these titles some other students are discussing on these
in d...@wso2.com. Since you are also familiar in this space we can also
bring your suggestions as projects if you have any.

On Thu, Mar 2, 2017 at 6:00 PM, 정형근  wrote:

> To WSO2,
>
>
> I am Hyungken Jung, a graduate student of Chungnam University in Korea.
>
> I am really interested in Complex Event Processing (CEP) and Event Stream
> Proecessing (ESP).
> Last year I contacted Suho and Mohan for WSO2 projects in Google Summer of
> Code with my friends, but we found GSoC projects had to go on an individual
> basis, so could not proceed the project because we were a team.
>
> Instead, my friends and I have been working on a project on EPL and Esper
> (url). Below is the results of our Esper related research .
>
> ​[1] H.K. Jung, J.H. Song, D.B. Lim, E. S. Cho, “A Query Preprocessing
> Automatization Tool for Performance Improvement in Event Stream Query
> Processing”, Proc.
> of the 2016 KIISE Programming Language on Computing Practices, 1863 -
> 1865. 2016.6(in Korean)
>
> ​[2] H.K. Jung, J.H. Song, D.B. Lim, E. S. Cho, “Web Based Real-time Event
> Stream Processing System”, Proc.
> of the 2016 KIISE Programming Language on Computing Practices, 2016.12(in
> Korean)
>
> [3] Award Engineering Capstone Design to Web-based Real-Time Event Stream
> System
>
> This year, since I am eager to participate in WSO2's project of GSoC as an
> individual, I would like to get more details on these projects to decide
> before application.
> Current suggestions that I find interesting are 'Proposal 5: Eclipse
> Plugin for Siddhi' and 'Proposal 16: Python API for Siddhi CEP'.
> Would you let me know any information on them or other WSO2 projects?
> Any references would be also appreciated.
>
> Thank you in advance,
>
> With best regards,
>
>
>
> From HyungKen
>
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 : Python API for Siddhi CEP

2017-03-13 Thread Sriskandarajah Suhothayan
Hi Roshan

Can you be more specific about your questions? Do a google search on this
project name there are other mails in d...@wso2.com discussing the scope of
this project.

Regards
Suho

On Fri, Mar 10, 2017 at 10:43 AM, Sajith Ravindra  wrote:

> [Adding Suho who could possibly mentor you through this project]
>
> Thanks
> *,Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> 
>
> On Thu, Mar 9, 2017 at 9:23 PM, Roshan Alwis  > wrote:
>
>> Hi all,
>>
>> I am Roshan from University of Moratuwa. I did my internship at WSO2 in
>> Research Team under the supervision of Dr. Srinath Perera.
>>
>> I am very much familiar with Python and implemented an extension for WSO2
>> CEP for real-time prediction with H2O.ai  while I was
>> working there.
>>
>> I think I fit best in $subject and would like to know more about the
>> scope of the project.
>>
>> Thanks & Regards,
>>
>> Roshan Madhushanka
>>
>> Batch Representative (CSE 13),
>> Department of Computer Science and Engineering
>> University of Moratuwa.
>>
>> alwisroshan...@cse.mrt.ac.lk | 0715894672 <071%20589%204672>
>> [image: Facebook]
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] No of failed attempts in an authentication framework

2017-03-13 Thread Danushka Fernando
Thanks Hasintha

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Mon, Mar 13, 2017 at 10:08 PM, Hasintha Indrajee 
wrote:

> You can capture successful as well as unsuccessful login attempts through
> an extension point in authentication framework. For an example please refer
> the audit logger we have implemented in [1]. But your requirement seems
> different. If you are implementing a custom authenticator for this, you can
> keep track the failure count within authenticaitonContext and redirect to
> the application if the number of failures exceeds your threshold value.
>
>
> [1] https://github.com/wso2-extensions/identity-data-
> publisher-authentication/blob/master/components/org.wso2.
> carbon.identity.data.publisher.application.authentication/src/main/java/
> org/wso2/carbon/identity/data/publisher/application/authentication/impl/
> AuthenticationAuditLogger.java
>
> On Mon, Mar 13, 2017 at 10:02 PM, Danushka Fernando 
> wrote:
>
>> Actually my requirement is to if that no exceeds certain amount, to
>> return with an error message to the application.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <071%20633%202729>
>>
>> On Mon, Mar 13, 2017 at 9:58 PM, Farasath Ahamed 
>> wrote:
>>
>>> + adding Hasintha who worked on similar requirements for IS analytics
>>>
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>> 
>>>
>>>
>>>
>>> On Mon, Mar 13, 2017 at 9:54 PM, Danushka Fernando 
>>> wrote:
>>>
 Hi All
 I have a sp configuration where I have configured step authentication.
 Is there a way to capture the no of failed attempts in a flow inside an
 authenticator? Whats the best way of capturing it?

 Thanks & Regards
 Danushka Fernando
 Senior Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729 <+94%2071%20633%202729>

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


>>>
>>
>
>
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453 <+94%2077%20189%202453>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] No of failed attempts in an authentication framework

2017-03-13 Thread Hasintha Indrajee
You can capture successful as well as unsuccessful login attempts through
an extension point in authentication framework. For an example please refer
the audit logger we have implemented in [1]. But your requirement seems
different. If you are implementing a custom authenticator for this, you can
keep track the failure count within authenticaitonContext and redirect to
the application if the number of failures exceeds your threshold value.


[1]
https://github.com/wso2-extensions/identity-data-publisher-authentication/blob/master/components/org.wso2.carbon.identity.data.publisher.application.authentication/src/main/java/org/wso2/carbon/identity/data/publisher/application/authentication/impl/AuthenticationAuditLogger.java

On Mon, Mar 13, 2017 at 10:02 PM, Danushka Fernando 
wrote:

> Actually my requirement is to if that no exceeds certain amount, to return
> with an error message to the application.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <071%20633%202729>
>
> On Mon, Mar 13, 2017 at 9:58 PM, Farasath Ahamed 
> wrote:
>
>> + adding Hasintha who worked on similar requirements for IS analytics
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>> On Mon, Mar 13, 2017 at 9:54 PM, Danushka Fernando 
>> wrote:
>>
>>> Hi All
>>> I have a sp configuration where I have configured step authentication.
>>> Is there a way to capture the no of failed attempts in a flow inside an
>>> authenticator? Whats the best way of capturing it?
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>


-- 
Hasintha Indrajee
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-03-13 Thread Sriskandarajah Suhothayan
On Sat, Mar 11, 2017 at 8:45 PM, Nadun De Silva  wrote:

> Hi,
>
> I am an undergraduate at the University of Moratuwa in my final year. I
> also worked as an intern at WSO2 last year.
>
> I am interested in *"Siddhi Extension Doc Auto Generation"* GSoC project.
> I have worked with WSO2 CEP and Siddhi during my internship and I am also
> familiar with the Siddhi annotations.
>
> I went through the references provided and I would be very grateful if I
> can get more guidance on how I can learn more details about the project.
> Some of the questions I have are as follows.
>
>1. Does the final HTML pages need to be deployed into the current
>Siddhi documentation and if so is that part of the project scope?
>
> It will not be in the current Siddhi format, we are thinking of a plain
HTML and MD files which can be part of Siddhi Docs in Github.

>
>1. Does the combined documentation (Deliverable 3) need to be in the
>same structure the current documentation is in? (If not the combination can
>maybe be achieved by having separate pages for extension namespaces with
>proper navigation between them)
>
> Can have multiple pages (one per namespace) and having index and
navigation across is good. Please present your suggestion we can discuss
and come to a conclusion on this.

>
>1. If I understood correctly the project does not cover the inbuilt
>processors. Please correct me if I'm wrong.
>
> We have now done some improvements, and now the internal functions too
support annotations, so they can also be generated with the approach.

Regards
Suho


> Thank you.
>
> Nadun De Silva
> Undergraduate of Computer Science and Engineering
> University of Moratuwa
> https://lk.linkedin.com/in/nadundesilva
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] No of failed attempts in an authentication framework

2017-03-13 Thread Danushka Fernando
Actually my requirement is to if that no exceeds certain amount, to return
with an error message to the application.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Mon, Mar 13, 2017 at 9:58 PM, Farasath Ahamed  wrote:

> + adding Hasintha who worked on similar requirements for IS analytics
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
> On Mon, Mar 13, 2017 at 9:54 PM, Danushka Fernando 
> wrote:
>
>> Hi All
>> I have a sp configuration where I have configured step authentication. Is
>> there a way to capture the no of failed attempts in a flow inside an
>> authenticator? Whats the best way of capturing it?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Environments Support for WSO2 API Manager

2017-03-13 Thread Ravindu Perera
Hi All
I have actually gone thought the instructions given I want to get a problem
clarified. I researched and found that from the store APIs can get which
environment the currently the API is in , or is it when i am publishing the
API i should get the environment.

question 1
Which one of these methods are the best approach or if i am wrong can you
all please help me in-order to find the correct approach to get which
environment . the current API are in .

question 2
In the API store of the API manager , is there a specific way to show the
Environment (example should it be with API description )
can you please elaborate more on how should the environment should be
present in the store.

think you all will help me to find answers for the questions , these
information will be helpful in writing the proposal and also making and
proper planning for the project.
Thank you


On Tue, Feb 21, 2017 at 11:19 AM, Kasun Thennakoon  wrote:

> Hi Ravindu,
>
> We are glad to see your interest in WSO2 API manager and the GSOC project.
> It is good to see that you already have experience on working with WSO2 API
> Manager.
> As we have mentioned in the project description[1], the expectation of
> this project is to develop an UI feature to seamlessly switch between
> different environments and perform user operations on that selected
> environment.To get started with the work, I would suggest you build the
> product from source[2][3] and walk through the current implementation
> details of the store and publisher and try to get familiar with those apps.
> And also since API manager C5  UIs are built with UUF framework[4] it
> would be great if you can try out the samples in UUF core[5] and UUF
> commons[6] repositories and learn about the features and capabilities in
> UUF framework.
>
> Regards
> ~KasunTe
>
> [1] : https://docs.wso2.com/display/GSoC/Project+Proposals+for+
> 2017#ProjectProposalsfor2017-Proposal7:EnvironmentsSupportfo
> rWSO2APIManager
>
> [2] : https://github.com/wso2/carbon-apimgt/tree/C5
>
> [3] : https://github.com/wso2/product-apim/tree/C5
>
> [4] : https://github.com/wso2/carbon-uuf
>
> [5] : https://github.com/wso2/carbon-uuf/tree/master/samples
>
> [6] : https://github.com/wso2/carbon-uuf-common/tree/master/samples
>
>
> On Tue, Feb 21, 2017 at 9:27 AM, Ravindu Perera  > wrote:
>
>> Hi
>> I am a 3rd year student from Informatics Institute of technology and i
>> got 3 years experience in HTML, CSS, Javascript and knowledge and also
>> knowledge in using rest service , and experience on using the WSO2 API
>> Manger cloud as well , familiar  handlebars.js . And have a good confident
>> level for this project , so can you all please provide more information and
>> guidance to start the project off.
>>
>> Thank you
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kasun Thennakoon*
> Software Engineer
> WSO2, Inc.
> Mobile:+94 711661919
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] No of failed attempts in an authentication framework

2017-03-13 Thread Farasath Ahamed
+ adding Hasintha who worked on similar requirements for IS analytics

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 




On Mon, Mar 13, 2017 at 9:54 PM, Danushka Fernando 
wrote:

> Hi All
> I have a sp configuration where I have configured step authentication. Is
> there a way to capture the no of failed attempts in a flow inside an
> authenticator? Whats the best way of capturing it?
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] No of failed attempts in an authentication framework

2017-03-13 Thread Danushka Fernando
Hi All
I have a sp configuration where I have configured step authentication. Is
there a way to capture the no of failed attempts in a flow inside an
authenticator? Whats the best way of capturing it?

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


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-13 Thread Sriskandarajah Suhothayan
On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi.
>
> I am an undergraduate from Department of Computer Science and Engineering,
> University of Moratuwa. I recently completed my internship at WSO2 working
> with the Support Team on the project WSO2 Support Knowledge Base.
>
> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi CEP"*.
> My internship project at WSO2 was almost entirely done using Python.
> Additionally, I used Py4J Framework to interface certain parts of the
> project to JAVA APIs. Furthermore, I have a certain amount of exposure with
> Siddhi/CEP through the WHACK project I took part.
>
> I went through the provided details in WSO2 GSOC 2017 Project List page
> and I am interested to know some more details.
>
>1. What version of CEP/Siddhi should be used by the API?
>
> You need to support the latest released version of Siddhi and DAS which is
in DAS 3.1 and also for the latest Siddhi (4.0)

>
>1. In the description, does "Service APIs" refer to "Admin Services
>API" which is usually used by Admin Panel to communicate with CEP?
>
> Yes, to deploy the queries and to send and receive events

>
>1. Should the Siddhi Python API require WSO2 CEP to be running in
>order to make Python API usable?
>
> Not necessay it should both work with the running CEP/DAS and use Siddhi
library in the ohter cases.

>
>1. Is the Python API expected to do configuring of Siddhi CEP,
>streaming events to/from Siddhi CEP, or both?
>
> Yes in terms of queries.



> Thank You
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Idea Plugin for Siddhi

2017-03-13 Thread Sriskandarajah Suhothayan
No need to implement siddhi execution and debugging, but we need to have
syntax highlighting and autocompletion.

Regards
Suho

On Sun, Mar 12, 2017 at 5:10 PM, Nipuna Sankalpa <
nipunasankalpa...@cse.mrt.ac.lk> wrote:

> Hi,
> I am an undergraduate from Department of Computer Science and Engineering
> University of Moratuwa. I'm interested on Gsoc project proposal No.4 : " *Idea
> Plugin for Siddhi* " which is listed under Wso2 proposal list. I have
> recently contributed to a project related to the Siddhi CEP [Real Time
> Value at Risk Computation] and now I'm familiar with with Siddhi CEP up to
> considerable level.
> I went through the proposal description and want to clarify,
> whether I need to include siddhi execution and debugging as a task for the
> proposal?? or else shall I prepare the proposal without it and complete the
> execution and debugging part if only the time permits.
>
> Thanks,
> Best Regards,
> --
>
> Nipuna Sankalpa,
>
> Undergraduate,
>
> Department of Computer Science & Engineering,
> University of Moratuwa,
>
> Sri Lanka.
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 Project proposal 6: Eclipse plugin for Siddhi

2017-03-13 Thread Sriskandarajah Suhothayan
We can do this but this will take a lot of effort in implementing
Antlr to Xtext
which will be a bit of a work and may be a bit hard to maintain.
+1 If no other options.

Regards
Suho

On Mon, Mar 13, 2017 at 10:38 AM, Udeshika Sewwandi <
sewwandikaus...@cse.mrt.ac.lk> wrote:

> Hi,
> For the project can I use Antlr 4 IDE in Eclipse which is built on Xtext ?
> From that an Antlr 4 project can be created and grammar file,lexer and
> parser are generated automatically. If not through command line the same
> lexer and parser can be generated using the grammar file and can be
> imported in eclipse IDE for further development. What is your idea on this?
> Thank you.
>
> Best Regards,
> -Sewwandi
>
> On 8 March 2017 at 17:27, Udeshika Sewwandi  > wrote:
>
>> Hi,
>> I have gone through almost all the references given. I found that instead
>> of antlr we can use Xtext framework [1] which has features for Eclipse
>> also. Currently I am following the references given in [2],[3] to get
>> familiarize with editor plugins for Eclipse. Is there any eclipse version
>> that needs to be used for the project? Actually I couldn't test the sample
>> plugin in a tutorial since I couldn't reach the run-time workbench of
>> Eclipse. Do you have any idea why this is happening ? Thank you.
>>
>>
>> [1] https://eclipse.org/Xtext/
>> [2] http://www.wideskills.com/eclipse-plugin-tutorial/eclips
>> e-plugin-editors-tutorial
>> [3] http://www.vogella.com/tutorials/EclipseEditors/article.html
>>
>> Best Regards,
>> -Sewwandi
>>
>> On 7 March 2017 at 16:19, Nirmal Fernando  wrote:
>>
>>> Great. Please keep the discussion in dev@wso2.org mailing list.
>>>
>>> On Tue, Mar 7, 2017 at 3:37 PM, Udeshika Sewwandi <
>>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>>
 Hi,
 Thank you very much for replying. Currently I am familiarizing with the
 Eclipse plugin environment and Siddhi.

 Best Regards,
 -Sewwandi

 On 7 March 2017 at 12:25, Sriskandarajah Suhothayan 
 wrote:

> We need an editor that supports Siddhi grammar
> https://github.com/wso2/siddhi/blob/master/modules/siddhi-qu
> ery-compiler/src/main/antlr4/org/wso2/siddhi/query/compiler/
> SiddhiQL.g4
>
> Can start with a PoC on implementing an editor with syntax
> highlighting and auto-completion not necessary for Siddhi but for some
> sample language and then look into how we can do the same for Siddhi.
>
> Regards
> Suho
>
> On Tue, Mar 7, 2017 at 10:24 AM, Nirmal Fernando 
> wrote:
>
>> Hi Udeshika,
>>
>> Thanks for your interest in this project. Suho (CCied) and I will be
>> your mentors. You can start familiarizing yourself with Siddhi and 
>> Eclipse
>> plugin development. Let us know if you have any specific questions.
>>
>> On Mon, Mar 6, 2017 at 11:20 AM, Udeshika Sewwandi <
>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>> I am Udeshika Sewwandi, a final year undergraduate of Department of
>>> Computer Science and Engineering of University of Moratuwa. I am 
>>> interested
>>> with the GSoC 2017 Proposal 6: "Eclipse plugin for Siddhi" .I'm going
>>> through the references provided for the project and can you please 
>>> direct
>>> me to the responsible mentors to get more familiarize with the project. 
>>> We
>>> are going to integrate WSO2 CEP for my final year project. So I thought 
>>> of
>>> contributing to Siddhi which will be useful for future Siddhi users. 
>>> Thank
>>> you.
>>>
>>> Best Regards,
>>> -Sewwandi
>>>
>>> --
>>> K.A.U.Sewwandi
>>> Undergraduate
>>> Department of Computer Science and Engineering
>>> Faculty of Engineering
>>> University of Moratuwa
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Technical Lead - Analytics Team, WSO2 Inc.
>> Mobile: +94715779733 <071%20577%209733>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect & Team Lead of WSO2 Complex Event
> Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan 
> *
>



 --
 K.A.U.Sewwandi
 Undergraduate
 Department of Computer Science and Engineering
 Faculty of 

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Hasitha Jayasundara
Hi Malaka,

No need to install any Server locally.You can find the server
implementation in FTPServer.java.

1. Run FTPServer.java
2. Run FTPClient.java
3. In the folders Client and Server include the files you need to exchange.
(Change file paths according to your development environment
  eg - File f=new File("Add your file path/Client/"+fileName);
 File f=new File("Add your file path/Server/"+fileName);)
4.In FTPClient.java console you can find
  1.SendFile
  2.ReceiveFile

Include the number of the operation you need.(eg - 1 for SendFile, 2 for
ReceiveFile ).And you can see it's working.(Include files inside Client and
Server folders.Otherwise the console would outputs "File not found").

On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:

> +Kevin
>
> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>
>> Hi Hasitha,
>>
>> How did you test the sample?
>>
>> Did you install a FTP/SFTP server locally and try this use case?
>>
>> On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I have implemented a simple FTP client and server using Java [1] to get
>>> a better understanding and trying to extend this to support SFTP also. Will
>>> update the implementation with new technologies and mechanisms found.
>>>
>>> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>>>
>>> On Wed, Mar 8, 2017 at 9:54 PM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi Vivekanthan,

 I'll go through this and let you know if there's any issue.

 Thanks.

 On Wed, Mar 8, 2017 at 9:28 PM, Vivekananthan Sivanayagam <
 vivekanant...@wso2.com> wrote:

> ​
> ​Hi Hasitha,
>
> ​you can refer the existing file connector​[1]​ which used the Apache
> Commons VFS I/O functionalities​ to get an idea of the file operation
> ​s​
> when implementing ​
> ​the ​
> connector for FTP/SFTP​​
> ​.
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the
> +File+Connector+Version+2
> ​
>
> Thanks,
> Vivek.​
> ​
>
> Vivekananthan Sivanayagam
> Associate Software Engineer | WSO2
> E:vivekanant...@wso2.com
> M:+94752786138 <+94%2075%20278%206138>
>
> On Wed, Mar 8, 2017 at 8:00 PM, Malaka Silva  wrote:
>
>> Hi Hasitha,
>>
>> Good to hear. Keep us posted.
>>
>> On Wed, Mar 8, 2017 at 7:18 PM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> Sorry for the late reply.
>>>
>>> I studied the implementation of ESB connectors[1],File Inbound
>>> protocol [2] and now I have a fully understanding about the project and 
>>> the
>>> deliverables. As the description of the project states I'll update the
>>> thread with my findings on methods to to be used for file operations via
>>> ftp/sftp other than Apache-vfs.
>>>
>>> (I do confirm that I am a full time student and eligible to
>>> participate GSoC)
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/WSO2+ESB+Connectors
>>> [2] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol
>>>
>>>
>>> *D.M.Hasitha Nadishan Jayasundara*
>>> *Department of Electronic and Telecommunication Engineering*
>>> University of Moratuwa
>>> *mobile:* *+94711959266 <071%20195%209266>*
>>> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
>>> hasithajayasunda...@gmail.com
>>> 
>>> 
>>> 
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Associate Director / Architect
>> M: +94 777 219 791 <+94%2077%20721%209791>
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300 <011%202%20145300>
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> https://wso2.com/signature
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>> https://store.wso2.com/store/
>>
>> Don't make Trees rare, we should keep them with care
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


 --
 *D.M.Hasitha Nadishan Jayasundara*
 *Department of Electronic and Telecommunication Engineering*
 University of Moratuwa
 *mobile:* *+94711959266 <+94%2071%20195%209266>*
 *blogspot*: learnjavawithisla.blogspot.com/  *email:*
 hasithajayasunda...@gmail.com
 

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for IBM MQ 8.0

2017-03-13 Thread Malaka Silva
Hi Chanaka,

Also better to think about how to secure the connections with credentials
and SSL.

On Mon, Mar 13, 2017 at 11:04 AM, Chanaka Balasooriya 
wrote:

> Hi Malaka,
>
> I've been studying specifications of using native IBM MQ jars with the
> help of resources you sent and I could understand that It gives more
> flexibility on configuring
> connections and some binding options.
>
> I tried to implement sample MQ-Client [1] that can connect to IBM MQ
> without .binding file and we can improve that to implement inbound endpoint
> and the connector. please have a look.
> I am going to improve that MQ-Client to support more ibm specific options
> such as SSL connections within next few days.
>
> [1]https://github.com/chanakadinesh/MQ-Client
>
> Thanks,
>
> On Thu, Mar 2, 2017 at 4:51 PM, Malaka Silva  wrote:
>
>> Hi Chanaka,
>>
>> Following will help.
>>
>> [1] http://mrmalakasilva.blogspot.com/2013/10/connecting-mechani
>> sms-other-than.html
>> [2] http://www-01.ibm.com/support/docview.wss?uid=swg24037500
>> [3] http://stackoverflow.com/questions/2692070/connecting-to
>> -a-websphere-mq-in-java-with-ssl-keystore
>> [4] http://www.kevinboone.net/simplewmqclient.html
>>
>> On Wed, Mar 1, 2017 at 3:04 PM, Chanaka Balasooriya > > wrote:
>>
>>> Hi Malaka,
>>>
>>> Thank you for your response.
>>>
>>> As you mentioned, to understand the advantage of using native IBM MQ
>>> jars I will need to compare the current ESB IBM MQ support with native IBM
>>> MQ.
>>> So please share if you have any recommended reading materials to know
>>> more about IBM MQ other than [1] and it will be really helpful to get a
>>> better approach to this project.
>>>
>>> (I do confirm that I am a full time student and eligible to participate
>>> GSoC. )
>>>
>>> [1] https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0
>>> /com.ibm.mq.helphome.v80.doc/WelcomePagev8r0.html
>>>
>>> Thanks,
>>>
>>> On Tue, Feb 28, 2017 at 9:39 PM, Malaka Silva  wrote:
>>>
 Hi Chanaka,

 Thank you for your interest in this project.

 Currently with WSO2 ESB there is a generic JMS inbound endpoint that
 can be used to consume messages from different brokers. [1]

 However there are complexities when configuring WSO2 ESB with IBM MQ.
 This is mainly due to class loading issues. Also IBM provides more
 customized options that are written on top of JMS transport.

 Part of this project is to identify those and develop a new Inbound
 Endpoint to support this integration.

 Also please confirm that you are a full time student and currently not
 employed since it is against GSoC rules.

 [1] https://docs.wso2.com/display/ESB500/JMS+Inbound+Protocol

 On Tue, Feb 28, 2017 at 4:47 PM, Chanaka Balasooriya <
 chanaka...@gmail.com> wrote:

> Hi,
>
> I am Chanaka Balasooriya, final year undergraduate at Computer Science
> and Engineering Department, University of Moratuwa. I am highly interested
> in distributed computing and Java related things and it led me to select
> and find more about this project. I was an intern at WSO2 and I have a 
> keen
> knowledge about WSO2ESB, inbound endpoints and transports since my
> internship project was related to them.
>
> Regarding this project, I have already started to follow the WSO2 doc
> about current implementation of  WSO2 ESB for IBM WebSphere MQ through JMS
> transport. I would be grateful if you can give me some suggestions and
> materials to understand the project more.
>
> Thanks,
> --
> Chanaka Balasooriya
> Undergraduate
> Department of Computer Science and Engineering
> University of Moratuwa
> +9471 294 7898 <071%20294%207898>
>



 --

 Best Regards,

 Malaka Silva
 Associate Director / Architect
 M: +94 777 219 791 <+94%2077%20721%209791>
 Tel : 94 11 214 5345
 Fax :94 11 2145300 <011%202%20145300>
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 https://wso2.com/signature
 http://www.wso2.com/about/team/malaka-silva/
 
 https://store.wso2.com/store/

 Don't make Trees rare, we should keep them with care

>>>
>>>
>>>
>>> --
>>> Chanaka Balasooriya
>>> Undergraduate
>>> Department of Computer Science and Engineering
>>> University of Moratuwa
>>> +9471 294 7898 <071%20294%207898>
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Associate Director / Architect
>> M: +94 777 219 791 <+94%2077%20721%209791>
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300 <011%202%20145300>
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : 

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Malaka Silva
Hi Hasitha,

How did you test the sample?

Did you install a FTP/SFTP server locally and try this use case?

On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> I have implemented a simple FTP client and server using Java [1] to get a
> better understanding and trying to extend this to support SFTP also. Will
> update the implementation with new technologies and mechanisms found.
>
> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>
> On Wed, Mar 8, 2017 at 9:54 PM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi Vivekanthan,
>>
>> I'll go through this and let you know if there's any issue.
>>
>> Thanks.
>>
>> On Wed, Mar 8, 2017 at 9:28 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> ​
>>> ​Hi Hasitha,
>>>
>>> ​you can refer the existing file connector​[1]​ which used the Apache
>>> Commons VFS I/O functionalities​ to get an idea of the file operation
>>> ​s​
>>> when implementing ​
>>> ​the ​
>>> connector for FTP/SFTP​​
>>> ​.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the
>>> +File+Connector+Version+2
>>> ​
>>>
>>> Thanks,
>>> Vivek.​
>>> ​
>>>
>>> Vivekananthan Sivanayagam
>>> Associate Software Engineer | WSO2
>>> E:vivekanant...@wso2.com
>>> M:+94752786138 <+94%2075%20278%206138>
>>>
>>> On Wed, Mar 8, 2017 at 8:00 PM, Malaka Silva  wrote:
>>>
 Hi Hasitha,

 Good to hear. Keep us posted.

 On Wed, Mar 8, 2017 at 7:18 PM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi Malaka,
>
> Sorry for the late reply.
>
> I studied the implementation of ESB connectors[1],File Inbound
> protocol [2] and now I have a fully understanding about the project and 
> the
> deliverables. As the description of the project states I'll update the
> thread with my findings on methods to to be used for file operations via
> ftp/sftp other than Apache-vfs.
>
> (I do confirm that I am a full time student and eligible to
> participate GSoC)
>
> [1] https://docs.wso2.com/display/ESBCONNECTORS/WSO2+ESB+Connectors
> [2] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol
>
>
> *D.M.Hasitha Nadishan Jayasundara*
> *Department of Electronic and Telecommunication Engineering*
> University of Moratuwa
> *mobile:* *+94711959266 <071%20195%209266>*
> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
> hasithajayasunda...@gmail.com
> 
> 
> 
>



 --

 Best Regards,

 Malaka Silva
 Associate Director / Architect
 M: +94 777 219 791 <+94%2077%20721%209791>
 Tel : 94 11 214 5345
 Fax :94 11 2145300 <011%202%20145300>
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 https://wso2.com/signature
 http://www.wso2.com/about/team/malaka-silva/
 
 https://store.wso2.com/store/

 Don't make Trees rare, we should keep them with care

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


>>>
>>
>>
>> --
>> *D.M.Hasitha Nadishan Jayasundara*
>> *Department of Electronic and Telecommunication Engineering*
>> University of Moratuwa
>> *mobile:* *+94711959266 <+94%2071%20195%209266>*
>> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
>> hasithajayasunda...@gmail.com
>> 
>> 
>> 
>>
>
>
>
> --
> *D.M.Hasitha Nadishan Jayasundara*
> *Department of Electronic and Telecommunication Engineering*
> University of Moratuwa
> *mobile:* *+94711959266 <071%20195%209266>*
> *blogspot*: learnjavawithisla.blogspot.com/  *email:* hasithajayasundar
> a...@gmail.com
> 
> 
> 
>



-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Malaka Silva
+Kevin

On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:

> Hi Hasitha,
>
> How did you test the sample?
>
> Did you install a FTP/SFTP server locally and try this use case?
>
> On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>>
>> I have implemented a simple FTP client and server using Java [1] to get a
>> better understanding and trying to extend this to support SFTP also. Will
>> update the implementation with new technologies and mechanisms found.
>>
>> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>>
>> On Wed, Mar 8, 2017 at 9:54 PM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi Vivekanthan,
>>>
>>> I'll go through this and let you know if there's any issue.
>>>
>>> Thanks.
>>>
>>> On Wed, Mar 8, 2017 at 9:28 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 ​
 ​Hi Hasitha,

 ​you can refer the existing file connector​[1]​ which used the Apache
 Commons VFS I/O functionalities​ to get an idea of the file operation
 ​s​
 when implementing ​
 ​the ​
 connector for FTP/SFTP​​
 ​.

 [1]
 https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the
 +File+Connector+Version+2
 ​

 Thanks,
 Vivek.​
 ​

 Vivekananthan Sivanayagam
 Associate Software Engineer | WSO2
 E:vivekanant...@wso2.com
 M:+94752786138 <+94%2075%20278%206138>

 On Wed, Mar 8, 2017 at 8:00 PM, Malaka Silva  wrote:

> Hi Hasitha,
>
> Good to hear. Keep us posted.
>
> On Wed, Mar 8, 2017 at 7:18 PM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi Malaka,
>>
>> Sorry for the late reply.
>>
>> I studied the implementation of ESB connectors[1],File Inbound
>> protocol [2] and now I have a fully understanding about the project and 
>> the
>> deliverables. As the description of the project states I'll update the
>> thread with my findings on methods to to be used for file operations via
>> ftp/sftp other than Apache-vfs.
>>
>> (I do confirm that I am a full time student and eligible to
>> participate GSoC)
>>
>> [1] https://docs.wso2.com/display/ESBCONNECTORS/WSO2+ESB+Connectors
>> [2] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol
>>
>>
>> *D.M.Hasitha Nadishan Jayasundara*
>> *Department of Electronic and Telecommunication Engineering*
>> University of Moratuwa
>> *mobile:* *+94711959266 <071%20195%209266>*
>> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
>> hasithajayasunda...@gmail.com
>> 
>> 
>> 
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Associate Director / Architect
> M: +94 777 219 791 <+94%2077%20721%209791>
> Tel : 94 11 214 5345
> Fax :94 11 2145300 <011%202%20145300>
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

>>>
>>>
>>> --
>>> *D.M.Hasitha Nadishan Jayasundara*
>>> *Department of Electronic and Telecommunication Engineering*
>>> University of Moratuwa
>>> *mobile:* *+94711959266 <+94%2071%20195%209266>*
>>> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
>>> hasithajayasunda...@gmail.com
>>> 
>>> 
>>> 
>>>
>>
>>
>>
>> --
>> *D.M.Hasitha Nadishan Jayasundara*
>> *Department of Electronic and Telecommunication Engineering*
>> University of Moratuwa
>> *mobile:* *+94711959266 <071%20195%209266>*
>> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
>> hasithajayasunda...@gmail.com
>> 
>> 
>> 
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Associate Director / Architect
> M: +94 777 219 791 <077%20721%209791>
> Tel : 94 11 214 5345
> Fax :94 11 2145300 <011%202%20145300>
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> https://wso2.com/signature
> 

Re: [Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-03-13 Thread Shani Ranasinghe
Hi all,

Just want to know if there has been a final decision being made on the
cache used?

On Sat, Feb 25, 2017 at 12:47 AM, Rajith Roshan  wrote:

> Hi all,
> Since distributed caches are no longer used in C5, we thought of using
> this as a local cache. If the token is missing in the cache then it will be
> validated using the key manager. So having this as a local cache is enough
> for our scenario.
> But the only issue we have is if token is revoked from one node, then
> invalid token can be there in the cache of the other node. We need a way to
> handle that scenario maybe using notification based cache synchorinization,
> JMS or using small validity period for tokens.
> Since IS have a requirement to replicate local cache in real time, Its
> better to use a platform wise caching mechanism with such capability. WDYT?
>
> Thanks!
> Rajith
>
> On Fri, Feb 24, 2017 at 10:22 PM, Harsha Thirimanna 
> wrote:
>
>> We also did some poc using Memcache and it is like a centralized caching
>> system rather than distributing cache among the nodes. And it is released
>> only very light weight engine and we have to implement our own way to
>> manage it.
>> Anyway, don't you guys have to replicate loca cache among the other node
>> in real time ? Because in that case we have to go either centralize or some
>> notification based local cache synchronizer mechanism. Otherwise we have to
>> find another solution for IS. Because we have that requirement. I think we
>> can try out the Redis also if we think about the the cluster. Anyway we
>> can't think about a distributed cache like Hazelecast again because of it
>> is giving lot of issues.
>>
>> *Harsha Thirimanna*
>> *Associate Tech Lead | WSO2*
>>
>> Email: hars...@wso2.com
>> Mob: +94715186770 <+94%2071%20518%206770>
>> Blog: http://harshathirimanna.blogspot.com/
>> Twitter: http://twitter.com/harshathirimann
>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>> rsha-thirimanna/10/ab8/122
>> 
>>
>> On Fri, Feb 24, 2017 at 1:45 PM, Uvindra Dias Jayasinha > > wrote:
>>
>>> Its great if we can have some feedback about this, active C5 development
>>> needs this moving forward.
>>>
>>> @Azeez and @Kishanthan, do we have any preferences?
>>>
>>> On 24 February 2017 at 13:12, Sagara Gunathunga  wrote:
>>>





 On Fri, Feb 24, 2017 at 7:28 AM, Uvindra Dias Jayasinha <
 uvin...@wso2.com> wrote:

> This will function like any of the local container classes we
> use(example: HashMap). I think its fine to use one of the available
> implementations(such as Guava since we already have it as a dependency) 
> for
> this. Testing will reveal its suitability but I don't anticipate any 
> issues
> since this is not as complicated as a distributed cache.
>

 It's ok to pick one of the local cache implementations but make sure
 you discuss with others without limiting to your own use case and pick a
 good one so that others can use the same for their local caching
 requirements, it's really ugly to use several local caching F/W across the
 platform other than really exceptional cases.

 Thanks !

>
> On 16 February 2017 at 22:45, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Rajith,
>>
>> I think this is a generic requirement for all the C5 based products
>> rather than for this specific use case. So we need to come up with a
>> solution that can be used across the platform.
>>
>> Thanks,
>>
>> On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan 
>> wrote:
>>
>>> Hi all,
>>>
>>> In C5 API Manager  back end REST APIs (micro services) are protected
>>> using oauth2 token. Every time request comes to micro services, 
>>> interceptor
>>> will validate the access token sent in the authorization header of the
>>> request. In order to validate the token we need to do a introspection 
>>> call
>>> to the key manager.  We can not do this introspection call to the key
>>> manager for each and every request. We need a caching layer at the
>>> interceptor level in order to cache the access tokens.
>>>
>>> We are going to use local cache with small cache timeout periods for
>>> this. What are the best caching systems we can use for this.
>>> We can use either JCache (javax.cache), google guava cache[1] which
>>> are specially used as local caches. "Memcached" [2] is also another 
>>> option
>>> but mostly used in distributed systems.
>>>
>>> [1] - https://github.com/google/guava/wiki/CachesExplained
>>> [2] - https://memcached.org/
>>> --
>>> Rajith Roshan
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>>
>>> ___
>>> Dev 

Re: [Dev] GSOC 2017 - Native inbound and connector for FTP/SFTP operations

2017-03-13 Thread Chanaka Lakmal
Hi Malaka,

I researched for the libraries that we can use for FTP/SFTP operations in
addition to using Apache Commons VFS. I found out about some widely used
libraries such as SSHJ [1] and JSch [2] and did a comparison among them.
With the use of those findings I created a comparison on SSHJ, Apache
Commons VFS and JSch and published on my blog [3].

Also, I have experience in JSch since I had previously worked on developing
a SCP transport using JSch [4] [5]. I believe its ability to execute shell
commands with the help of the library is a great feature in JSch. According
to the comparison and my experiences, JSch looks like the best candidate
among them and I hope to hear others' thoughts about this.

Please share your recommendations and suggestions to get a better approach
to this project.

[1] SSHJ - https://github.com/hierynomus/sshj
[2] JSch - http://www.jcraft.com/jsch/
[3] SSHJ, Apache Commons VFS and JSch comparison (blog post) -
https://medium.com/@ldclakmal/comparison-of-commons-vfs-
sshj-and-jsch-libraries-for-sftp-support-cd5a0db2fbce#.d6bux0q0f
[4] My SCP project (blog post) - https://medium.com/@ldclakmal/
scp-with-java-b7b7dbcdbc85#.b05pinv1o
[5] My SCP project (git) - https://github.com/ldclakmal/SCPTransport

Thanks.


Best Regards.

*Chanaka Lakmal,*
Undergraduate B.Sc.Eng.(Hons.)
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.

[image: LinkedIn] 

On Fri, Mar 3, 2017 at 8:57 AM, Malaka Silva  wrote:

> Hi Chanaka,
>
> Sounds good. Looking forward to hear from you soon.
>
> On Thu, Mar 2, 2017 at 6:54 PM, Chanaka Lakmal 
> wrote:
>
>> Hi Malaka,
>>
>> Thank you for your response.
>>
>> As you mentioned, you have done a similar development to optimize and
>> manage local file system using Java NIO [1] instead of Commons-vfs. [2] So
>> my goal is to find such mechanism which is more unique to ftp/sftp
>> protocol, in order to support file operations via ftp/sftp protocol.
>>
>> So, I will come up with my suggestions with best mechanism that is to be
>> used for file operations via ftp/sftp protocol rather than Commons-vfs.
>> Please share if you have any recommended methods or suggestions to get a
>> better approach to this project.
>>
>> Also I do confirm that I am a full time student and eligible to
>> participate GSoC.
>>
>> [1] https://store.wso2.com/store/assets/esbconnector/details
>> /9ac7accf-6535-46c2-853e-9ca75c23cdef
>> [2] http://commons.apache.org/proper/commons-vfs/index.html
>>
>> Thanks.
>>
>> Best Regards.
>>
>> *Chanaka Lakmal,*
>> Undergraduate B.Sc.Eng.(Hons.)
>> Department of Computer Science & Engineering,
>> University of Moratuwa,
>> Sri Lanka.
>>
>> [image: LinkedIn] 
>>
>> On Tue, Feb 28, 2017 at 10:29 PM, Malaka Silva  wrote:
>>
>>> Hi Chanaka,
>>>
>>> Thank you for sending the mail.
>>>
>>> Currently we have file inbound endpoint [1] and file connector [2] to
>>> support file operations in WSO2 ESB.
>>>
>>> However this is written on top of common-vfs. Common vfs support variety
>>> of file systems or protocols. eg: ftp, samba etc. Due to that this is not
>>> optimum for ftp/sftp. Also this provides limited options.
>>>
>>> We have done a similar development to manage local file system using
>>> Java NIO. [3] The idea of this project is to come up with similar inbound
>>> and connector for ftp/sftp protocol.
>>>
>>> Also please confirm that you are a full time student and currently not
>>> employed since it is against GSoC rules.
>>>
>>> [1] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol
>>> [2] https://store.wso2.com/store/assets/esbconnector/details
>>> /48bab332-c6a6-4f5a-9b79-17e29c7ad4c6
>>> [3] https://store.wso2.com/store/assets/esbconnector/details
>>> /9ac7accf-6535-46c2-853e-9ca75c23cdef
>>>
>>> On Tue, Feb 28, 2017 at 7:53 AM, Chanaka Lakmal 
>>> wrote:
>>>
 Hi,

 I'm interested in the project *Native inbound and connector for
 FTP/SFTP operations*. I would like to know more information regarding
 this.

 I am Chanaka Lakmal, an final year undergraduate from Department of
 Computer Science and Engineering, University of Moratuwa. I have the basic
 knowledge on Java NIO, File Systems and I have been working with ESB and
 connectors.

 Initially I went through following [1] to understand about File Inbound
 Protocol and I would like to know more about this project, especially on
 the expected outcomes and the scope of the project.

 [1] - https://docs.wso2.com/display/ESB490/File+Inbound+Protocol

 Thank you.

 Best Regards.

 *Chanaka Lakmal,*
 Undergraduate B.Sc.Eng.(Hons.)
 Department of Computer Science & Engineering,
 University of Moratuwa,
 Sri Lanka.

 [image: LinkedIn] 

 

Re: [Dev] [IS] GSoC 2017 - WS-Trust Implementation for IS 6.0.0 using Apache CXF Library

2017-03-13 Thread Omindu Rathnaweera
+ [Johann, KasunG, DanushkaF]

On Mon, Mar 13, 2017 at 1:22 PM, Isuranga Perera 
wrote:

> Hi All,
>
> Can you explain the scope of this project?
>
> Regards
>
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> isurangamper...@gmail.com
>  W  https://isurangaperera.wordpress.com/
> 
>
> 
> 
> 
> 
> Get a signature like this: Click here!
> 
>
> On Sat, Mar 11, 2017 at 3:58 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi All
>>
>> I am Isuranga Perera a Computer Science undergraduate at University of
>> Colombo School of Computing. I am looking forward to participating GSoC
>> 2017.
>>
>> I am really interested in the project "WS-Trust Implementation for IS
>> 6.0.0 using Apache CXF Library". I have already gone through the IS
>> documentation and I'm familiar with Apache CXF and WS-Trust.
>>
>> Thank You
>>
>> [image: photo]
>> Isuranga Perera
>> at University of Colombo School of Computing
>> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
>> isurangamper...@gmail.com
>>  W  https://isurangaperera.wordpress.com/
>> 
>>
>> 
>> 
>> 
>> 
>> Get a signature like this: Click here!
>> 
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Omindu Rathnaweera
Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-03-13 Thread Irunika Weeraratne
Hi all,
Above PR has been closed since it ha2 two branches merged and make so many
confusions and also make it very hard to maintain the code. So all the
comments from the above PR will be resolved and cleaned in
https://github.com/wso2/msf4j/pull/365

Please review and comment.

Thanks and best regards,
Irunika

*Irunika Weeraratne*
*Software Engineer | WSO2, Inc. *
*Email : irun...@wso2.com *
*LinkedIn : https://lk.linkedin.com/in/irunika
*
*Mobile : +94712403314*
*Lean . Enterprise . Middleware*


On Wed, Mar 8, 2017 at 6:21 PM, Irunika Weeraratne  wrote:

> Hi all,
> Please review the new changes did and comment.
>
> https://github.com/wso2/msf4j/pull/364
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Feb 1, 2017 at 3:28 PM, Irunika Weeraratne 
> wrote:
>
>> Hi all,
>> Created new pull request with necessary changes[1].
>>
>> please review and merge.
>>
>> [1]https://github.com/wso2/carbon-messaging/pull/41
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Jan 30, 2017 at 8:34 PM, Irunika Weeraratne 
>> wrote:
>>
>>> Hi Senduran,
>>> Yes. We can use a general control message type instead of ping and pong
>>> messages. So I removed ping and pong carbon message types from
>>> Carbon-Messaging and added new message type ".
>>>
>>> Please review and merge.
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Jan 30, 2017 at 2:20 PM, Senduran Balasubramaniyam <
>>> sendu...@wso2.com> wrote:
>>>
 Hi Irunika,

 The above PR has PingCarbonMessage and PongCarbonMessage. It will be
 better if you could rename those two classes to generalized name.

 Regards
 Senduran

 On Fri, Jan 27, 2017 at 2:47 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Looks ok.
>
> Senduran/Shafreen, can we merge this PR?
>
> On Thu, Jan 26, 2017 at 7:27 PM, Irunika Weeraratne 
> wrote:
>
>> Hi,
>> Fixed the issues mentioned.
>> Please review and merge.
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Thu, Jan 26, 2017 at 7:04 PM, Irunika Weeraratne > > wrote:
>>
>>> Noted.
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Thu, Jan 26, 2017 at 4:34 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 PR has some formatting issue to be fixed. Can you look into it?

 On Thu, Jan 26, 2017 at 12:03 PM, Irunika Weeraratne <
 irun...@wso2.com> wrote:

> Hi all,
> Can you please review and merge the PR?
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Jan 25, 2017 at 3:35 PM, Irunika Weeraratne <
> irun...@wso2.com> wrote:
>
>> Hi all,
>> I modified the Carbon-Messaging according to the requirements.
>> Please review and merge.
>> 

Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-03-13 Thread Irunika Weeraratne
Hi all,
Above PR has been closed since it ha2 two branches merged and make so many
confusions and also make it very hard to maintain the code. So all the
comments from the above PR will be resolved and cleaned in
https://github.com/wso2/msf4j/pull/365

Please review and comment.

Thanks and best regards,
Irunika

*Irunika Weeraratne*
*Software Engineer | WSO2, Inc. *
*Email : irun...@wso2.com *
*LinkedIn : https://lk.linkedin.com/in/irunika
*
*Mobile : +94712403314*
*Lean . Enterprise . Middleware*


On Thu, Mar 9, 2017 at 10:36 AM, Irunika Weeraratne 
wrote:

> Thanks Vidura. Will check.
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Thu, Mar 9, 2017 at 10:34 AM, Vidura Nanayakkara 
> wrote:
>
>> Hi Irunika,
>>
>> Added some comments in [1] .
>> Please do check.
>>
>> [1] MSF4J Web Socket Pull Request
>> 
>>
>> Thank you,
>> Vidura Nanayakkara
>>
>> On Wed, Mar 8, 2017 at 6:21 PM, Irunika Weeraratne 
>> wrote:
>>
>>> Hi all,
>>> Please review the new changes did and comment.
>>>
>>> https://github.com/wso2/msf4j/pull/364
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Wed, Feb 1, 2017 at 3:28 PM, Irunika Weeraratne 
>>> wrote:
>>>
 Hi all,
 Created new pull request with necessary changes[1].

 please review and merge.

 [1]https://github.com/wso2/carbon-messaging/pull/41

 Thanks,
 Irunika

 *Irunika Weeraratne*
 *Software Engineer | WSO2, Inc. *
 *Email : irun...@wso2.com *
 *LinkedIn : https://lk.linkedin.com/in/irunika
 *
 *Mobile : +94712403314 <+94%2071%20240%203314>*
 *Lean . Enterprise . Middleware*


 On Mon, Jan 30, 2017 at 8:34 PM, Irunika Weeraratne 
 wrote:

> Hi Senduran,
> Yes. We can use a general control message type instead of ping and
> pong messages. So I removed ping and pong carbon message types from
> Carbon-Messaging and added new message type ".
>
> Please review and merge.
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Jan 30, 2017 at 2:20 PM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Irunika,
>>
>> The above PR has PingCarbonMessage and PongCarbonMessage. It will be
>> better if you could rename those two classes to generalized name.
>>
>> Regards
>> Senduran
>>
>> On Fri, Jan 27, 2017 at 2:47 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Looks ok.
>>>
>>> Senduran/Shafreen, can we merge this PR?
>>>
>>> On Thu, Jan 26, 2017 at 7:27 PM, Irunika Weeraratne <
>>> irun...@wso2.com> wrote:
>>>
 Hi,
 Fixed the issues mentioned.
 Please review and merge.

 Thanks,
 Irunika

 *Irunika Weeraratne*
 *Software Engineer | WSO2, Inc. *
 *Email : irun...@wso2.com *
 *LinkedIn : https://lk.linkedin.com/in/irunika
 *
 *Mobile : +94712403314 <+94%2071%20240%203314>*
 *Lean . Enterprise . Middleware*


 On Thu, Jan 26, 2017 at 7:04 PM, Irunika Weeraratne <
 irun...@wso2.com> wrote:

> Noted.
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Thu, Jan 26, 2017 at 4:34 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:

Re: [Dev] [IS] GSoC 2017 - WS-Trust Implementation for IS 6.0.0 using Apache CXF Library

2017-03-13 Thread Isuranga Perera
Hi All,

Can you explain the scope of this project?

Regards


[image: photo]
Isuranga Perera
at University of Colombo School of Computing
P  +382244492  <+382244492> M  +94712986952  <+94712986952> E
isurangamper...@gmail.com
 W  https://isurangaperera.wordpress.com/






Get a signature like this: Click here!


On Sat, Mar 11, 2017 at 3:58 PM, Isuranga Perera 
wrote:

> Hi All
>
> I am Isuranga Perera a Computer Science undergraduate at University of
> Colombo School of Computing. I am looking forward to participating GSoC
> 2017.
>
> I am really interested in the project "WS-Trust Implementation for IS
> 6.0.0 using Apache CXF Library". I have already gone through the IS
> documentation and I'm familiar with Apache CXF and WS-Trust.
>
> Thank You
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> isurangamper...@gmail.com
>  W  https://isurangaperera.wordpress.com/
> 
>
> 
> 
> 
> 
> Get a signature like this: Click here!
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC 2017][CEP]Video Scene Detection with WSO2 CEP

2017-03-13 Thread Anusha Jayasundara
Hi Hasitha,

Yes that's the idea. You can get familiar with Tensorflow JAVA API through
[1] and [2], and refer [3] to learn more about tensorflow.
Please feel free to contact if you have any suggestions or problems.

[1]
https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/package-summary
[2] https://github.com/tensorflow/tensorflow/tree/master/tensorflow/java
[3] https://www.tensorflow.org/tutorials/mandelbrot

Thanks

On Sat, Mar 11, 2017 at 2:56 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> I am not very clear about "The project will also investigate on the
> effective usage of Tensorflow for video scene/shot detection."Are we
> going to use TensorFlow api with Java in this project?
>
> Thanks
>
> On Fri, Mar 10, 2017 at 7:06 PM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>> I have gone through the link provided [1] and now I have a good about
>> TensorFlow and the core programs.Provide me some guidelines on how to
>> proceed.
>>
>> Thanks.
>>
>> [1]https://www.tensorflow.org/get_started/get_started
>>
>> On Thu, Mar 9, 2017 at 9:02 AM, Miyuru Dayarathna 
>> wrote:
>>
>>> Hi Hasitha,
>>>
>>> Thanks for your interest on video scene detection project. The objective
>>> of this project is to implement a Java-based video scene/shot detection
>>> system. The project will also investigate on the effective usage of
>>> Tensorflow for video scene/shot detection. Finally, the project will do an
>>> evaluation of the accuracy of the video scene detection by comparing
>>> results with few standard video benchmark datasets such as TRECVID.
>>>
>>> Please go through the following link to get you familiarized with the
>>> Tensorflow technology which we will use in this project [1].
>>>
>>> [1] https://www.tensorflow.org/get_started/get_started
>>>
>>> Thanks,
>>> Miyuru Dayarathna, Ph.D.
>>> Senior Technical Lead,
>>> WSO2 Inc.
>>>
>>> On Tue, Mar 7, 2017 at 11:28 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Dear Sir,

 I am a final year undergraduate of Electronic and Telecommunication
 Engineering, University of Moratuwa. My experience with Java 8,C,algorithms
 and WSo2 CEP[1] motivated me to select this project as my GSoC project for
 2017.I was an intern at WSO2 for 6 months and successfully completed Image
 processing module(4th sem) in university.Please provide me some guide
 lines and additional materials for study and get a clear understanding
 about the mentioned project.

 Thank you

 [1] http://wso2.com/products/complex-event-processor/
 --
 *D.M.Hasitha Nadishan Jayasundara*
 *Department of Electronic and Telecommunication Engineering*
 University of Moratuwa
 *mobile:* *+94711959266 <+94%2071%20195%209266>*
 *blogspot*: learnjavawithisla.blogspot.com/  *email:*
 hasithajayasunda...@gmail.com
 
 
 

>>>
>>>
>>>
>>> --
>>> Thanks,
>>> Miyuru Dayarathna
>>> Senior Technical Lead
>>> Mobile: +94713527783 <+94%2071%20352%207783>
>>> Blog: http://miyurublog.blogspot.com
>>>
>>
>>
>>
>> --
>> *D.M.Hasitha Nadishan Jayasundara*
>> *Department of Electronic and Telecommunication Engineering*
>> University of Moratuwa
>> *mobile:* *+94711959266 <+94%2071%20195%209266>*
>> *blogspot*: learnjavawithisla.blogspot.com/  *email:*
>> hasithajayasunda...@gmail.com
>> 
>> 
>> 
>>
>
>
>
> --
> *D.M.Hasitha Nadishan Jayasundara*
> *Department of Electronic and Telecommunication Engineering*
> University of Moratuwa
> *mobile:* *+94711959266 <+94%2071%20195%209266>*
> *blogspot*: learnjavawithisla.blogspot.com/  *email:* hasithajayasundar
> a...@gmail.com
> 
> 
> 
>



-- 

*Anusha Jayasundara*
Software Engineer | WSO2

Email : anus...@wso2.com
Mobile : +94711920369
Web : http://wso2.com
Lean.Enterprise.Middleware

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


Re: [Dev] [UUF] [IS-6] Update Google Guava version

2017-03-13 Thread Ayesha Dissanayaka
PR sent in https://github.com/wso2/carbon-uuf/pull/203

Thanks!
-Ayesha

On Thu, Mar 2, 2017 at 1:07 PM, SajithAR Ariyarathna 
wrote:

> [+Chandana]
>
> On Thu, Mar 2, 2017 at 11:42 AM, Ayesha Dissanayaka 
> wrote:
>
>> Hi,
>>
>> Can we update guava.version and guava.version.range  [1] to match latest
>> released version(21) in next uuf release.
>>
>> While writing UI tests for IS-6 User-Portal with selenium to resolve some
>> issues such as below one , I had to update above mentioned versions in
>> product-is.
>> [ERROR] /home/ayesha/WORK/IS/SOURCE/PRODUCT_IS/product-is/portal/app
>> s/org.wso2.carbon.iam.user-portal.app/src/test/java/org/wso2
>> /carbon/iam/userportal/pageobject/PasswordRecoveryOptionsPage.java:[253,45]
>> no suitable method found for until(> .ExpectedCondition>)
>>
>> But, again when running osgi tests I get below error, that uuf.core
>> requires previous version as dependency.
>> [2017-03-02 11:24:59,478] ERROR {org.wso2.carbon.uuf.core} -
>> FrameworkEvent ERROR - org.wso2.carbon.uuf.core
>> org.osgi.framework.BundleException: Could not resolve module:
>> org.wso2.carbon.uuf.core [50]
>>   Unresolved requirement: Import-Package: com.google.common.collect;
>> version="[18.0.0,19.0.0)"
>>
>> [1] https://github.com/wso2/carbon-uuf/blob/master/pom.xml#L583:L584
>>
>> Thanks!
>> -Ayesha
>> --
>> *Ayesha Dissanayaka*
>> Senior Software Engineer,
>> WSO2, Inc : http://wso2.com
>> 
>> 20, Palm grove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com

20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev