Transfer files between Linux ec2 instance and windows ec2 instance programatically
===

I want  to send a file from linux instance to windows instance. Then after processing that file in windows instance, i have to send the file back to the linux instance. I am using java in both the ends. What is the best way to accomplish this?