    All Examples  This Package

# Class examples.t3client.TimeoutClient

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

public class TimeoutClient
extends Object

##

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

##

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

##

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.

##

main

     public static void main(String argv[]) throws Exception

  Creates an instance of TimeoutClient and connects to the WebLogic Server

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