Re: Why does sfTerminateWith only throw RemoteException?

Hal Hildebrand <[email protected]> Tue, 20 Jun 2006 08:48:29 -0700
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <C0BD66DD.807B%[email protected]>
try {

    terminate VM;
} catch (SmartFrogException e) {
    throw new RemoteException(³Some message², e);
}

On the flip side:

try {
    ...
} catch (RemoteException e) {
    SmartFrogExceptiion org = e.getCause();
}

I believe this will get you what you want...

On 6/20/06 8:05 AM, "Xavier Grehant" <[email protected]> wrote:

> We want to have a correspondance between the lifecycle of our SmartFrog
> component representing a Xen virtual machine, and the virtual machine itself.
> So we put into sfTerminateWith the call to the script that terminates the
> virtual machine, which throws a SmartFrog exception. But sfTerminateWith
> cannot forward the SmartFrog exception because it only throws RemoteException.
> Why? 
> 
> Thanks in advance,
> Olivier and Xavier
> 
> 
> 
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer

_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer