forked from Archives/Athou_commafeed
small tweak to pubsubhubbub
This commit is contained in:
@@ -3,6 +3,9 @@ package com.commafeed.backend.pubsubhubbub;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ejb.Asynchronous;
|
import javax.ejb.Asynchronous;
|
||||||
|
import javax.ejb.Stateless;
|
||||||
|
import javax.ejb.TransactionAttribute;
|
||||||
|
import javax.ejb.TransactionAttributeType;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
|
||||||
@@ -22,6 +25,8 @@ import com.commafeed.backend.model.FeedPushInfo;
|
|||||||
import com.commafeed.backend.services.ApplicationSettingsService;
|
import com.commafeed.backend.services.ApplicationSettingsService;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
|
@Stateless
|
||||||
|
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
||||||
public class SubscriptionHandler {
|
public class SubscriptionHandler {
|
||||||
|
|
||||||
private static Logger log = LoggerFactory
|
private static Logger log = LoggerFactory
|
||||||
@@ -59,8 +64,6 @@ public class SubscriptionHandler {
|
|||||||
|
|
||||||
HttpClient client = HttpGetter.newClient();
|
HttpClient client = HttpGetter.newClient();
|
||||||
try {
|
try {
|
||||||
// make sure the feed push infos have been updated to the database
|
|
||||||
Thread.sleep(1000);
|
|
||||||
post.setEntity(new UrlEncodedFormEntity(nvp));
|
post.setEntity(new UrlEncodedFormEntity(nvp));
|
||||||
HttpResponse response = client.execute(post);
|
HttpResponse response = client.execute(post);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user