[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: LargeMessage & Failover Update
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Jan 16 19:29:03 EST 2009
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#4202593
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202593
More information about the jboss-dev-forums
mailing list