• Post Reply Bookmark Topic Watch Topic
  • New Topic

RPC in JAVA

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hava to build a Remote Procedure Call in java, a client that interfaces with some network device.
I have search on google, but i can�t find a littel example....
Do anyone have a littel example ???
Frank
SCJP
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to implement RPC in Java, or use its RPC-like transport? What kind of network device are you accessing? Is it running a JVM of its own?
 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes its running on a java maschine off its own....'
But this mashine is up and running now, i have to contact this maschine with RPC, and send some information !
But i have too have an example, how to create a client, that talks RPC to a other maschine !
Do i make some Connection first, with a IP adress, or how do i create the connection and the communication between my clint and the other mashine ???
Frank
 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, its a network device thats not running in a Java Vertual maschine !
Therefore i cant use RMI....
Anyone nows how to make old fassion RPC in JAVA ???
Frank
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Frank Jacobsen:

Anyone nows how to make old fassion RPC in JAVA ???
Frank

I don't think there is such a thing in Java outside of RMI. There isnt' much to go on from your description of the situation, but I'd guess that to use Java you'd need to wrap some RPC calls in C or C++ and use JNI to invoke them. I'd start digging into your network device documentation and see if there's a way other than RPC to communicate. Google for <your network device name> and Java.
 
Fred Grott
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Frank Jacobsen:
I hava to build a Remote Procedure Call in java, a client that interfaces with some network device.
I have search on google, but i can�t find a littel example....
Do anyone have a littel example ???
Frank
SCJP

Frank use soap. it sjust another form of rpc, you woudl be wrapping an c or c++ call..
the Java library is at apache.org it use to be called hermes..its now called something else I think..
what is the network device btw?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!