Alan McKean wrote:
We use a concurrent HashMap in our persistence to control concurrent access to the persistent object by multiple users. It's called CuHashMap. I assume that I need to create a RubyClass that dispatches to it because I get a NullPointerException (no metaclass) when I try to store objects in it and persist them.

Can someone give me a pointer to an example of how we could build the RubyCuHashMap? If there is one example that we can draw from, that would be most helpful.

I think one of the cleanest examples would be the BigDecimal library in JRuby. Start with BigDecimalLibrary and work your way from there. The code that sets up the class is pretty straightforward, as are the actual method definitions.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to