File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client/Server

 
Santosh Maskar
Ranch Hand
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Important: Server and client is always on the same machine.


Then why call them "client" and "server"?
 
Santosh Maskar
Ranch Hand
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic