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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -