protected void loadReladomoXML(String fileName) throws Exception { InputStream stream = BitemporalBankServer.class.getClassLoader().getResourceAsStream(fileName); if (stream == null) { throw new Exception("Failed to locate " + fileName + " in classpath"); } MithraManagerProvider.getMithraManager().readConfiguration(stream); stream.close(); }
private void loadReladomoXML(String fileName) throws Exception { InputStream stream = BitemporalBankApp.class.getClassLoader().getResourceAsStream(fileName); if (stream == null) { throw new Exception("Failed to locate " + fileName + " in classpath"); } MithraManagerProvider.getMithraManager().readConfiguration(stream); stream.close(); }
protected void initReladomo(String runtimeConfigXML) throws Exception { MithraManager mithraManager = MithraManagerProvider.getMithraManager(); mithraManager.setTransactionTimeout(60 * 1000); InputStream stream = loadReladomoXMLFromClasspath(runtimeConfigXML); MithraManagerProvider.getMithraManager().readConfiguration(stream); stream.close(); }
private void initReladomo() throws Exception { MithraManager mithraManager = MithraManagerProvider.getMithraManager(); mithraManager.setTransactionTimeout(60 * 1000); InputStream stream = loadReladomoXMLFromClasspath("SimpleBankRuntimeConfiguration.xml"); MithraManagerProvider.getMithraManager().readConfiguration(stream); stream.close(); }
protected void initReladomo(String runtimeConfigXML) throws Exception { MithraManager mithraManager = MithraManagerProvider.getMithraManager(); mithraManager.setTransactionTimeout(60 * 1000); loadReladomoXML(runtimeConfigXML); }
private void initReladomo() throws Exception { MithraManager mithraManager = MithraManagerProvider.getMithraManager(); mithraManager.setTransactionTimeout(60 * 1000); loadReladomoXML("BitemporalBankRuntimeConfiguration.xml"); }