aspose file tools*
The moose likes Java in General and the fly likes how many ways do two java program communicate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how many ways do two java program communicate?" Watch "how many ways do two java program communicate?" New topic
Author

how many ways do two java program communicate?

haifeng zhou
Greenhorn

Joined: Oct 30, 2009
Posts: 13
the two java program run on the same machine which OS is unix
I just know socket can communicate,
does java has some ways like unix communicate on the same machine???
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36598
    
  16
I have used two Java programs communicating via agents written in LISP. You can write data to a file in one JVM and read the file on another. There are bound to be many more ways.
Using a Unix-specific or LISP connection requires certain dependencies in the platform, so you lose independence.

Question too difficult for "beginning Java". Moving thread.
chandrakant karale
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
JMS can be used,
And on linux may be named pipes- not sure about this.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
web services

TCP/IP sockets

a database

email

...


Ping & DNS - updated with new look and Ping home screen widget
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10928
    
  12

a text file...


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
RMI...

John.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1667
    
    7

Pigeons.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how many ways do two java program communicate?
 
Similar Threads
Comunicate two Applications in one machine in Java
How can I change the sdk version of Websphere 4 if I already install it
static reference
communicating through Applet
How to run unix command using Java