r7247 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7247 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- Date: Tue, 22 Jan 2008 10:06:42 -0600 (CST)
Author: otaylor
Date: 2008-01-22 10:06:41 -0600 (Tue, 22 Jan 2008)
New Revision: 7247
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FlickrUpdaterBean.java
Log:
Actually initialize the data-model session when saving Flickr results, don't just create a transaction
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FlickrUpdaterBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FlickrUpdaterBean.java 2008-01-22 15:57:43 UTC (rev 7246)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FlickrUpdaterBean.java 2008-01-22 16:06:41 UTC (rev 7247)
@@ -30,7 +30,9 @@
import com.dumbhippo.server.FlickrUpdater;
import com.dumbhippo.server.NotFoundException;
import com.dumbhippo.server.Notifier;
+import com.dumbhippo.server.dm.DataService;
import com.dumbhippo.server.util.EJBUtil;
+import com.dumbhippo.server.views.SystemViewpoint;
import com.dumbhippo.services.FlickrPhotoView;
import com.dumbhippo.services.FlickrPhotosView;
import com.dumbhippo.services.FlickrPhotosetView;
@@ -297,6 +299,8 @@
return TxUtils.runInTransaction(new Callable<PollResult>() {
public PollResult call() {
+ DataService.getModel().initializeReadWriteSession(SystemViewpoint.getInstance());
+
FlickrUpdater proxy = EJBUtil.defaultLookup(FlickrUpdater.class);
boolean changed = proxy.saveUpdatedStatus(flickrId, photosView, photosetsView);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]