Very well. But, this means that not even the Application holds the services
as members. Every call to getService() will go to the spring context, and
create a new proxy, right? This seems sub-optimal. Is the Application object
ever serialized? If it is not, and I make sure never to hold reference to a
service as a member in any of my components - then I can inject services to
the Appliction, can't I? 

Thanks again,
Naaman


igor.vaynberg wrote:
> 
> On 4/17/07, nlif <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> If I go with (1), then it makes sense to use the fact that the
>> Application
>> instance is created by Spring, to also inject it with the Services: I
>> just
>> provide setters. But then - how do I implement the getters so that they
>> return the proxies?
> 
> 
> then you cannot create proxies. the proxy needs the information needed to
> lookup the bean from the context, which a returned bean does not possess.
> so
> you have to be very careful not to keep references to those
> spring-injected
> beans anywhere in your components like the wiki page explains.
> 
> -igor
> 
> 
> 
> Thanks,
>> Naaman
>> --
>> View this message in context:
>> http://www.nabble.com/Spring-integration-question-tf3590701.html#a10035142
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Spring-integration-question-tf3590701.html#a10053009
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to