-
Jun 9th, 2008, 12:59 PM
#1
BeanFactory.getType(beanId) not working for lazy beans
For a lazy-init bean which is affected by an aspect (i.e. interceptor), beanFactory.getType("beanId") returns the raw class instead of the actual proxy class. Once the lazy bean is instantiated, getType() returns the correct type of the proxy.
Is this a bug or a feature?
am I missing something?
Just in case you want to know what is it that I wan't to accomplish with this, I'm using DWR with Spring and DWR is giving an exception when I expose lazy beans as remoting services bacause DWR is trying to invoke a Method object of the raw type (as reported by Spring) to an instance of the Proxy class.
Regards.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules