private void readObject (@Nonnull final ObjectInputStream aOIS) throws IOException, ClassNotFoundException { aOIS.defaultReadObject (); final String sFilename = aOIS.readUTF (); try { m_aDAO = new FMQDAO (sFilename); // Read outside FMQDAO constructor, so that the DAO can be used m_aDAO.myInitialRead (); } catch (final DAOException ex) { throw new InitializationException ("Failed to init FailedMailQueueWithDAO with filename '" + sFilename + "'", ex); } }
public FailedMailQueueWithDAO (@Nullable final String sFilename) { try { m_aDAO = new FMQDAO (sFilename); // Read outside FMQDAO constructor, so that the DAO can be used m_aDAO.myInitialRead (); } catch (final DAOException ex) { throw new InitializationException ("Failed to init FailedMailQueueWithDAO with filename '" + sFilename + "'", ex); } }