This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<subsystem xmlns="urn:jboss:domain:infinispan:1.3"> | |
<cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4"> | |
<local-cache name="entity"> | |
<transaction mode="NON_XA"/> | |
<eviction strategy="LRU" max-entries="10000"/> | |
<expiration max-idle="100000"/> | |
</local-cache> | |
<local-cache name="local-query"> | |
<transaction mode="NONE"/> | |
<eviction strategy="LRU" max-entries="10000"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manifest-Version: 1.0 | |
Archiver-Version: Plexus Archiver | |
Created-By: Apache Maven | |
Built-By: crised | |
Build-Jdk: 1.7.0_11 | |
Dependencies: org.infinispan export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package web; | |
import org.infinispan.Cache; | |
import org.infinispan.manager.DefaultCacheManager; | |
import org.infinispan.manager.EmbeddedCacheManager; | |
import org.jboss.logging.Logger; | |
import javax.annotation.PostConstruct; | |
import javax.annotation.Resource; | |
import javax.enterprise.context.RequestScoped; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package web; | |
import model.Ad; | |
import org.infinispan.Cache; | |
import org.infinispan.manager.EmbeddedCacheManager; | |
import org.jboss.logging.Logger; | |
import service.AdService; | |
import util.Loggable; | |
import javax.annotation.PostConstruct; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19:58:54,114 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/0.0.0.0:8080-5) JSF1064: Unable to find or serve resource, primefaces.css, from library, primefaces. | |
19:58:54,115 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/0.0.0.0:8080-5) : ClientAbortException: java.net.SocketException: Connection reset | |
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:403) [jbossweb-7.0.17.Final.jar:] | |
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449) [jbossweb-7.0.17.Final.jar:] | |
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349) [jbossweb-7.0.17.Final.jar:] | |
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:426) [jbossweb-7.0.17.Final.jar:] | |
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:415) [jbossweb-7.0.17.Final.jar:] | |
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89) [jbossweb-7.0.17.Final.jar:] | |
at java.nio.channels.Cha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Produces | |
@ApplicationScoped | |
@Resource(lookup = "java:jboss/infinispan/container/appcache") | |
private EmbeddedCacheManager cacheManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Resource(lookup = "java:jboss/infinispan/container/appcache") | |
private EmbeddedCacheManager cacheManager; | |
@Produces | |
@ApplicationScoped | |
public Cache<Integer,Ad> producesCache(){ | |
return cacheManager.getCache("pagination",true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package web; | |
import model.Ad; | |
import org.infinispan.Cache; | |
import org.jboss.logging.Logger; | |
import service.AdService; | |
import util.Loggable; | |
import javax.inject.Inject; | |
import java.util.ArrayList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.infinispan.Cache; | |
import org.infinispan.distexec.mapreduce.Collector; | |
import org.infinispan.distexec.mapreduce.MapReduceTask; | |
import org.infinispan.distexec.mapreduce.Mapper; | |
import org.infinispan.distexec.mapreduce.Reducer; | |
import org.infinispan.manager.DefaultCacheManager; | |
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.StringTokenizer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Named | |
@RequestScoped | |
public class CacheService implements Serializable { | |
//was an abstract class | |
@Resource(lookup = "java:jboss/infinispan/container/appcache") | |
EmbeddedCacheManager cacheManager; | |
Cache<Integer, Ad> cache; |
OlderNewer