How Data Access Layer (and Database) which are in remote JVM (server) communicate with web app which is in local JVM?
views:
28answers:
1
+2
A:
Have you looked at RMI ? Without knowing your requirements it's difficult to comment. RMI will certainly be a simple solution to Java client/server communication.
Brian Agnew
2010-01-13 16:23:53
In webapps you really don't want to use RMI between webserver and webclient (webbrowser). There you have HTTP for. Maybe the OP is talking about communication between webserver and databaseserver, but still then, there you have JDBC for. It's all quite confusing, apparently the OP didn't get the concepts right and that's also why I posted the comment on his question.
BalusC
2010-01-13 16:30:21
@Balus, Brian is not suggesting RMI between browser and webserver. The question seems to be about communication between different servers.
matt b
2010-01-13 16:31:57
When the OP say "webapp in local JVM" I can imagine that he actually meant the webbrowser. I've seen this misconception often enough. Don't underestimate ignorance.
BalusC
2010-01-13 16:33:19
I also don't second-guess requirements unless I explicitly say so. I'm *not* sure what the OP wants, hence my caveat in the second sentence.
Brian Agnew
2010-01-13 16:55:52