Sep 27th, 2008, 01:30 AM
Class Cast Exception on Client side
I am using RMIServiceExporter To export the Service. I have configured the bean according to the Steps given in Spring In Action latest book.
And on client side i am using RMIProxyBeanFactory .
But as i am running the RMI server its working fine . But when i am trying to get bean On client side and Type Casting it to RMIProxyBeanFactory its giving class cast exception. $Proxy1 can not be cast to RMIProxyBeanFactory. Please help me.
Even what should i do to look up the Spring RMI Server by using simple RMI way ?
Please assist as i am very new to Spring .
Sep 28th, 2008, 04:55 PM
I suggest you readup on FactoryBeans.. You don't NEED to cast it to a RmiServiceProxyFactoryBean, you simply inject it as if it was your normal object.