this is related to https://jira.jboss.org/jira/browse/HORNETQ-45.
Currently, JMS resources created through the management API are not preserved on server restart.
We need to persist them so that, when the JMS server is restarted, we redeploy the resources.
Clebert commented that he'd prefer to use the same journal for both Core and JMS resources.
It is possible to put everything in the same journal but I still want to provide a separate storage manager dealing only with JMS resources.
Currently, the JournalStorageManager is creating the journal.
We'd need to refactor that so the Journal is injected in the storage manager.
We'd also need to add listeners called when the journal is loaded.
Listeners would be something like:
interface JournalLoadListener { void onRecord(RecordInfo info); void failedTransaction(long transactionID, List<RecordInfo> records, List<RecordInfo> recordsToDelete); // something for prepared tx }
Is there any issues with using another journal that I don't see?