On 6 Jan 2009, at 22:05, Brian Stansberry wrote:
BTW, is a *JGroups* streaming API necessary here? The old AS Farm
service passed arbitrary sized files by sending byte[] chunks via
RpcDispatcher calls. Worked fine. That's not quite what JBC would
need, since FarmService read a chunk from a FileInputStream and
passed it to JGroups; you'd want an OutputStream impl that would
pass a chunk to JGroups when it's internal buffer reached size X.
This could be done but this would involve excessive copying of
buffers. The whole purpose behind the JGroups streaming JIRA is to
optimise away such unnecessary buffer copying between layers.
--
Manik Surtani
Lead, JBoss Cache
http://www.jbosscache.org
manik(a)jboss.org