If I understand correctly, HornetQ will allow me to send very large messages. Is there any way I can do the opposite-- that is, can I prevent clients from sending messages larger than some specified size?
HornetQ doesn't support this functionality. Can you outline your use-case so I can understand better why exactly you need this feature?
Depending on why you need this you may be able to accomplish your goal by using a divert with a filter expression operating on the HQSize message attribute.
Retrieving data ...