+1

We have used the same technique for local file connector using NIO watchers
[1]

[1]
https://store.wso2.com/store/assets/esbconnector/c5573802-8f24-4681-8499-6c6054b7a69b

On Thu, Jul 7, 2016 at 8:59 AM, Sameera Jayasoma <[email protected]> wrote:

> +1.
>
> Samiyuru, started working on this sometime back though.
>
> On Thu, Jul 7, 2016 at 3:42 AM, Rasika Perera <[email protected]> wrote:
>
>> Hi All,
>>
>> The current way of monitoring artifacts changes in the Carbon-Deployment
>> is to poll the File System for Last-Modified-Date[1].
>>
>> java.nio.file package provides a WatchService which quite does the same
>> job and has optimizations for the *native* support of the most of the File
>> System implementations when it is available.
>>
>> As per the oracle docs[2] it is also recommended for a deployer task;
>>
>> It is also well suited for an application server that watches a
>>> directory, perhaps waiting for .jsp or .jar files to drop, in order to
>>> deploy them.
>>>  ​
>>>
>>
>>
>> ​WDYT?​
>>
>>
>> [1]
>> https://github.com/wso2/carbon-deployment/blob/master/components/org.wso2.carbon.deployment.engine/src/main/java/org/wso2/carbon/deployment/engine/internal/Utils.java#L38
>>
>> [2] http://docs.oracle.com/javase/tutorial/essential/io/notification.html
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Software Engineer
>> M: +94 71 680 9060 E: [email protected]
>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: [email protected]
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

Best Regards,

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

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

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to