you are looking for replication methods,
but wouldn't it be better to just share 1 filesystem with all the machines in the cluster (like a samba share, or a NFS share ?)
of course you can also just store your files in the database...
Unfortunately, due to cost and time constraints a DB is not considered. (although it may come into action later with growth)
Also JBoss will be on SuSE Linux and natively it does not share filesystems easily. Stuff like SAN or NAS are also not considered because of cost.
So basically yes, I need an easy way to do replication to another server.
My understanding is that the upload will be handled by a J2EE process (MBean?). As I have not seem the application yet this is a guess. However, JBoss will be handling the upload. Is there a way I can intercept that process, see when it is finished and automaticall copy to the other server?
Also JBoss will be on SuSE Linux and natively it does not share filesystems easily.
Just install the suse samba packages and set up a samba share.
What you could also do is put an 'rsync' in your crontab and synchronize the two directories every once in a while.
however, I would suggest that you don't duplicate data when it is not really necessary...
will try that, Thank you.