Cisco Cisco Computer Telephony Integration OS 8.5 開発者ガイド
4-19
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 4 Building Your Application
Using the Java CIL Libraries
•
For a complete sample application that uses the CIL interface with C++ static libraries, see the
C++phone sample application on the CTI OS CD.
C++phone sample application on the CTI OS CD.
Using the Java CIL Libraries
The Java CIL provides a powerful cross-platform library for developing Java CTI applications. This Java
API allows the creation of multiplatform client application that can be executed either in MS Windows
or Linux. JavaTM CIL is built to supports the 1.6 Java Development Kit (JDK) and JREIt is built using
a similar architecture to the C++ CIL and the interface is also similar to C++ with some differences. As
a result, a developer porting a C++ CIL application to Java or working between a Java and C++ should
find it fairly easy to switch between the two.
API allows the creation of multiplatform client application that can be executed either in MS Windows
or Linux. JavaTM CIL is built to supports the 1.6 Java Development Kit (JDK) and JREIt is built using
a similar architecture to the C++ CIL and the interface is also similar to C++ with some differences. As
a result, a developer porting a C++ CIL application to Java or working between a Java and C++ should
find it fairly easy to switch between the two.
The Java CIL consists of two packages contained in a single JAR file called JavaCIL.jar. The packages
are com.cisco.cti.ctios.util and com.cisco.cti.ctios.cil. The Java CIL can be installed on Windows using
the CTI OS Client Install or it can be copied directly from the CTIOS_JavaCIL directory on the CTIOS
media under Installs\CTIOSClient. The Java CIL also includes JavaDoc with the distribution. No install
is provided for Linux. Users will need to mount the CDROM and copy the CTIOS_JavaCIL directory
from the media. The Java CIL version can be checked by using the CheckVersion.bat program in
Windows or the checkversion shell script on Linux. Both of these can be found in the same directory as
the JAR file.
are com.cisco.cti.ctios.util and com.cisco.cti.ctios.cil. The Java CIL can be installed on Windows using
the CTI OS Client Install or it can be copied directly from the CTIOS_JavaCIL directory on the CTIOS
media under Installs\CTIOSClient. The Java CIL also includes JavaDoc with the distribution. No install
is provided for Linux. Users will need to mount the CDROM and copy the CTIOS_JavaCIL directory
from the media. The Java CIL version can be checked by using the CheckVersion.bat program in
Windows or the checkversion shell script on Linux. Both of these can be found in the same directory as
the JAR file.
Sun JRE installers are also included on the media as a convenience for developers who need to obtain
the correct version of the JRE. CTI OS Java CIL 7.5(1) has been updated to compile and run with the
latest version of JDK/JRE.
the correct version of the JRE. CTI OS Java CIL 7.5(1) has been updated to compile and run with the
latest version of JDK/JRE.
The Java CIL ships with a GUI TestPhone application which provides most of the functionality found
on the CTIOS Agent and Supervisor Desktops. The distribution also includes samples that are Java
versions of some of the C++/COM/VB sample applications. See the section entitled
on the CTIOS Agent and Supervisor Desktops. The distribution also includes samples that are Java
versions of some of the C++/COM/VB sample applications. See the section entitled
for more information.
The CTI OS Java Test Phone has been updated and compiled with CTI OS Java CIL 7.5(1) using the
JDK/JRE 1.6_01 for Linux and has been functionally tested on Red Hat Linux Enterprise 5.0.
JDK/JRE 1.6_01 for Linux and has been functionally tested on Red Hat Linux Enterprise 5.0.
Next Steps
•
Refer to Chapter 6 and Appendix A for differences between the C++ and Java event publishing.
•
Refer to Chapters 7 through 12 for differences in method calls and syntax for those classes between
C++ and Java.
C++ and Java.
•
Refer to Appendix B for differences between C++ and Java tracing.
Using the .NET CIL Libraries
The .NET CIL provides native .NET class libraries for developing native .NET Framework applications.
It is built using the same architecture as the Java CIL and the interface is also similar to C++ with some
differences. As a result, a developer porting a C++ CIL application to .NET CIL between a .NET and
Win32 should find it fairly easy to switch between the two. The .NET Client Interface Library (.NET
CIL.) API provides native support for the Microsoft .NET Framework Common Language Runtime 1.1
(CLR). The API can be use with all major .NET Programming languages (C#, VB.NET, Managed C++,
ASP.NET, etc). The API is deployed as .NET Assemblies that are registered in the system's Global
Assembly Cache (GAC).
It is built using the same architecture as the Java CIL and the interface is also similar to C++ with some
differences. As a result, a developer porting a C++ CIL application to .NET CIL between a .NET and
Win32 should find it fairly easy to switch between the two. The .NET Client Interface Library (.NET
CIL.) API provides native support for the Microsoft .NET Framework Common Language Runtime 1.1
(CLR). The API can be use with all major .NET Programming languages (C#, VB.NET, Managed C++,
ASP.NET, etc). The API is deployed as .NET Assemblies that are registered in the system's Global
Assembly Cache (GAC).