Abstract:
In this paper,the implementation principle,process and the method of a serial communication component based on JavaBean specification are described.It will be made as a component in a C/S system to meet the reqirementst of remote control on the occasion of some industry control.This component has taken most advantage of the behavior of the Java,such as event listener,serialization,persistence,introspection and JavaBean's customization,and implemented the function that is essential to a communication component concretely using the Java Native Interface(JNI)to call the underlying performance of hardware control.At last,we can use the tool jar.exe with the Java or use integrated designer environment such as Jbuilder to package all of the class to a.jar file.Under the support of the.DLL needed,this archive can be reused in any Windows environment which has installed the JVM(Java Virtual Machine).