Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Part 2 Developing Applications by APIs> Chapter 9 Developing Java Applications> 9.3 How to Use Java APIs> 9.3.1 Establishing a Connection

9.3.1.3 Specifying the Host Name and Port Number Directly

This section explains how to establish a connection by specifying the host name and port number directly.

mark1Entry Format

ShunConnection object name = new ShunConnection(host name, port number);

mark1Arguments

mark2host name

Specify either the host name or the IP address of the connection destination.

mark2port number

Specify the port number of the connection destination.

mark1Sample Code

When the host name is 'DirSvr1' and the port number is '33101'

ShunConnection con = new ShunConnection("DirSvr1",33101);

mark1Sample Codes for Studio

When using Studio, specify code in the business class similar to that shown in the example above.


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006