On 7/15/07, Alan McKean <[EMAIL PROTECTED]> 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.
You could try subclassing in Ruby, not sure if that will give the desired effect though considering you want to serialize a combined Ruby/Java object. This seems like a tricky issue to solve, but one that could pay off in droves -- serializing a joint Ruby/Java object graph. It would probably necessarily be dependent on our Java integration code, which may be changing soon... class RubyCuHashMap < CuHashMap; end /Nick
