All Examples  This Package

Class examples.t3client.TimeoutClient

java.lang.Object
   |
   +----examples.t3client.TimeoutClient

public class TimeoutClient
extends Object

Constructor Index

 o TimeoutClient(String)
Creates a T3Client and connects to the WebLogic Server given by argv[0].

Method Index

 o disconnectOccurred(DisconnectEvent)
This method should include the work that happens when the client is notified of its impending disconnect.
 o main(String[])
Creates an instance of TimeoutClient and connects to the WebLogic Server

Constructors

 o TimeoutClient
 public TimeoutClient(String weblogicURL) throws Exception
Creates a T3Client and connects to the WebLogic Server given by argv[0]. The class registers itself as a Disconnect Listener. The class sets the idle timeout to 1 minute, then sleeps for 2 minutes. When the thread wakes, it checks that the disconnectOccurred() method was invoked.

Methods

 o main
 public static void main(String argv[]) throws Exception
Creates an instance of TimeoutClient and connects to the WebLogic Server

 o disconnectOccurred
 public void disconnectOccurred(DisconnectEvent de)
This method should include the work that happens when the client is notified of its impending disconnect. Here, we'll just set a variable to indicate that the method was called, and wake the thread that's sleeping in this instance.

Parameters:
de - A DisconnectEvent

All Examples  This Package