* Not synchronized since the Journal has better throughput if you increase
* the number of conncurrent writes that it is doing.
*/
public void addMessage(final ActiveMQMessage message) throws JMSException {
final RecordLocation location = peristenceAdapter.writePacket(destinationName, message, message.isReceiptRequired());
TransactionManager.getContexTransaction().addPostCommitTask(new TransactionTask(){
public void execute() throws Throwable {
synchronized (JournalMessageStore.this) {
nextMark = location;
MessageIdentity id = message.getJMSMessageIdentity();
addedMessageIds.put(id, location);