public Broker newBroker(String user, String pass, boolean managed, int connRetainMode, boolean findExisting) { try { assertOpen(); makeReadOnly(); BrokerImpl broker = null; if (findExisting) broker = findBroker(user, pass, managed); if (broker == null) { broker = newBrokerImpl(user, pass); initializeBroker(managed, connRetainMode, broker, false); } return broker; } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } }
broker = findBroker(user, pass, managed); if (broker == null) { broker = newBrokerImpl(user, pass);
broker = findBroker(user, pass, managed); if (broker == null) { broker = newBrokerImpl(user, pass);
broker = findBroker(user, pass, managed); if (broker == null) { broker = newBrokerImpl(user, pass);
broker = findBroker(user, pass, managed); if (broker == null) { broker = newBrokerImpl(user, pass);