Has anyone done anything with Serial IO in a servlet.  I'm trying to
generate a list
of comm ports available on the server using the following...

Enumeration ports = CommPortIdentifier.getPortIdentifiers();
CommPortIdentifier port;
while (ports.hasMoreElements() ) {
     port = (CommPortIdentifier)ports.nextElement();
     logger.log ("Port: " +port.getName());
     portName.addElement (port.getName());
     portID.addElement (count);
     count = new Integer (count.intValue() + 1);
}

This is a small piece of code that loops through the list of ports.  This
works fine when I run this
as a standalone application.  However, when I run this from a servlet, the
code never makes it
into the while loop.  Any ideas?

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to