Killing an server. Urgent!
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Xavier_Drudis
Posted On:   Thursday, June 14, 2001 11:06 AM

Hi, I have two CORBA servers, with its servants. Call them Killer and killed. I want "Killer" to invoke an operation on "killed" so that when "killed" recieves it, it must die. The obvious implementation gives a Communication error: (killed servant) void killme() {    System.exit(0); } I think I could do the dirty trick of catching the communication exception and ignore it, but there must be something better. Any suggestion would be highly appreciated. Thank you in advance!!    More>>

Hi, I have two CORBA servers, with its servants. Call them Killer and killed.


I want "Killer" to invoke an operation on "killed" so that when "killed" recieves it, it must die.

The obvious implementation gives a Communication error:
(killed servant)



			
void killme() {

   System.exit(0);

}




I think I could do the dirty trick of catching the communication exception and
ignore it, but there must be something better.



Any suggestion would be highly appreciated. Thank you in advance!!    <<Less

Re: Killing an server. Urgent!

Posted By:   Alex_Bukavnev  
Posted On:   Thursday, July 19, 2001 02:28 PM

The right way is to use

orb.shutdown(false)

function

Check CORBA 2.X spec.

Re: Killing an server. Urgent!

Posted By:   Martin_Winter  
Posted On:   Monday, July 2, 2001 04:38 AM

What about using a "oneway" operation? Then the caller does not wait for the calee to complete and should not complain about the broken connection.
About | Sitemap | Contact