Questions tagged [jboss-cache]

JBoss Cache’s goal is to provide enterprise-grade clustering solutions to Java-based frameworks, application servers or custom-designed Java SE applications. JBoss Cache is licensed under the LGPL license.

JBoss Cache is a replicated and transactional cache. It is replicated since multiple JBoss Cache instances can be distributed (either within the same JVM or across several JVMs whether they reside on the same machine or on different machines on a network) and data is replicated across the whole group. It is transactional because a user can configure a JTA compliant transaction manager and make any cache interaction transactional, and caches would participate in ongoing JTA transactions.

JBoss Cache comes in two editions: Core and POJO.

The core library (using the org.jboss.cache.Cache interface) is the underlying library that organises data in a tree-like structure and handles all locking, passivation, eviction and replication characteristics of data in the cache.

The POJO library (using the org.jboss.cache.pojo.PojoCache interface) is built atop the core library and allows introspection of objects in the cache providing transparent coherence by using JBoss AOP.

For more details, please visit JBoss Cache’s project page.

47 questions
11
votes
2 answers

How to avoid JBoss-Cache region from getting evicted?

I'm trying to create a jboss-cache for data that is only relevant for a short period of time. After that time the data should be discarded and the respective memory freed. The cache is organized like this: /my_region /session_1 …
hvrauhal
  • 432
  • 3
  • 13
9
votes
2 answers

Performance of JBoss Cache and Ehcache

I'm considering to use to implement a cache either JBoss Cache or Ehcache. After looking at both APIs I has the intuition that JBoss is probably a little bit more memory efficient than Ehcache since it can put raw objects into the cache while…
gabuzo
  • 7,378
  • 4
  • 28
  • 36
6
votes
0 answers

how to load balance jboss4.2.2AS on amazon ec2 with distributed caching

I have an old application which is hard to upgrade to a newer version of jboss. I want to keep the jboss version same(to 4.2.2 AS) and load balance it on amazon EC2 with distributed caching. I am able to load balance it, but I am struggling with…
5
votes
0 answers

JBoss: Unable to acquire lock on Fqn

We have some production JBoss 5.0.1.GA servers and from time to time we got this error Caused by: org.jboss.cache.lock.TimeoutException: Unable to acquire lock on Fqn…
Emiliano
  • 75
  • 8
5
votes
0 answers

Combine Embedded and Server as Clustered Infinispan

as a proof of concept, I try to build an infinispan cluster with an existing application which starts an embedded cache and one or more standalone infinispan servers. Same is Asked At : https://developer.jboss.org/thread/261096 Jboss Forum Question…
Pranjal jaju
  • 416
  • 3
  • 13
4
votes
1 answer

JBossCache evict() versus removeNode()

Reading JBossCache documentation, there are different policies for eviction JBoss Cache also ships with RemoveOnEvictActionPolicy, which calls Cache.removeNode() for each node that needs to be evicted, instead of Cache.evict(). I've checked the…
fglez
  • 8,422
  • 4
  • 47
  • 78
4
votes
1 answer

Concurrency strategy configuration for JBoss TreeCache as 2nd level Hibernate cache

I am using JBoss EAP 4.3. I'm currently looking into the different options for concurrency strategy when using the built-in JBoss TreeCache as a second level cache for Hibernate. I have set it up and I have verified that the cache is working by…
4
votes
4 answers

Java distributed objects with locality?

I am evaluating various Java object distribution libraries (Terracotta, JCS, JBoss, Hazelcast ...) for an application server and I'm having trouble understanding their behavior on various axes. My requirements for distributed objects are not many --…
sehugg
  • 3,615
  • 5
  • 43
  • 60
3
votes
1 answer

Tree cache in jboss 6.x

We are using tree cache in jboss 4.2.x, we are planning to switch to jboss6.x, will jboss 6.x supports tree cache?
vairam
  • 471
  • 1
  • 11
  • 26
3
votes
1 answer

Configure JBOss cache to run on JBoss server 4.2.3.GA

Our commercial application used to run on different application server and letely we started adjust it to run on JBoss server. The problem is that that application runs JBoss cache and as part of the integration with this framework, the web-inf\lib…
Spiderman
  • 9,602
  • 13
  • 48
  • 56
3
votes
1 answer

Infinispan , How to assure read write lock on a key/cache

We are planning to use Infinispan in client server mode. The architecture has many clients (client 1, client 2 and so on ) and a distributed infinispan network. We need to update the data in the cache periodically, say every5 hours . All clients…
Dinoop paloli
  • 633
  • 2
  • 8
  • 25
2
votes
1 answer

JBossCache - Access cache from separate Java app

My company wants to investigate the option of launching one java app that simply configures and starts a cache on an app server, then have a separate stand alone app call that instance from the first program and write to/read from it. We currently…
Ken
  • 23
  • 1
  • 4
2
votes
1 answer

Spring configuration for JBossCache

I'm trying to configure an instance of JBossCache using a Spring config file (for eventual use in Tomcat). I don't see any examples online and trying to figure out the mapping between the sample JBoss Microcontainer format and Spring IoC. Does…
sehugg
  • 3,615
  • 5
  • 43
  • 60
2
votes
0 answers

Storing treecache cluster properties in property file

I'm using Jboss 4, hibenate, spring and treecache. As we have different environments, I would like to store the cluster information in a separated property file and reference to the content from the treecache xml file. I copied the…
HamoriZ
  • 2,370
  • 18
  • 38
2
votes
1 answer

What does the "Failure to marshal argument(s)" org.jboss.cache.CacheException mean?

I get the following exception: org.jboss.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s) We use distributed JBoss cache for our web application (on Tomcat) I have a strong feeling this is due to bad…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
1
2 3 4