All Examples This Package
java.lang.Object | +----examples.workspace.datacache
$ javac -d %CLIENT_CLASSES% datacache.java
$ java examples.workspace.datacache t3://hostname:port
Where hostname:port is the host name and port number of your WebLogic Server.
public datacache()
public static void main(String argv[]) throws Exception
The ParamSet that we will save into the T3Client's Workspace is created. We use a loop to create, connect, and disconnect the T3Client, each time connecting to the original T3Client Workspace by supplying the Workspace ID when the T3Client is created. Within the loop, we set a different ParamValue and store the ParamSet in the Workspace; then we disconnect and connect again, and retrieve the data that we stored in the previous session.
Finally, we connect one last time and set the soft disconnect timeout to zero. This forces an immediate clean up of the T3Client's resources in the WebLogic Server after we've finished with this client's Workspace.
All Examples This Package