[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Large messages broken
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Apr 17 10:39:10 EDT 2009
"timfox" wrote :
| Some other questions:
|
| a) why the casting to get the input and outputstream - I thoght you were going to allow these to be set via a JMS_JBM jms property as we discussed?
|
| b) Is setting Input and Ouput streams only allowed on BytesMessage s ? If not, why are you using a BytesMessage.
a)Yes.. I was going to add the JMS Property.. But when I was setting the Property I saw a check for ReadOnly. I could of course overlap the check but I thought it would be deceiving/confusing.... at that minute I then though.. I guess Tim was right and I should just use a cast & method... but if you want the JMS_JBM property back it should be a quick change.
b) I think I should enforce it only on Bytes and StreamMessages. This won' t work on TextMessage, ObjectMessage (and maybe others) as I believe the JMS Layer will read the body when the message arrive on those cases.
Besides the user could choose to use the readMethods instead of streaming, and getBodyLength was only available on BytesMessage
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226232#4226232
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226232
More information about the jboss-dev-forums
mailing list