I'm with a problem here.
I have a client A code that calls a B via RMI. After that I'm sending a queue request via JMS to the real implementation C. However, I don't know the "address" of A. Is there a way to store the connection data somehow so that I can return the data to A later?
Basically the thing is that B can have tons of requests and need to synchronize this to the requestor. How to do that?
Example:
A:
...
rmiB.HelloWorld("Sys");
...
B:
String HelloWorld(String s) {
...
sendToJMS(s);
...
return????
}
C:
String HelloWorldOnJMS(String aff) {
return "aff+2"
}