On Jan 19, 2007, at 11:32 AM, ...y ...ich wrote: > Oh, now I see.. You know, my point was to hide UserImpl from > client, because it is subject to heavy modifications and > refactorings, of which client side should be completely unaware as > soon as it uses IUser contract. Can you tell me, does Hessian > implement object transporting identically to Burlap? Or with Burlap > it's possible to implement my idea?
Burlap is essentially identical to Hessian. You might need to create a separate class to share between the server and client. I see the purpose of wanting the IUser, but I'm not even certain how we would implement it. -- Scott > > Thanks in advance! > > >> 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 > > -- реклама > ----------------------------------------------------------- > 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
