%INCL1% AN EFFICIENT COMMUNICATION MECHANISM FOR JAVA APPLICATIONS
Original Publication Date: 2000-Nov-01
Included in the Prior Art Database: 2003-Jun-20
An Efficient Communication Mechanism for Java Applications An efficient client server communication mechanism for Java is disclosed for the Unix environment. A Java socket package is designed and implemented that has similar object definitions and methods to the Java standard TCP socket package, but is based on the Unix socket. Using the new mechanism, significant performance gain can be obtained and it becomes possible to integrate Java-based application code with legacy servers written using Unix socket. Java is becoming a popular language for distributed system development. The most common way to write a distributed application using Java is to use its standard socket class in the Java.net package. However, the class is based on TCP socket, which is expensive. Our invention uses the Unix socket as an efficient client server communication mechanism for Java in the Unix environment. We have designed and implemented a Java socket package that has similar object definitions and methods to the Java standard TCP socket package, but is based on the Unix socket. A Java native C interface is used to implement the package. To solve the discrepancy between the socket address of TCP socket and Unix socket, we mapped the port number of a TCP socket to a unique file name with the port number as suffix. By using the package, one needs to only include it in the Java source code without having to change the original Java code related to socket communication, to achieve significant performance gain. Furthermore, by using this package, it becomes possible to integrate Java-based application code with legacy servers written using Unix socket.