Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to close server socket for incoming RMI requests from client  RSS feed

 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have also posted this message to the "Distributed Java" forum.

I would like to close the socket, that an RMI server listens to for incoming requests, from the remote client. I'm trying to simulate an error condition where, somehow, the RMI server socket gets closed.
(By the way, what would cause the RMI server socket to close?)

Thanks,
Avi.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Avi Abrami:
Hi,
I have also posted this message to the "Distributed Java" forum.


As pointed out in your other post, please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe,
Your assumption that everyone who answers questions on JavaRanch visits every forum is incorrect. Hence your argument is flawed.

But hey, you have the power and control, so you can do whatever you like on these forums. So if you choose to shut me down, I just have to live with that.

Good Luck,
Avi.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, nobody around here can -or will want to- do whatever they want (except Paul, who likes pie). Over the years a number of useful rules on HowToAskQuestionsOnJavaRanch have crystallized, and we ask that everybody posts according to those. If you think one of those rules doesn't make, feel free to start a discussion about it in the JavaRanch forum.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf.
(Who is Paul?)

But when it comes to the crunch. No-one can answer my question, anyway.

So all this discussion on protocol doesn't really help me to resolve my problem at all.

Good Luck,
Avi.
[ August 08, 2006: Message edited by: Avi Abrami ]
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I doubt it is that no one can answer your question, but rather more that no one wants to chime in on the topic.

I myself, would considier it a security violation if it were even possible to close the server RMI port from the client, no matter how you tried it. It screams security violation and denial of service. If you are able to do that, what else could you exploit that mechanism to do? If you want to test an error condition (on the client) then the client should not be closing the socket anyway. Simply start your test then kill (not gracefully stop, but kill) the server registry process. That should pretty much simulate your error condition.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!