Use JMS Transactions to improve efficiency
Http://fusesource.com/docs/broker/5.4/tuning/PersTuning-JmxTxn.html
You can improve efficiency of the broker using JMS transactions, because JMS transactions enable the broker to process messages inBatches. That is, a batch consists of all the messages a producer sends to the broker before calling commit. sending messages in batches improves the performance of the persistence layer, because the message store is not required to write the batched messages to disk until commit is called. hence, the message store accesses the file system less frequently-that is, once per transaction instead of once per message.
You can use JMS Transactions to improve broker efficiency because JMS Transactions allow brokers to submit messages in batches. After the Producer sends messages to the broker in batches, it calls the commit command. Sending messages in batches can improve the performance of the persistent layer, because message storage does not write messages to the disk until the commit statement is called. Because the message storage mechanism does not frequently access the file system, that is to say, a message frequency is replaced by a transaction frequency.