• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

keep clients updated

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I did an application in java that is installed on 100 clients, the application is an exe and a config.ini file.
The topic is that this two files need to be updated once per month.
How can I do to check for update this two files. I can't use web start, because is really slowly and the application runs several times during a day.
I need sumething like goodsync but this one is really complex. I need an application that run allways checking for updates on a server about changes on this two files, and when changes become true, download the file that changes.
That all!
If somebody have any idea please let me know how can I do!!!
Regards

Naty
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can run a windows service or a linux cron job to keep checking for updates. Something like a laptop health check that happen at some configured interval.
Having said the above, as a user, I would get irritated if a program I install creates a service that keeps hogging my CPU. Instead, I would like to check for the updates when I start the program next.
(This is based on the assumption that your program is not a deamon that always runs in the background. If it is a deamon then it is easier, you can use a Timer within your program to schedule a update check(pull model) OR you can configure your server to be aware of the clients and "push" the updates when available.)

If you like to know how to achieve any of the above, do let know.
 
Natalia Lopez
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thanks for your response!
The application runs several times during day.
So I think the best choice a daemont application on the backgraound checking for updates once a day.
For this reason I'd like what you say

"(This is based on the assumption that your program is not a deamon that always runs in the background. If it is a deamon then it is easier, you can use a Timer within your program to schedule a update check(pull model) OR you can configure your server to be aware of the clients and "push" the updates when available.)"

How I do this?

Thanks a lot again

Naty
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Natalia:
For this reason I'd like what you say

"(This is based on the assumption that your program is not a deamon that always runs in the background. If it is a deamon then it is easier, you can use a Timer within your program to schedule a update check(pull model) OR you can configure your server to be aware of the clients and "push" the updates when available.)"

How I do this?



With the above I meant that your application itself run as a service(deamon) in the background. There is a difference between your application running as a service AND a service running seperately checking for updates for your application.
I understand that your application is not a deamon and you want a separate service that checks for updates once a day.
For this you can use Java Service Wrapper. This article will give a heads up on it.
 
Natalia Lopez
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nitesh,
Thanks a lot for your help, in fact I was trying to find somthing simple, a daemon tool where I can configure the local folder and the ftp folder where will goes to be the last file versions.
Then once a day the daemon detect changes and download if necesary from the ftp.

I go on searching and if not possible to find a simple tool I will go with the code :|

Regards

Natalia
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic