Hi Christoph, Whenever, there is an uncaught exception on the server side, the server sends a stop communication request to the client and stops the server side app. The client stops the communication and fires the DefaultSessionStateListener.sessionError() which displays the exception stack trace sent by the server in the ErrorDialog.
Therefore, there is no further scope for communication from the client to the server as the server side application has been terminated and the client has stopped the communication controller. There is already an issue: https://www.canoo.com/jira/browse/UBA-943 for providing a server side hook. In general, you can invoke remote methods using UIProxy.invokeULC (from the client) and ULCProxy.invokeUI (from the server). Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Christoph Brill >Sent: Wednesday, November 22, 2006 7:40 PM >To: [email protected] >Subject: [ULC-developer] Email on Exception > > >Hi List, > >I'm planning to do the following: If ULC detects an Exception and wants >to show an ErrorDialog using the DefaultSessionStateListener, I want to >send an Email. The email functionality is currently serversided. So I >want to tell a serverside object to send the email from the client side. >I got several questions on how to do so: >a) Is it possible to fire events to the server after the client side has >been informed about the exception? >b) Is using UIProxy.fireEventULC() the correct approach or is there a >better way to send something from the client to the server? >c) If UIProxy.fireEventULC() is the correct approach, how do I use it if >I'm extending DefaultSessionStateListener and so cannot extend UIProxy? > >Thanks in advance! > >-- >Mit freundlichen Grüßen / Kind Regards, >Christoph Brill > >HUEBINET Informationsmanagement GmbH & Co. KG >Maria Trost 23 >56070 Koblenz >Telefon 0261/50086-18 >Telefax 0261/50086-29 >E-Mail: [EMAIL PROTECTED] >http://www.huebinet.de > >Der Nachrichtenaustausch mit HUEBINET Informationsmanagement GmbH & Co. >KG, Koblenz via E-Mail dient lediglich zu Informationszwecken. >Rechtsgeschäftliche Erklärungen mit verbindlichem Inhalt können über >dieses Medium nicht ausgetauscht werden, da die Manipulation von E-Mails >durch Dritte nicht ausgeschlossen werden kann. > > >_______________________________________________ >ULC-developer mailing list >[email protected] >http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
