Hi All (again),

Since my trials and failure in using Flash (and only Flash) with  
Hessian I took the smart road and have started using Flex to talk to  
my Java service via Hessian.

While I was trawling the Adobe website I came across Cairngorm which  
is a Flex MVC framework which I started using as it focused on  
creating gui interfaces in a clean fashion. But as I was doing this I  
came across a funny error event behavior which I didn't think was  
quite right, although it might be, or I just might not be handling it  
correctly.

When I try to connect to a url which doesn't exist (because I am just  
testing at this stage) a IOErrorEvent is thrown by HessianOperation  
(line 117 to be exact) and there seems to be no way to catch or  
handle it. The problem is that if I register an event handler with  
the HessianOperation which I am about to execute it doesn't propagate  
the event handler to the URLStream class which is throwing the error.  
I eventually downloaded the source and change the HessianOperation  
class to add an event handler to the URLSteam which then printed a  
trace statement (just for testing), this worked as expected, printing  
a trace statement and no longer popping up an error to the user about  
a streaming issue. I am only new to Hessian and thus don't know if I  
am approaching this problem in the right way, all I want to do is  
handle the event in my application so I can advise the user that a  
connection could not be established, but from what I see this is not  
possible, or again maybe I am just useless and can't seem to do it  
correctly.

Any and all help very much appreciated

Thanks

Josh




_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to