|
Charging enabled on OS level
|
|
Tuesday, January 4, 2005
Many real-time applications that require charging functionality run directly on the operating system (OS) in C or C++ languages (especially for Unix). For example, an IP-telephony-gateway application in Unix C needs to charge subscribers for the service units used. The problem in enabling charging in such applications is that the Charging Diameter API is only for Java and runs on a JVM instead of directly on a Unix OS. JNI is the technology for bridging Java and native C/C++. Most of the technical literature available on the web talks about using JNI to bridge from Java to C/C++, but there is very little information on using JNI to bridge from C/C++ to Java. Almost all the mobile-internet-service-enabler APIs that exist today are in Java. It is therefore important to show a solution for using the service-enabler APIs for mobile internet with C/C++. This is a typical case for server-side mobile-internet applications. The CDK includes the architectural overview of JNI technology, a demo application for a charging use case (Direct Debit based on Events), the source code for the application, installation instructions, getting started, step-by-step description of JNI code, documentation of important JNI APIs, JNI differences for C and C++, and conclusions about JNI. The demo application written in C language provides the same features as DirectDebitExample1.java that comes in the Charging SDK (examples folder). Together, this bundle is called "Charging In Unix C" CDK. In order to execute the charging application provided with the CDK, you need:
By Rehman Adil, Research Engineer
Last published February 17, 2007
|
|