|
From: Juergen H. <ju...@in...> - 2005-05-23 09:59:46
|
Tim, The order of <bean> sub elements should not matter, with the sole exception of <description> which needs to be first. What kind of error do you get when you place your <lookup-method> tag before your <property> tag? Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Tim Kettering Sent: Thursday, May 19, 2005 11:21 PM To: spr...@li... Subject: [Springframework-developer] order of lookup-method in bean declaration important? Hi, I was looking into integrating lookup-method in my context, and I was using the reference found here: http://static.springframework.org/spring/docs/1.2/reference/beans.html#beans -factory-method-injection After much tussling around with some weird XML error, and looking at some other examples pasted in the forums, I moved the <lookup-method> tag to appear after the <property> tags, and it all worked after that. So I think the example in the reference is misleading, since it places the <lookup-method> tag before the <property> tag, which apparently does not work for me (in Spring 1.2). So, does the order matter? If so, the reference example should be updated and the text to clearly state in what order it should appear in the <bean> declaration. Thanks. -tim ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |