96 lines
5.1 KiB
HTML
96 lines
5.1 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="reference" />
|
||
|
<meta name="DC.Title" content="Examples: Tips for programming" />
|
||
|
<meta name="abstract" content="" />
|
||
|
<meta name="description" content="" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="exples9" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Examples: Tips for programming</title>
|
||
|
</head>
|
||
|
<body id="exples9"><a name="exples9"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Examples: Tips for programming</h1>
|
||
|
<div><p></p>
|
||
|
<div class="section"><p>This section lists the code examples that are provided throughout
|
||
|
the documentation of IBM<sup>®</sup> Toolbox for Java™ tips for programming.</p>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Managing connections</h4><ul><li> <a href="mngcon.htm#mngcon__mngex1">Example: Making a connection to
|
||
|
the iSeries™ server
|
||
|
with a CommandCall object</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex2">Example: Making two connections
|
||
|
to the iSeries server
|
||
|
with a CommandCall object</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex3">Example: Creating CommandCall
|
||
|
and IFSFileInputStream objects with an AS400 object</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex4">Example: Using AS400ConnectionPool
|
||
|
to preconnect to the iSeries server</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex5">Example: Using AS400ConnectionPool
|
||
|
to preconnect to a specific service on the iSeries server, then reuse the connection</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Starting and ending connections</h4><ul><li> <a href="mngcon.htm#mngcon__mngex6">Example: How a Java program
|
||
|
preconnects to an iSeries server</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex7">Example: How a Java program
|
||
|
disconnects from an iSeries server</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex8">Example: How a Java program
|
||
|
disconnects and reconnects to the iSeries server with disconnectService()
|
||
|
and run()</a></li>
|
||
|
<li> <a href="mngcon.htm#mngcon__mngex9">Example: How a Java program
|
||
|
disconnects from the iSeries server and fails to reconnect</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Exceptions</h4><ul><li> <a href="except.htm#except__excex1">Example: Using exceptions</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Error events</h4><ul><li> <a href="error.htm#error__errex1">Example: Handling error events</a></li>
|
||
|
<li> <a href="error.htm#error__errex2">Example: Defining an error listener</a></li>
|
||
|
<li> <a href="error.htm#error__errex3">Example: Using a customized handler
|
||
|
to handle error events</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Trace</h4><ul><li> <a href="trace.htm#trace__traceex2">Example: Using trace</a></li>
|
||
|
<li> <a href="trace.htm#trace__traceex1">Example: Using setTraceOn()</a></li>
|
||
|
<li> <a href="trace.htm#trace__traceex3">Example: Using component trace</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Optimization</h4><ul><li> <a href="opt.htm#opt__optex1">Example: Creating two AS400 objects</a></li>
|
||
|
<li> <a href="opt.htm#opt__optex2">Example: Using an AS400 object to represent
|
||
|
a second server</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><p>The following disclaimer applies to all of the IBM Toolbox for Java examples:</p>
|
||
|
<blockquote><strong>Code
|
||
|
example disclaimer</strong> <p>IBM grants you a nonexclusive copyright license to use
|
||
|
all programming code examples from which you can generate similar function
|
||
|
tailored to your own specific needs.</p>
|
||
|
<p>All sample code is provided by IBM for
|
||
|
illustrative purposes only. These examples have not been thoroughly tested
|
||
|
under all conditions. IBM, therefore, cannot guarantee or imply reliability,
|
||
|
serviceability, or function of these programs.</p>
|
||
|
<p>All programs contained
|
||
|
herein are provided to you "AS IS" without any warranties of any kind. The
|
||
|
implied warranties of non-infringement, merchantability and fitness for a
|
||
|
particular purpose are expressly disclaimed.</p>
|
||
|
</blockquote>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|