/** * Creates a new instance of a DbConnectionFactory using the specified resource.xml file * @param persistenceXmlPath Path to resource.xml file, e.g. /META-INF/persistence.xml * @return DbConnectionFactory intance */ public static DbConnectionFactory createInstance(String persistenceXmlPath) { try { return new DbConnectionFactoryLoader().loadFromXml(persistenceXmlPath); } catch (Exception ex) { throw new JuRuntimeException("Couldn't create DbConnectionFactory instance", ex); } }