How to copy pdf which is generated in my application to shared location

  aix, copy, java, pdf, windows


In my application pdf is generated and it is visible in new tab but we are not downloading it.

What I want is when pdf is generated, that pdf should gets copied to shared location.

How can I achieve this in Java Maven project.

And application is deployed on web sphere server which is running on aix operation system.

And I want that pdf to be copied at windows shared location.

Source: Windows Questions