This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 43984
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: 42958
web services

TCP/IP sockets

a database


fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11858

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: 1924


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: how many ways do two java program communicate?
jQuery in Action, 3rd edition