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
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: 38873
    
  23
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: 41874
    
  63
web services

TCP/IP sockets

a database

email

...


Ping & DNS - my free Android networking tools app
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11314
    
  16

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: 1763
    
    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.
 
 
subject: how many ways do two java program communicate?