// counter history takes up growing memory to store the stats and could theoretically
// eventually cause the server to run out of RAM
txRepository.loadPreparedTransactions();
JMSWireFormat wf = new JMSWireFormat();
MarshalFactory.addMarshaller("jms", wf, wf);
//Now everything is started we can tell the invocation handler to start handling invocations
//We do this right at the end otherwise it can start handling invocations before we are properly started
JMSServerInvocationHandler.setClosed(false);