• Post Reply Bookmark Topic Watch Topic
  • New Topic

Output on server instead of client !!

 
Dinesh Kumar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running the Sun's RMI introductory bundle of programs on my machine.
Essentially -
1. Defined a server class with a remotable method sayHello(). This method is in a class that implements the Remote interface.
2. Started the orbd
3. Created the skeleton and the stub through rmic
4. Called the sayHello() from a client.
All the code is exactly the same as on Sun's tutorial. when I run the client it displays the message "Client: Obtained a ref. to Hello server" after the lookup.
But the call to sayHello() on the next line in the client program displays the "Hello from Mars!" message on the server window rather than on the client window.
Is that what is supposed to happen or I am doing something silly.
Thanks in advance.
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know whats supposed to happen. My guess is that it is working as planned. You would have to look at the server code to be sure. You got a response on your client and your server, so it probably is working correctly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!