Hi,
i just downloaded the new 1.2.3 version, replacing a 1.2.2 version for a
project still in development. This project uses JBossCache in a standalone
configuration the replicate data between a couple of clients, alias using it as
a classical distributed shared memory system.
Without changing anything at configuration or code I notice two major
differences.
1. With the old version I always got an error message like this: "ERROR
org.jboss.cache.TreeCache - failed binding to JNDI as
{locatorURI=socket://:5555, name=DefaultCache}, exception=Need to specify class
name in environment or system property, or as an applet parameter, or in an
application resource file: java.naming.factory.initial"
This disappeared just in 1.2.3. As I just started with JBossCache this is
something I wanted to ask anyway ,-)) But I don't know if the problem has
really disappeared with 1.2.3 or just doesn't show up as an error message as I
don't know what the original problem was.
The configurtation directive (default from the jboss-archive) looks like this:
<attribute name="JndiName">
| name=DefaultCache
| locatorURI=socket://:5555
| </attribute>
2. I noticed a change in the locking strategy? Currently the cache uses
REPEATABLE_READ (default) as IsolationLevel. I noticed that a thread, reading
or writing to a node did not release locks automatically after reading/writing,
leading to a fast death of the application caused by hundreds of locks. I tried
to insert releaseAllLocks(node)-statements after each write but this didn't
help as nothing happend at all: I just saw my processes now consuming 100% CPU
(probably doing some spin-locking).
It should be added that we don't use the transactional features using any
external transaction manager of the JBossCache but want to rely completely on
the built features of J.
I finally changed the IsolationLevel to NONE and now everything works fine -
although I expect some problems later on in production when we'll see heavy
concurrent modifications happen.
Best regards,
Soeren Gerlach
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881097#3881097
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881097
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user