-
1. Re: Caching of EJB 2 entity beans not supported?
ion_mayank Aug 6, 2012 2:56 AM (in response to svejk.rpl)Hi Sven,
Did you get the solution to thids problem. I am also facing the same issue and it looks there is no other workaround except migrating my EJB 2.1 entities to EJB3.0
Regards,
Mayank
-
2. Re: Caching of EJB 2 entity beans not supported?
svejk Aug 7, 2012 3:36 PM (in response to ion_mayank)Hi Mayank,
we didn't really find a configurable solution, with parameters for cache size and expiry,
but browsing through the source revealed that there is indeed, a default cache policy in effect.
The relevant parts of the source code are:
and
The cache implementations are based on ConcurrentHashMaps, and appeared to have no configuration options or
documentation (please correct me if I am worng, I haven't checked for recent improvements). So we adviced our
client to test further with the default cache, and heard of no more problems.
I would be interested in hearing of your experiences with the default EJB2 entity cache, particularly if you run into resource stress,
if the cache is unconstrained.
Sven-Jørgen
-
3. Re: Caching of EJB 2 entity beans not supported?
ion_mayank Aug 8, 2012 12:45 AM (in response to svejk)Hi Sven,
I browsed through the JBOSS code it seems that these files are only caching entity instances which can be reused to service new requests from the pool.
I will check in Jprofiler JDBC console whether it is actually doing any caching of JDBC calls.
Thanks for response and I will update you with the results.
Regards,
Mayank