Results 1 to 2 of 2

Thread: Class Cast Exception on Client side

  1. #1
    Join Date
    Sep 2008
    Location
    Mumbai, India
    Posts
    18

    Default Class Cast Exception on Client side

    Hi all,
    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 .

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •