Solved

Accessing a client's serial port printer over the internet.

Posted on 2002-04-15
12
193 Views
Last Modified: 2010-03-31
Hi,

I'm working on a Java based web site, where the only people who will access the site (registered users with userid/password logons) have slip printers attached to a serial port on their PC's.

I know I can access serial ports of the server computer using the javax.comm API, but can I access the serial port of a client machine over the internet?  If so, how?
0
Comment
Question by:lurch36
  • 5
  • 3
  • 2
  • +2
12 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 total points
ID: 6944039
You could use javacomm in an applet, but you'd need to get the necessary permissions for the applet.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6944411
and you will have to install some native code on the client machine too.
0
 
LVL 92

Expert Comment

by:objects
ID: 6944433
Yes javacomm would need to be installed on the client.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:lurch36
ID: 6946337
Would there be any way around it without installing javacomm on the client PC?  Permissions are OK - we can get them to change those, but I'd prefer to avoid client software installations if possible.
0
 
LVL 92

Expert Comment

by:objects
ID: 6946376
Not without using native method to access the serial port, (which is what javacomm does anyay).
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6947055
I suppose that you can copy appropriate .dll, .jar and configuration files 'manually' on the client machine (in fact you can write a dedicated applet that performs this task)
0
 
LVL 92

Expert Comment

by:objects
ID: 6947065
Isn't that installing javacomm ;-)
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6947078
yes, but at least end-users won't need to run installer .exe file :)
0
 
LVL 92

Expert Comment

by:objects
ID: 6947084
From memory, it doesn't actually come with an installer. It's a DIY job, which I guess is worse.
0
 

Author Comment

by:lurch36
ID: 6952210
Thanks for your thoughts - unfortunately, I'm not going to be able to procure a slip printer for testing until the middle of next week, so I won't be able to close this question off until then.
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7940748
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: objects
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Expert Comment

by:modulo
ID: 7990899
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 42
Arrays.asList  VS  ArrayList 4 71
tomcat administrtor 12 61
Java program running SQL query 5 37
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question