MessageChunk was initially designed to hold the CurrentFile on the ServerSession, and
receive chunks until the last chunk was received.
The backup channel is introducing a lot of delay on when the chunks are coming to the
ServerConsumerImpl on the LiveNode.
I have made it work now, but if we could do something like this, the code would be
simpler:
| DelayedResult result = channel.replicatePacket(packet);
|
| if (result != null)
| {
| result.waitReplicationComplete(); // a new method to wait the callback
| }
| doSendLargeMessage(packet);
| lock.afterSend();
|
Right now I'm having to deal with locks as a new packet could be coming from the
client before the previous packet was replicated.
This isn't an issue with smallMessages, as you don't need to deal with the
currentLargeMessage being sent or delivered.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202593#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...