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

Part 1 The Basic for Developing Application> Chapter 7 Shunsaku File> 7.2 Methods Used to Access Shunsaku File> 7.2.1 Per-connection Specification

7.2.1.1 Specifying with the Java API

In this method, the Shunsaku File name is specified when creating the ShunConnection object.

This section explains how to specify the Shunsaku File name in the constructor directly.

mark1Syntax

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

mark1Arguments

mark2host name

Specifies the target host name or IP address.

mark2port number

Specifies the target port number.

mark2Shunsaku File name

Specifies the target Shunsaku File name.

mark1Sample Code

When the host name is "DirSvr1", the port number is "33101" and the Shunsaku File name is "fileA"

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

This information can also be specified in the Java properties. Refer to the Java API Reference for more information.

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006