Hi Lasse,
Thanks for your attention. The
IBank there is an interface. AFAIK to create a proxy bean in Spring requires an interface instead of the direct class implementation. The
target property of this proxy bean requires the IBank implementation....if i am correct.
during the invocation of this code:
it spit-out an error saying java.lang.ClassCastException
When i change my code to like this:
the error change to: Bean name "Bank" must be of type [arnel.nicolas.Bank],
but was actually of type [$Proxy0].
I have a doubt if Spring created a bean name "Bank" of
arnel.nicolas.Bank type.
Anyway thanks for your reply. I will just check their forum.
