r7240 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl



Author: otaylor
Date: 2008-01-21 14:46:09 -0600 (Mon, 21 Jan 2008)
New Revision: 7240

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FeedSystemBean.java
Log:
Initialize a data model session when saving feed results

Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FeedSystemBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FeedSystemBean.java	2008-01-21 20:31:55 UTC (rev 7239)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FeedSystemBean.java	2008-01-21 20:46:09 UTC (rev 7240)
@@ -1,5 +1,7 @@
 package com.dumbhippo.server.impl;
 
+import static com.dumbhippo.server.impl.FeedSystemBean.logger;
+
 import java.io.IOException;
 import java.net.MalformedURLException;
 import java.net.SocketTimeoutException;
@@ -940,6 +942,7 @@
 			changed = TxUtils.runInTransaction(new Callable<Boolean>() {
 				public Boolean call() throws PollingTaskNormalExecutionException {
 					try {
+						DataService.getModel().initializeReadWriteSession(SystemViewpoint.getInstance());
 						return feedSystem.storeRawUpdatedFeed(feed.getId(), result.getFeed());
 					} catch (FeedLinkUnknownException e) {
 						feedSystem.markFeedFailedLastUpdate(feed);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]