/** * Find a pooled broker, or return null if none. If using * managed transactions, looks for a transactional broker; * otherwise returns null by default. This method will be called before * {@link #newStoreManager} so that factory subclasses implementing * pooling can return a matching manager before a new {@link StoreManager} * is created. */ protected Broker findBroker(String user, String pass, boolean managed) { if (managed) return findTransactionalBroker(user, pass); return null; }
/** * Find a pooled broker, or return null if none. If using * managed transactions, looks for a transactional broker; * otherwise returns null by default. This method will be called before * {@link #newStoreManager} so that factory subclasses implementing * pooling can return a matching manager before a new {@link StoreManager} * is created. */ protected BrokerImpl findBroker(String user, String pass, boolean managed) { if (managed) return findTransactionalBroker(user, pass); return null; }
/** * Find a pooled broker, or return null if none. If using * managed transactions, looks for a transactional broker; * otherwise returns null by default. This method will be called before * {@link #newStoreManager} so that factory subclasses implementing * pooling can return a matching manager before a new {@link StoreManager} * is created. */ protected Broker findBroker(String user, String pass, boolean managed) { if (managed) return findTransactionalBroker(user, pass); return null; }
/** * Find a pooled broker, or return null if none. If using * managed transactions, looks for a transactional broker; * otherwise returns null by default. This method will be called before * {@link #newStoreManager} so that factory subclasses implementing * pooling can return a matching manager before a new {@link StoreManager} * is created. */ protected Broker findBroker(String user, String pass, boolean managed) { if (managed) return findTransactionalBroker(user, pass); return null; }
/** * Find a pooled broker, or return null if none. If using * managed transactions, looks for a transactional broker; * otherwise returns null by default. This method will be called before * {@link #newStoreManager} so that factory subclasses implementing * pooling can return a matching manager before a new {@link StoreManager} * is created. */ protected Broker findBroker(String user, String pass, boolean managed) { if (managed) return findTransactionalBroker(user, pass); return null; }