HornetQ provides many ways to create queues other than the initial config files. We can create queues from JMX console or programmatically using management API's. As more time passes, there may be many queues created in that fashion but they won't be reflected in the config files. You can only find the list of queues available from the JMX console.
In case one wants to create another HornetQ instance (not clustered) with the same list of queues, it might become a manual process. Is there any way we can generate a hornetq-queues.xml file programmatically which can then be used to create the new instance with all the same queues?
Yes, you could use the management API to list all the queues, then based on that generate an xml file.