-
1. Re: Copying large files to members using JGroups
belaban Dec 9, 2008 1:41 AM (in response to forumer)There's a discussion of how this can be done at https://jira.jboss.org/jira/browse/JGRP-653.
The email lists for JGroups are at http://sourceforge.net/mail/?group_id=6081.
I would *not* (ab)use state transfer for transfer of large files. I know, some folks have done it this way, but I would not recommend it -
2. Re: Copying large files to members using JGroups
brian.stansberry Dec 9, 2008 12:53 PM (in response to forumer)The JBoss AS 4.x Farm service does file copy over JGroups; perhaps some of the code will be useful. The class that does the actual work of moving files over the wire is
https://svn.jboss.org/repos/jbossas/branches/Branch_4_2/cluster/src/main/org/jboss/ha/framework/server/ClusterFileTransfer.java
This code uses the JBoss AS HAPartition, which for this usage is just a thin layer that calls through to JGroups' RpcDispatcher. You could code directly to RpcDispatcher. You can see how the HAPartition implementation calls through to RpcDispatcher at
https://svn.jboss.org/repos/jbossas/branches/Branch_4_2/cluster/src/main/org/jboss/ha/framework/server/ClusterPartition.java