An instance which is loaded by the other classloader, how can we access it without ClassCastException being thrown?
As far as I know, we can use reflection.But it seems that using org.springframework.jndi.JndiObjectFactoryBean is a better idea.
I'm confused how JndiObjectFactoryBean can avoid the ClassCastException being thrown?
Is anyone can make me clear?


Reply With Quote
