Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] Method overriding problem

Hi Christian,

that helps a lot because I did not know about these problems. As far as I remember we do not have such problems using RMI. It would be very helpful to have a log or exception in case of method overriding.

Regards,
Eugen

Am May 15, 2009 um 15:18  schrieb Christian Campo:

Hi Eugen,

yes you cannot overwrite methods, use two methods with the same name and different signatures in remote services. This problem occurs in the whole world of remote services (maybe not everywhere) but try that with any SOAP implementation of your choice for example and you have the same problem.

The problem is that if you use a protocol that has a language neutral serialization (and Hessian has implementations in c#, perl, python, objective-c) then you can now longer safely dispatch to the correct method with the right signature. So I agree it should show you an error message and I think you should file a bug if it doesnt.

But Hessian itself I believe does not allow it. It think in another project we had the same problem and at the end of the day (because Hessian did not show enough indication of the source of the problem) we simply checked the interface if there where two methods with the same name and rejected to register the whole thing as a remote service if we detected that condition. Maybe we should also do that here.....

hope that helps

christian
Am 15.05.2009 um 15:07 schrieb Eugen Reiswich:

Hi Riena-devs,

we have encountered an interesting problem with Riena. We've tried for  
hours to create a simple example with Riena without success. Our  
client/server communication just did not work and unfortunately riena  
did not log any error. So the problem was probably in our service  
interface. We had one method with the same method name, same return  
type but different parameter types e.g.

public Customer getCustomer(CustomerID id);

public Customer getCustomer(String name);

Overriding methods seem to cause some errors with Riena. Could you  
please comment this issue?

Regards,
Eugen
_______________________________________________
riena-dev mailing list
riena-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/riena-dev

_______________________________________________
riena-dev mailing list
riena-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/riena-dev


Back to the top