quanq zhu wrote:
>
> how to solve the difference version between the client and the 
> server,depending on my mention,
> hessian request same version between the client and server port.
> for instance:the client parameter object adds the new memeber,the 
> server don't.the hessian will post the excepition acounting for the 
> version unsame.
>  
> can any one give the solution ,or discuss this topic?
>

It depends whether you're adding a new method to the API or adding a 
field to an object.

Hessian is pretty flexible for adding or removing fields.

 * If the receiver doesn't understand the field, it should just ignore 
it. (If Hessian is throwing an exception in that case, it should be a 
Hessian bug.)

 * If the sender doesn't understand the field, it won't send it, and the 
receiver will just leave the field value as a default.

Adding a new method to the API or changing parameters is more difficult. 
You shouldn't ever change parameters. Instead, you would need to add a 
new method and keep the old method.

The client might need to be prepared to handle the method not found 
exception for the new method and retry with the old method as a fallback.

-- Scott

>  
> THANKS 
> --- *10年11月29日*
>



_______________________________________________
hessian-interest mailing list
hessian-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to