I am facing a very weird problem while implementing export report functionality in my application.
We have WebSphere servers with 2 nodes and the way we implemented the export report feature is that we created report directories on both the nodes and when user tries to export a report, the application will create a pdf/excel and it will get saved in this report directory and from there it gets downloaded for the user. But the issue occurs when the report gets saved on node#1 and while downloading the file, the load balancer routes traffic to node#2. In this particular case the application throws error "File not found".
How do we resolve this issue ? Can we programmatically force the application to save and download file from a particular node ? Or is there any better way, please advise.
Thanks