This content has been marked as final.
Show 1 reply
-
1. Re: HornetQObjectMessage inefficient for non-persisted queue
timfox Oct 23, 2009 1:02 PM (in response to bill.burke)This is done for JMS compliance (JMS mandates it).
However there is a JIRA to relax JMS compliance so we can apply an optimisation like you mention:
https://jira.jboss.org/jira/browse/HORNETQ-72
BTW ObjectMessage is the slowest message type you can use (since it uses serialization).
We recommend people avoid ObjectMessage unless you *really* need to use it (i.e. you don't know the type of the object you're sending until runtime)