forked from Archives/Athou_commafeed
import using small database transactions, not a huge one with the whole OPML in it, prevents long table lock
This commit is contained in:
@@ -5,6 +5,8 @@ import java.util.List;
|
|||||||
|
|
||||||
import javax.ejb.Asynchronous;
|
import javax.ejb.Asynchronous;
|
||||||
import javax.ejb.Stateless;
|
import javax.ejb.Stateless;
|
||||||
|
import javax.ejb.TransactionAttribute;
|
||||||
|
import javax.ejb.TransactionAttributeType;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
@@ -20,6 +22,7 @@ import com.sun.syndication.feed.opml.Outline;
|
|||||||
import com.sun.syndication.io.WireFeedInput;
|
import com.sun.syndication.io.WireFeedInput;
|
||||||
|
|
||||||
@Stateless
|
@Stateless
|
||||||
|
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
||||||
public class OPMLImporter {
|
public class OPMLImporter {
|
||||||
|
|
||||||
private static Logger log = LoggerFactory.getLogger(OPMLImporter.class);
|
private static Logger log = LoggerFactory.getLogger(OPMLImporter.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user