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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet tunneling" Watch "servlet tunneling" New topic

servlet tunneling

pradeep kumar

Joined: Jan 23, 2001
Posts: 3
please give explanation about servlet tunneling
also give a small example
nirmal baba

Joined: Apr 06, 2001
Posts: 10
There is nothing called servlet tunneling but certainly there is a concept called HTTP tunneling.
So let us try to understand what does HTTP tunneling means.
Most of the intranets work within the confines of a firewall that guards the intranet from direct influence of the external network. The firewall acts as a security wall for the intranet that protects it from malicious influences of internet.A proxy server,for example,acts as a firewall that allows the intranet users to surf through the web but does not allow them to connect to the network applications.
A typical firewall restricts all external communications from the intranet except the HTTP communications.So if a client behind a firewall(say an applet) wants to connect to an HTTP Server(where the servlet resides),then opening a simple socket on the client for initiating the communicaion with the server wont help since the firewall will block this request for being non HTTP.
In order to get through the firewall,u will have to wrap the client request in an HTTP message so that it will pierce throgh the firewall and reach the server.
This mechanism of encapsulating the client request in a HTTP message so that it may penetrate the firewall is called HTTP FIREWALL TUNNELING.
U will have to use the and
classes for doing this.
This is a brief explanation. Any doubts,plz ask
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
SOAP is an example of object passing using HTTP Tunneling.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Hi Nirmal,
What happens after u wrap the client request (some other protocol) in a HTTP request and the server receives the request? How will the server know where to redirect..

Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

Also, check out this thread

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
I agree. Here's the link:
subject: servlet tunneling
jQuery in Action, 3rd edition