This is how you should do it -
You can put a periodic check in your application to read http://yourserver.com/yourapp_version.xml
and store relevant information (e.g. current version, and download path for jar/war/ear etc.) in this xml file, put logic in your app to compare its own version to the version written in this file, and if it determines that update is available then download the new jar/war/ear and install according to your environment.
Hope the idea helps.