Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Part 2 Developing Applications by APIs | > Chapter 9 Developing Java Applications | > 9.3 How to Use Java APIs | > 9.3.1 Establishing a Connection |
This section explains how to establish a connection by specifying the host name and port number directly.
ShunConnection object name = new ShunConnection(host name, port number); |
Specify either the host name or the IP address of the connection destination.
Specify the port number of the connection destination.
When the host name is 'DirSvr1' and the port number is '33101'
ShunConnection con = new ShunConnection("DirSvr1",33101); |
When using Studio, specify code in the business class similar to that shown in the example above.
Contents
Index
![]() ![]() |