java - Communication between different Jar's/Classloaders -


i've got following problem solve:

there 2 jar files. these jar's start independently each other.

now, let's first jar a.jar calculates or computes , has commit results b.jar.

i tried communicate via central singleton (enum singleton , singleton uses own classloader mentioned here: singleton class several different classloaders).

but didn't seem work me. when start 2 jar's hashcode of instances different.

can tell me i'm doing wrong? or other ideas how solve problem?

there 2 jar files. these jar's start independently each other.

so they're separate processes. won't share instances of classes, variables etc. need form of inter-process communication communicate between them.

that mean form of network protocol (e.g. tcp/udp sockets, http etc.). simple reading/writing shared file (that's not particularly nice, straightforward simple cases)


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -