It is safe to cache the instantiated service proxy to avoid creating it for subsequent calls. For example, you can instantiate the service proxy in the module's onModuleLoad() method and save the resulting instance as a class member.
I imported the Usuario class in the entry point class
If you need to make use of some server side class (which does not logically belong to the client side) you can always make a server call via the proxy
Compiling module testing3.Probando3
Validating newly compiled units
[ERROR] Errors in 'file:/C:/Documents%20and%20Settings/mcasal/Mis%20documentos/proyectos-eclipse/probando3/src/testing3/client/Usuario.java'
[ERROR] Line 4: The import testing3.server.Charles cannot be resolved
[ERROR] Line 33: Charles cannot be resolved to a type
[ERROR] Line 33: Charles cannot be resolved to a type
[ERROR] Line 34: Charles cannot be resolved to a type
Finding entry point classes
[ERROR] Unable to find type 'testing3.client.Hello'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |