aspose file tools*
The moose likes Java in General and the fly likes keep clients updated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "keep clients updated" Watch "keep clients updated" New topic
Author

keep clients updated

Natalia Lopez
Ranch Hand

Joined: Feb 17, 2005
Posts: 41
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
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

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.


apigee, a better way to API!
Natalia Lopez
Ranch Hand

Joined: Feb 17, 2005
Posts: 41
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

Joined: Feb 25, 2007
Posts: 1638

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

Joined: Feb 17, 2005
Posts: 41
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keep clients updated
 
Similar Threads
Image Path Problem......................
Help in Hot Deployment using Eclipse + Oracle
Dynamic Alert
Publishing web.xml and struts-config.xml on a WAS application
Poi Api-Dynamic generation of a cell in a java application from