[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: MessagingBuffer implementation leaking into MessageImpl
ataylor
do-not-reply at jboss.com
Wed Jun 18 09:00:49 EDT 2008
anonymous wrote : For this reason, I abstracted out the MessagingBuffer interface so it does not depend on MINA.
The problem is that if i create a new Message it makes an assumption that we are using Mina and defaults he body to an IoBufferWrapper. If we were using the INVM transport properly and de/serialising to a ByteBufferWrapper instead when we encode or decode the message all the headers get written to the ByteBufferImpl and the bod gets written to the defaulted IoBufferWrapper.
Also when we write the buffer we call buff.array(), isntthat doing a copy anyway?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158975#4158975
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158975
More information about the jboss-dev-forums
mailing list