Thursday, October 21, 2004 03:09 PM
>1- Could anyone explain what are doing in this code?
This code actually makes the request by marshalling the data (converting it from Java types to IIOP, a network protocol defined by the OMG) so it can be transferred. As you can see it puts the method name "add", then the two arguments to the stream and invokes the request, unmarshalls the return stream and returns the result.
>2- What is the meaning of "$" and "_" prefixs in front of >the variables (e.g., flaot $result) and methods (eg., >_invoke($out) )?
These are simply variable naming conventions. The "_" is usually for a class variable, and the $ is used for variables declared in a method.
>3- What is "_invoke($out)" method doing in run-time?
This issues a request to the distributed object.