I don't know if someone has been posting this problem.
I got problem with javax.comm API for serial communication.
I have write code for send/receive data through RS232 and compile as
java.class. It is run properly, but when I copy it become an applet
or in EJB it cannot execute this code:
portList = CommPortIdentifier.getPortIdentifiers();
So I never open the port communication.
I have add code bellow to fix the problem:
************************************************
String driverName = "com.sun.comm.Win32Driver"; //(under windows)
try {
CommDriver driver = (CommDriver) Class.forName(driverName).newInstance
();
driver.initialize();
} catch (Throwable e) {
// Arf!
}
************************************************
But I still cannot fix the problem. Please tell me what should I do
to solved the problem.