Hello everyone,
This is a post similar to the one I've done on the Web Service section (
link) but I'm posting here because I have a side question related to that issue that involves RMI.
I have a Web Service, and I have another project which consists of a Server that has an always active connection to a remote host and that is able to send and receive messages. I need a way of invoking the "sendMessage(message, destination)" method of the server from within my Web Service, and to acheive this I have only come up with the idea of using RMI... converting the server to an RMI server also, and converting the web service to a RMI Client.
Have any of you used this configuration? Does any of you advise against it? It is even feasible to use a Web Service as an RMI Client? The thing is I MUST have a web service for sending messages to the server, and I MUST have the server always running and keeping the connection alive.
Do you think this is the way to go, or maybe I should consider another architecture?
Thank you in advance.