Home arrow static arrow Java Programming [Archive] - Interprocess Communication
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Interprocess Communication
This topic has 4 replies on 1 page.

Posts:2
Registered: 7/22/04
Interprocess Communication  
Jul 22, 2004 7:42 AM



 
Hi,

I want to make a JAVA program and a C# program talk to each other via IPC. I tried following steps

1. Invoke java program.
2. Spawn the C# program from within java program using runtime.exec()
3. Obtain the i/o streams for the C# process handle. and use them to communicate with the C# process.

JAVA is able to read the C# standard output.
However, C# does not receive the messages sent from JAVA.

Can anyone help me with this?

Thank you

Mihir
 

Posts:31,095
Registered: 4/30/99
Re: Interprocess Communication  
Jul 22, 2004 8:01 AM (reply 1 of 4)



 
You're asking here for help with a C# program that isn't working the way you would like?
 

Posts:2
Registered: 7/22/04
Re: Interprocess Communication  
Jul 22, 2004 8:05 AM (reply 2 of 4)



 
I do not know whether the problem is with the C# program or with the JAVA program.

I am not sure whether JAVA can work with Process handles irrespective of the language/platform the other process is written in.

Mihir
 

Posts:31,095
Registered: 4/30/99
Re: Interprocess Communication  
Jul 22, 2004 8:14 AM (reply 3 of 4)



 
JAVA is able to read the C# standard output.

It appears that Java can work with process handles, then.

Can you make it work with two Java programs?
 

Posts:27,518
Registered: 11/3/97
Re: Interprocess Communication  
Jul 22, 2004 2:46 PM (reply 4 of 4)



 

JAVA is able to read the C# standard output.
However, C# does not receive the messages sent from
JAVA.

Can anyone help me with this?

Have you tested the C# app? You can do that by creating a batch file and redirecting standard in from a text file. Something like.....

MyApp <commands.txt.

If the above does not work then there is nothing you can do it java to get it to work.
 
This topic has 4 replies on 1 page.