|
From: Venkat S. <vso...@ho...> - 2004-10-27 16:28:13
|
Hi Jurgen, Thanks for your detailed reply. That will definitely help me... I will keep you posted on how it goes. Regards, --Venkat. From: jürgen höller [werk3AT] <jue...@we...> Reply-To: spr...@li... To: <spr...@li...> Subject: Re: [Springframework-developer] Hi Date: Tue, 26 Oct 2004 20:48:13 +0200 MIME-Version: 1.0 Received: from mc5-f10.hotmail.com ([65.54.252.17]) by mc5-s5.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 26 Oct 2004 11:46:38 -0700 Received: from sc8-sf-uberspam1.sourceforge.net ([66.35.250.206]) by mc5-f10.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 26 Oct 2004 11:46:37 -0700 Received: from projects.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-uberspam1.sourceforge.net (Postfix) with ESMTPid 43BF61D3FAB; Tue, 26 Oct 2004 11:46:03 -0700 (PDT) Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)id 1CMWKR-0005oS-SKfor spr...@li...; Tue, 26 Oct 2004 11:45:55 -0700 Received: from cm140-139.liwest.at ([81.10.140.139] helo=mail.werk3at.com)by sc8-sf-mx2.sourceforge.net with esmtp (Exim 4.41)id 1CMWKR-0000CG-B2for spr...@li...; Tue, 26 Oct 2004 11:45:55 -0700 X-Message-Info: 0jbW5ANosZJyzd/TkjWMPHBAvKTbhaxx X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message Message-ID: <170...@co...> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Springframework-developer] Hi Thread-Index: AcS7iP1twEX/rnJqTDW7ROh5NvcNiwAAeBrb X-Spam-Score: 0.8 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net.See http://spamassassin.org/tag/ for more details.Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=2000010.0 SF_CHICKENPOX_SLASH BODY: Text interparsed with /0.0 SF_CHICKENPOX_MINUS BODY: Text interparsed with -0.0 SF_CHICKENPOX_AT BODY: Text interparsed with @0.0 SF_CHICKENPOX_APOSTROPHE BODY: Text interparsed with '0.0 SF_CHICKENPOX_PERIOD BODY: Text interparsed with .0.0 SF_CHICKENPOX_UNDERSCORE BODY: Text interparsed with _0.0 SF_CHICKENPOX_EQUAL BODY: Text interparsed with =0.7 FOR_FREE BODY: No such thing as a free lunch (1) Errors-To: spr...@li... X-BeenThere: spr...@li... X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/springframework-developer>,<mailto:spr...@li...?subject=unsubscribe> List-Id: <springframework-developer.lists.sourceforge.net> List-Post: <mailto:spr...@li...> List-Help: <mailto:spr...@li...?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/springframework-developer>,<mailto:spr...@li...?subject=subscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=springframework-developer> Return-Path: spr...@li... X-OriginalArrivalTime: 26 Oct 2004 18:46:37.0772 (UTC) FILETIME=[1FDEB0C0:01C4BB8C] Hi Venkat, First of all, thanks for your kinds words on Sprign :-) Regarding ICE: You should be able to treat just it like any other of the remoting protocols that Spring supports. As a starting point, have a look at how Spring's Hessian support (for Caucho's HTTP-based Hessian protocol) is implemented. Our usual pattern for the client side is to implement the actual invocation handling in an interceptor base class (like HessianClientInterceptor) and derive a convenient FactoryBean from it (like HessianProxyFactoryBean). The interceptor basically takes the local method invocation and converts it to a corresponding remote invocation, in turn converting the remote invocation result back to a local invocation result. What's exposed to the caller is usually a plain Java (i.e. non-RMI) interface. For a comparison, you could also have a look at Spring's RMI support, although that one is more complicated: It can work with either an RMI interface or a non-RMI business interface, so has quite a bit of case handling inside. The internals of the Hessian support are significantly simpler. Of special concern is the exception handling. The current Spring remoting support usually lets all exceptions thrown by the target service through as-is, according to the business interface contract. The interesting part is how to handle remote access failure: In Spring, all such exceptions are converted to the generic org.springframework.remoting.RemoteAccessException. From the point of view of the caller, it always gets a RemoteAccessException, no matter which protocol is used underneath. So the main responsibilities of the client interceptor respectively proxy factory bean are to delegate the call to the corresponding target service, and to correctly handle exceptions thrown. The current support classes should give a good indication on how to achieve this properly. Keep us up-to-date on how things are progressing at the ICE front! Regards, Juergen ________________________________ Von: spr...@li... im Auftrag von Venkat Sonnathi Gesendet: Di 26.10.2004 20:19 An: Spr...@li... Betreff: [Springframework-developer] Hi Hi, Thanks for the cool framework. I am still new to it. I like Dependency Setter Injection for JNDI lookup for DataSource and SLSB. We are contemplating on using ICE (http://www.zeroc.com) for distribution, as it supports versioning, cross platform, location transparency (no remote vs local interfaces) and cool asynchronous programming model. Naturally every one is concerned and want the dependencies on it to be minimal. I would like to instantiate stubs to ICE remote services via Spring. What's the best way to start/look at what code? Thanks in advance, --Venkat. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |