Make two servers talk to each other

Posted by Maksim on Stack Overflow See other posts from Stack Overflow or by Maksim
Published on 2009-07-19T21:30:06Z Indexed on 2010/04/26 9:23 UTC
Read the original article Hit count: 385

I have application written in GWT and hosted on Google AppEngine/Java. In this application user will have an option to upload video/audio/text file to the server. Those files could be big, up to 1gb or so and because GAE/J does not support large file I have to use another server to store those files. This would be easy to implement if there was no cross-domain security feature in browsers. So, what I'm thinking is to make GAE Server talk to my server (Glassfish or any other java servers if needed) to tell url to the file and if possible send status of uploaded file (how many percent was uploaded) so I can show status on clients screen. Here is what I'm thinking to do.

When user loads GWT page that is stored on GAE/J he/she will upload file to my server, then my server will send response back to GAE and GAE will send response to the client. If this scenario is possible what would be the best way to implement GAE to Glassfish conversation?

© Stack Overflow or respective owner

Related posts about cross-domain

Related posts about google-app-engine