java class creation dynamically and make it accessible across the network different jvms i.e. serial

Posted by inj.rav on Stack Overflow See other posts from Stack Overflow or by inj.rav
Published on 2010-04-27T00:52:34Z Indexed on 2010/04/27 0:53 UTC
Read the original article Hit count: 338

Filed under:
|
|
|

Hi. I have a requirement of creating java classes dynamically and make it accessible different jvms across the network. I tried to use reflection and javassist tool,but nothing worked. Let me explain the scenario we are using Coherence distributed cache. It has a power of doing aggregation/filtering in parallel across the cluster. For example if a class has [dynamic class] has amount variable and getAmount/setAmount methods. Then if we execute COHERENCE queries, it will start process in parallel across the cluster.

I tried to create classes at run time by using javassist and reflection. I am able to access it from single JVM, but when I tried to access the same class from other jvm [through coherence cluster]. I am getting exception of class not found [as remote jvm is not having idea of this class].I can over come this by creating same class dynamically on remote jvm also and access the methods. But coherence in built methods/functions are not able to find the class. could some one help me on this matter

© Stack Overflow or respective owner

Related posts about javassist

Related posts about Coherence