[jboss-user] [Installation, Configuration & Deployment] - Re: Can any type of file go in the farm dir?
jim.moran@jboss.com
do-not-reply at jboss.com
Thu Oct 19 13:11:38 EDT 2006
The farm service is intended to deploy deployment units across a cluster. Not merely to copy files. You could extend FarmMemberService and basically copy the FarmMemberService.deploy method without 'supper.deploy(du)' line and this would basically just copy files around. However, this is a bit hackish. Also, the files are only going to be copied as often as the configured ScanPeriod so if server-02 gets the task before the scan on server-01 then server-02 wouldn't see the file.
I do not know what you are trying to accomplish but a cleaner solution might be to just use JBoss Cache to store the data in the file and then just throw away the file. The data would then be replicated across cluster and persisted however you like.
If you are looking for distributed replication of a filesystem then you could check out http://labs.jboss.com/portal/davcache
This project uses JBoss Cache to replicate files across a cluster.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979433#3979433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979433
More information about the jboss-user
mailing list