Welcome to Dream.In.Code
Getting Java Help is Easy!

Join 136,424 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,348 people online right now. Registration is fast and FREE... Join Now!




Accessing COM port in more than one java application

 
Reply to this topicStart new topic

Accessing COM port in more than one java application

planetj9
15 Oct, 2008 - 04:17 AM
Post #1

New D.I.C Head
*

Joined: 15 Oct, 2008
Posts: 1

Hi all,

I am trying to use(access) single COM port into more than one java application to read incoming data on port.
Once one application started accessing port, other cant access it. Is possible to do so?

Anybody having any response for the same?

Thanks in advance.

User is offlineProfile CardPM
+Quote Post

pbl
RE: Accessing COM Port In More Than One Java Application
15 Oct, 2008 - 02:23 PM
Post #2

D.I.C Lover
Group Icon

Joined: 6 Mar, 2008
Posts: 3,110



Thanked: 202 times
Dream Kudos: 75
My Contributions
QUOTE(planetj9 @ 15 Oct, 2008 - 05:17 AM) *

Hi all,

I am trying to use(access) single COM port into more than one java application to read incoming data on port.
Once one application started accessing port, other cant access it. Is possible to do so?

Anybody having any response for the same?

Thanks in advance.

I'm afraid not... when you assign a channel to a port it is allocated to you... gheeez never though I would miss old Cobol:
ASSIGN "COM1" TO INPUT-DEVICE REGARDLESS OFF LOCKS.

Do you realize the security breaches it would open if hundred processes can read from the same device ?

This post has been edited by pbl: 15 Oct, 2008 - 02:24 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 01:20PM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month