Bill,
I have tried both options.
Started without a container transaction defined. In which case it kept throwing
LOCKING-WAITING transactions [ from the EntityInstanceInterceptor] which says
that JBoss is creating a transaction automatically. Next I changed the ejb-jar
to specify the container transaction as REQUIRESNEW and as expected it did
create a new transaction and hence showed the same messages. Finally, changed
the container transaction to SUPPORTS when it stopped locking for the
TRANSACTION and started locking waiting for the CTX [Context] in the else clause
of the EntityInstanceInterceptor's invoke method. So there you go. Why is it
locking for readonly bean? Why does it need to do it? The effects are only
marginal and hardly detectable at low loads. It is more pronounced at higher
loads and as the table size increase it goes into a real amplifying loop where
the beans wait and take longer to return and that in turn cause the lock to be
longer and so on.
Strange that the method does not check for
read-only attribute either? Why is that?
Vinay
|
- [JBoss-dev] Caching - Locking - Server Dies! K.V. Vinay Menon
- RE: [JBoss-dev] Caching - Locking - Server Dies! Bill Burke
- RE: [JBoss-dev] Caching - Locking - Server Dies! K.V. Vinay Menon
- RE: [JBoss-dev] Caching - Locking - Server D... Bill Burke
- Re: [JBoss-dev] Caching - Locking - Serv... danch
- Re: [JBoss-dev] Caching - Locking -... James Cook
- RE: [JBoss-dev] Caching - Locking -... Bill Burke
- RE: [JBoss-dev] Caching - Locking - Serv... Dan OConnor
- Re: [JBoss-dev] Caching - Locking -... K.V. Vinay Menon
- Re: [JBoss-dev] Caching - Locking - Server D... Georg Rehfeld
- Re: [JBoss-dev] Caching - Locking - Serv... K.V. Vinay Menon
- RE: [JBoss-dev] Caching - Locking - Serv... marc fleury
- Re: [JBoss-dev] Caching - Locking - Server Dies! Georg Rehfeld