wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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

how many ways do two java program communicate?

haifeng zhou

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

Joined: Oct 13, 2005
Posts: 38040
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

Joined: Mar 22, 2005
Posts: 41129
web services

TCP/IP sockets

a database



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

Joined: Oct 02, 2003
Posts: 11161

a text file...

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

Joined: Mar 09, 2009
Posts: 600

Jelle Klap

Joined: Mar 10, 2008
Posts: 1754


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
static reference
communicating through Applet
How to run unix command using Java
How can I change the sdk version of Websphere 4 if I already install it
Comunicate two Applications in one machine in Java