File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes RMI c.f.  HTTP-tunneling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "RMI c.f.  HTTP-tunneling" Watch "RMI c.f.  HTTP-tunneling" New topic

RMI c.f. HTTP-tunneling

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi again !
R the two mutually exclusive ???
When would I use RMI over tunneling ???
Is tunneling the preferred way to invoke remote methods over the internet ???

humanum errare est.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
RMI is the way big J2EE server systems work - it is the fastest IF everybody is on the same network.
HTTP "tunneling" is required if you have to go through firewalls. The emerging standard is to use XML-RPC or SOAP over port 80.
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
I am looking at both onsite (intranet) and off-site (www) access to the data. The latter is behind a fore wall.
Does this mean that I have to use RMI for the former and tunneling for the latter ?
AT the moment I am trying to :

javac cannot resolve symbol BaseTunnelClient.
I wonder whether j2sdk1.4 has got this package in* ???
I agree. Here's the link:
subject: RMI c.f. HTTP-tunneling
jQuery in Action, 3rd edition