removed concurrent access timeout
This commit is contained in:
@@ -11,9 +11,7 @@ import org.jpacrepo.pacbase.Parser;
|
|||||||
import org.jpacrepo.persistence.QueryEngine;
|
import org.jpacrepo.persistence.QueryEngine;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.ejb.Singleton;
|
import javax.ejb.*;
|
||||||
import javax.ejb.TransactionManagement;
|
|
||||||
import javax.ejb.TransactionManagementType;
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import javax.transaction.Status;
|
import javax.transaction.Status;
|
||||||
@@ -27,6 +25,8 @@ import java.util.List;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
|
||||||
|
@AccessTimeout(-1)
|
||||||
@Path("/pkg")
|
@Path("/pkg")
|
||||||
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
|
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
|
||||||
@Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
|
@Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
|
||||||
@@ -43,18 +43,18 @@ public class PacmanWebService
|
|||||||
@Context
|
@Context
|
||||||
private UriInfo uriInfo;
|
private UriInfo uriInfo;
|
||||||
|
|
||||||
private Logger log = Logger.getLogger(PacmanWebService.class.getName());
|
private final Logger log = Logger.getLogger(PacmanWebService.class.getName());
|
||||||
|
|
||||||
|
|
||||||
private String nameQuery = "SELECT pname FROM PkgName pname WHERE id = :name";
|
private final String nameQuery = "SELECT pname FROM PkgName pname WHERE id = :name";
|
||||||
private String fileNameQuery = "SELECT pdata FROM PkgData pdata WHERE fileName = :fileName";
|
private final String fileNameQuery = "SELECT pdata FROM PkgData pdata WHERE fileName = :fileName";
|
||||||
private String hashQuery = "SELECT pdata FROM PkgData pdata WHERE md5sum = :md5sum";
|
private final String hashQuery = "SELECT pdata FROM PkgData pdata WHERE md5sum = :md5sum";
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
@DefaultConfiguration
|
@DefaultConfiguration
|
||||||
private ApplicationContext ctx;
|
private ApplicationContext ctx;
|
||||||
|
|
||||||
private Parser serviceParser = new Parser();
|
private final Parser serviceParser = new Parser();
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("search")
|
@Path("search")
|
||||||
|
Reference in New Issue
Block a user