Technical data

8 Configuring WebLogic Server Web Components
8-26 Administration Guide
Enable Tunneling
Enables or disables HTTP tunneling. HTTP tunneling is disabled by default.
Tunneling Ping
When an HTTP tunnel connection is set up, the client automatically sends a
request to the server, so that the server may volunteer a response to the client.
The client may also include instructions in a request, but this behavior
happens regardless of whether the client application needs to communicate
with the server. If the server does not respond (as part of the application code)
to the client request within the number of
seconds set in this attribute, it does
so anyway. The client accepts the response and automatically sends another
request immediately.
Default is 45 seconds; valid range is 20 to 900 seconds.
Tunneling Timeout
If the number of seconds set in this attribute have elapsed since the client last
sent a request to the server (in response to a reply), then the server regards the
client as dead, and terminates the HTTP tunnel connection. The server checks
the elapsed time at the interval specified by this attribute, when it would
otherwise respond to the client’s request.
Default is 40 seconds; valid range is 10 to 900 seconds.
Connecting to WebLogic Server from the Client
When your client requests a connection with WebLogic Server, all you need to do in
order to use HTTP tunneling is specify the HTTP protocol in the URL. For example:
Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, "http://wlhost:80");
Context ctx = new InitialContext(env);
On the client side, a special tag is appended to the http protocol, so that WebLogic
Server knows this is a tunneling connection, instead of a regular HTTP request. Your
application code does not need to do any extra work to make this happen.
The client must specify the port in the URL, even if the port is 80. You can set up your
WebLogic Server to listen for HTTP requests on any port, although the most common
choice is port 80 since requests to port 80 are customarily allowed through a firewall.
You specify the listen port for WebLogic Server in the Administration Console under
the “Servers” node, under the “Network” tab.