| Author |
Client/Server
|
Santosh Maskar
Ranch Hand
Joined: Jul 02, 2003
Posts: 226
|
|
I have a cline written in Java 5 and server written in C++(have lots of DLLs) here is the use case I am looking for Client: reads the data from user (someting like spredsheet) Server : process the data depending upon the users request and send an output to the client Clinet : will display accornindly Important: Server and client is always on the same machine. now I want to use bridge in between server and client to talk each others I am working on JNI but could not come accross to took the desicion I am googling for differnt options for the same problme. Can you guys share your experience with me or if you have any comparion doc/links it would be great help
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12327
|
|
I want to use bridge in between server and client to talk each others
Note that JNI only works when both sides run Java. Solutions range in complexity: 1. simple socket - client opens a socket, sends byte[] of data, server interprets byte[], does computation, sends back byte[] which the client interprets. 2. "Web Service" style - client opens http connection, sends XML in SOAP format, server parses XML, does computation, sends XML reply. 3. Message style - server would have to have message capability Bill
|
Java Resources at www.wbrogden.com
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
Important: Server and client is always on the same machine.
Then why call them "client" and "server"?
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
Santosh Maskar
Ranch Hand
Joined: Jul 02, 2003
Posts: 226
|
|
Originally posted by Nathan Pruett: Then why call them "client" and "server"?
Why I am calling this as Server and client? for Eg. App A (Server) and App B (client) When A sits on computer 1 and B sits on computer b then it uses the socket Here is link I found which is simmillar to my problme. http://www-128.ibm.com/developerworks/java/library/j-bridge/ Thanks, Santosh
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
This -
Important: Server and client is always on the same machine.
is the opposite of this -
App A (Server) and App B (client) When A sits on computer 1 and B sits on computer b then it uses the socket
Your problem is more related to having to communicate between 2 different "languages/technologies" on the same machine rather than having to communicate between 2 different machines. But it looks like you are finding some solutions in that area, such as IBM's bridge2Java solution - another option I've used in this area is Jawin. [ December 01, 2005: Message edited by: Nathan Pruett ]
|
 |
Santosh Maskar
Ranch Hand
Joined: Jul 02, 2003
Posts: 226
|
|
Originally posted by Nathan Pruett: But it looks like you are finding some solutions in that area, such as IBM's bridge2Java solution - another option I've used in this area is Jawin.
Thank you very much Mr.Nathan. very useful link. Thanks, Santosh
|
 |
 |
|
|
subject: Client/Server
|
|
|