I meant that the method should not be publicly accessible. The service should only expose a single method that adds a feed item to the file.
-Darius (by phone) On May 7, 2012 7:20 PM, "Ben Wolfe" <[email protected]> wrote: > Threading is dealt with by activemq. > > This method does need to be synchronized. But why does it need to be in a > service layer? No db transaction is occurring. > > Ben > On May 7, 2012 7:09 PM, "Darius Jazayeri" <[email protected]> wrote: > >> Ben, >> >> I just peeked at this review when I saw it in my inbox. Maybe you're >> dealing with threading and synchronization elsewhere, I haven't looked. >> >> I'm a bit worried that we're giving static access to getting a stream to >> the file that stores the atom feed in a Util method. >> >> Don't we want this to be in the service layer, and don't we want to >> ensure that writing a new entry to that file is a synchronized, atomic >> operation? >> >> -Darius >> >> On Mon, May 7, 2012 at 10:19 AM, Mykola Vorobey < >> [email protected]> wrote: >> >>> [image: Crucible] <https://source.openmrs.org/cru> [image: Review] >>> ATOM-7 <https://tickets.openmrs.org/browse/ATOM-7> - Implement >>> AtomFeedUtil.getAtomFeedStream >>> CR-MOD-416<https://source.openmrs.org/cru/CR-MOD-416> >>> The state of CR-MOD-416 <https://source.openmrs.org/cru/CR-MOD-416>has >>> been changed: >>> >>> - Mykola Vorobey changed it to Review >>> >>> Participants <https://source.openmrs.org/user/mvorobey> Mykola >>> Vorobey <https://source.openmrs.org/user/mvorobey> Author >>> <https://source.openmrs.org/user/darius> Darius >>> Jazayeri <https://source.openmrs.org/user/darius> Reviewer >>> <https://source.openmrs.org/user/bwolfe> Ben >>> Wolfe <https://source.openmrs.org/user/bwolfe> Reviewer >>> Sent by Atlassian Crucible <http://www.atlassian.com/crucible> 2.7.1 >> >> >> ------------------------------ >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list > > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

