I'm building a system that gets Hibernate XML configuration files over the network both (cfg.xml and hbm.xml) and dynamically reconfigured Hibernate session.
But, it seems like StandardServiceRegistryBuilder.configure and MetadataSources.addFile only supports URL, File or resourceName, meaning it seems like the XML files have to pre-saved and can't be handed as a String or in memory.
Is there a way to avoid this saving to file?