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

Posts:65
Registered: 4/9/04
Send data between two applications  
Jul 1, 2004 12:12 PM



 
Hi!!

It's the second time i write in this forum and i hope u undersand my english because i'm argentinian.
I'm developing an application that processes data received from sockets and the result should be sent to another application but i can't use sockets for that purpose. So i thought in something like a printer queue but i don't know how to implement it and i hope u can understand me.

Please help me!!!!!!!!!!!!

Bye!!
 

Posts:10,967
Registered: 4/7/01
Re: Send data between two applications  
Jul 1, 2004 4:25 PM (reply 1 of 5)



 
The information given isn't specific, so it is hard to give good answers.

You could write the data to a file from one application and read it with another application.

If the applications are both Java, this example may work: http://java.sun.com/docs/books/tutorial/applet/appletsonly/iac.html

Again, if both are Java, look at using pipe streams http://java.sun.com/docs/books/tutorial/essential/io/pipedstreams.html
 

Posts:65
Registered: 4/9/04
Re: Send data between two applications  
Jul 2, 2004 5:43 AM (reply 2 of 5)



 
Hi again!!

I'm gonna explain what i'm doing and what i need:

i'm developing some applications that communicate via sockets, but i'm not allowed (the owner of the company didn't let me) to use threads. The problem is that one program should be listening to two different clients so i divided it into two differents applications that communicate each other NOT using sockets. So i thought that i could develop something like the priniting queue and both applications every 2 seconds for example will pop messages pushed into de queue. Well, i think i explained a little more what i need and i hope u can help me.

Bye!!!!!!!!!!!!!!
 

Posts:6,750
Registered: 1/25/04
Re: Send data between two applications  
Jul 2, 2004 8:01 AM (reply 3 of 5)



 
That requirement is absolutely insane. Why would he not let you use threads? I would start looking for a different job, because this company owner is probably clueless. By running this as two different applications, you end up making multiple threads anyway, they're just in different JVMs. Nuts.
 

Posts:65
Registered: 4/9/04
Re: Send data between two applications  
Jul 2, 2004 9:56 AM (reply 4 of 5)



 
Hi again!!

I agree with u but i sill have to do what they asked me to do, because i can't quit. Think about the few jobs possibilities i have in Argentina!!!!. So, any ideas?????
 

Posts:6,750
Registered: 1/25/04
Re: Send data between two applications  
Jul 2, 2004 10:46 AM (reply 5 of 5)



 
Sounds like JMS would suit you.
 
This topic has 5 replies on 1 page.