Hi J�rgen,

> hi!
> finally, i got proxies working, and it seems, that they also work in 
> client / server. my problem was, that when a proxy class is 
> loaded, the 
> references are loaded, and those references back-reference 
> the initial 
> object. now those references were of the original type, but 
> to get this 
> working, i needed to convert each object reference to the interface.
> 
> to explain my description:
> 
> class A implements InterfaceA
> {
>         // contains elements of type B
>         private List bs;
> }
> 
> class B
> {
>         private A parent;
> }
> 
> to get the proxy working, i needed to change class B:
> 
> class B
> {
>         private InterfaceA parent;
> }
> 
> as this would have to be done in a lot of code places, i ask 
> first, if 
> that really has to be done.

Yes! Proxies do only work correctly with interfaces. This is because Java
dynamic proxies can only be used for interfaces!

cheeres,
Thomas

> greetings, 
> Juergen
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to