you wrote here
Yong Hao Gao wrote:
An update. It is still a work in progress. No need for everyone to waste time review now. But a quick scan to make sure I'm on the right track will be appreciated.
8. Migrating Existing Messages
Here gives the mapping between the database table and the HornetQ's bindings/journal
The main data should be remainging messages and binding informations, and possible long-running transactions.
There should be some tools/scripts to help on this.
Using bridge is also a convenient way.
I wasn't using bridges so far, and I need to migrate from JBOSS 4.2.3 that uses messaging 1.4.5 to 7.1.1 - can you point me to where I can find information on - what is a bridge? how do I set it up? ...
Check out this. Set up a bridge on the JBoss AS 4.2.3 side and push the messages from that server to the AS 7.1.1 server. I think you'll just need the <AS7_HOME>/bin/client/jboss-client.jar on the classpath of the 4.2.3 instance.
Here is what I'm going to do it:
Write a tool that perform the following tasks:
1. read the JBM server config (messaging-service.xml, xxx-persistence-service and remoting-service.xml) and converts it to hornetq server config (based on what target user wants, it will generate server configuration suitable for AS5, AS7 or standalone).
2. read the JBM destinations and factories configures and converts them to HornetQ destinations and factories.
3. read the JBM messages and converts them to HornetQ ones.
Eash task will be divided into two steps.
Step 1. Reading JBM stuff and outputs the result into a XML file.
Step 2. Reading the XML file and generate HornetQ stuff.