[jboss-user] [JBoss Messaging] - Re: ((BytesMessage)message).readBytes(...) on a redelivered

jmesnil do-not-reply at jboss.com
Fri Apr 18 11:59:45 EDT 2008

"plesur" wrote : 
  | with initialized i mean a new created empty bytearray in the size of the Bytemessage's payload:
  | byte[] payload = new byte[(int)bytesmessage.getBodyLength()]; 
  | with:
  | bytesmessage.readBytes(payload);
  | it should be filled - this is what didn't work for me on a >redelivered message<.

Ok, we're on the same page.

This is indeed weird. We have a JUnit test BytesMessageTest.testRedelivery() which checks this use case and this test pass for JBM 1.4.0.SP3.
Our test does not use a MessageListener but I don't think it'd affect the message behaviour.

Can you write a unit test which reproduces your problem in your environment?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145187#4145187

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145187

More information about the jboss-user mailing list