Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Non Java Inter Process Communication
 Post subject: Non Java Inter Process Communication Post rating: 0   New post Posted: Sun 09 Jan, 2011, 05:40 

User rating: 0
Joined: Thu 27 Aug, 2009, 12:09
Posts: 23
I don't know why this sort of thing is so difficult in java but there must be an easy way of doing this. Well I hope there is.

I wanted originally to communicate with my non Java program via DLL's but didn't get very far. Seems you have to resort to JNI which basically open a can of new worms. I gave up on that.

PostMessage seems to have the same problems.

I'm not too sure about sockets or shared memory.

Has anyone successfully done this sort of thing? Could you please tell me what methods you used? Any code snippets would be gratefully received! :)

At present all I'm left with is writing to files which is incredibly ineffecient.

Thanks


 
 Post subject: Re: Non Java Inter Process Communication Post rating: 0   New post Posted: Wed 12 Jan, 2011, 13:42 

User rating: 0
Joined: Tue 27 Jul, 2010, 20:57
Posts: 49
Sockets is the way to go. There is a nice (although advanced) example on the wiki: https://www.dukascopy.com/wiki/index.php ... Connection

If windows only, there is also the possibility to use DDE, e.g. with the free jDDE (DDE wrapper for java).


 
 Post subject: Re: Non Java Inter Process Communication Post rating: 0   New post Posted: Sat 29 Jan, 2011, 06:56 

User rating: 0
Joined: Thu 19 Aug, 2010, 13:53
Posts: 62
Ive done this also with TCP sockets. It worked pretty well. The only small artifact is that when you start the TCP socket as listening server the Java machine via JForex asks you if to allow the connection to be opened. This is claimed for security reasons.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com