abinash by looking at your requirement, you don't need communication between sessions. Both the windows that you are referring, will use the same session. And this is what you have to take benefit of. When the first page opens the second window, the first window will start checking the session on the server to check if the second window's work is done. Lets say that the first windows send ajax requests to a servlet at regular intervals. The servlet which will check if an attribute named 'done' has been set in the session. If it is there than it means then the file upload in the second window is done.
The second window will send the file to a servlet which will save the file on server and set the attribute named 'done' in the session. This way when the file upload is finished, the first window can continue its work...