Kill a remote object
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Xavier_Drudis
Posted On:   Thursday, June 14, 2001 11:23 PM

Hi, I already posted that message, but I can't see it, so again: I have two CORBA servers, call them killer and killed. I want the killer to invoke an operation on killed so that when killed receives it, it dies. The follwoing solution doesn't work, because a communication exception is raised: public void killme() {    System.exit(0); } What can I do? I thought I can catch the exception and ignore it, but I'm sure there are more elegant solutions. Thanks in advance!    More>>

Hi, I already posted that message, but I can't see it, so again:


I have two CORBA servers, call them killer and killed. I want the killer to
invoke an operation on killed so that when killed receives it, it dies.


The follwoing solution doesn't work, because a communication exception
is raised:

			
public void killme() {
   System.exit(0);
}


What can I do?

I thought I can catch the exception and ignore it, but I'm sure there are
more elegant solutions.



Thanks in advance!
   <<Less

Re: Kill a remote object

Posted By:   GopiChand_Yarlagadda  
Posted On:   Tuesday, June 26, 2001 05:17 PM

When the call is made from the killer, invoke CORBA::ORB::shutdown() in the killed. This will take care of proper shutdown of the killed.
Gopi
About | Sitemap | Contact