On Jan 18, 2007, at 1:02 AM, ...y ...ich wrote:

> Greeting,
>
> I want to implement a simple client-server application with the  
> following feature: client receives some remote object and call it's  
> method. I don't have an intention to use EJBs so my question if  
> this possible with pure Spring Remoting features like Hessian.
>
>
> The client side has only IUser in its classpath, not UserImpl. So  
> when I call Hessian Service, I receive en error like this
>
> Code:
>
> java.lang.InstantiationException: interfaces.IUser

>
> I haven't looked at Hessian source code, but I could presume that  
> it tries to instantiate UserImpl on the client side, where such  
> class is absent in the classpath.

Correct.  Hessian needs both sides to have the concrete classes to be  
instantiated.

> Can I configure Hessian somehow to send UserImpl class information  
> with serialized UserImpl object?

No, Hessian doesn't have any code migration, although you could  
create a separate service that copied .class files over Hessian.   
(That kind of capability would add extra complexity to Hessian, and  
tie it closer to Java which we want to avoid.)

-- Scott

>
> Thanks in advance!
>
> -- реклама  
> -----------------------------------------------------------
> http://freehost.com.ua - хостинг в UA-IX, домен  
> бесплатно во всех пакетах!
>
>
> _______________________________________________
> hessian-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/hessian-interest


_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to