Vinay,

Ah yes.... Doh!  
It is too late now to reapply again so I will get to this in the 
morning... :-)

- Paul

>Paul,
>I guess it must be the changes we missed to do to the 
>callback/test classes.
>The CallBackTestServer and  CallBackTestClient
>must use CallbackEnabled Server and HostContext 
>respectively for callback's  to work properly.
>The errors are thus due to the fact that 
>the arg's are been serialized and passed-by-value to 
>the server when we use SocketCustomStreamHostContext.
>
>Moreover there is another modification that needs to
>be
>done to the build script (callback.xml), 
>one that generates the proxies for the callback stub 
>for the clients.
>(stubs for CallBackListener inf.)
>
>Attached patches must do the trick :-
>
>Do let me know how this patch works at your end ?
>
>Regards,
>V i n a y
>===============================
>cvs -q diff callback.xml (in directory
>C:\avalon\cvs\jakarta-avalon-excalibur\altrmi)
>Index: callback.xml
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-avalon-excalibur/altrmi/callback.xml,v
>retrieving revision 1.2
>diff -r1.2 callback.xml
>9c9
><  
>---
>
>>  <property file="default.properties"/>   <!-- User
>>
>local        -->
>60c60,67
><   
>---
>
>>   <altrmiproxies genname="CallBackTestListenerImpl"
>>
>srcgendir="${build.home}/genjava" 
>
>>        classgendir="${build.home}/genclasses"
>>
>verbose="true"
>
>>       
>>
>interfaces="org.apache.excalibur.altrmi.test.callback.CallBackTestListener">
>
>>      <classpath>
>>        <pathelement
>>
>location="${build.home}/classes"/>
>
>>      </classpath>
>>    </altrmiproxies>        
>>
>63c70
><   <target name="server" description="Callback test
>server">
>---
>
>>  <target name="server" description="Callback test
>>
>server" depends="generate">
>72c79
><   <target name="client" description="Callback test
>client" depends="generate">
>---
>
>>  <target name="client" description="Callback test
>>
>client" >
>
>*****CVS exited normally with code 1*****
>
>cvs -q diff CallBackTestClient.java (in directory
>C:\avalon\cvs\jakarta-avalon-excalibur\altrmi\src\test\org\apache\excalibur\altrmi\test\callback)
>Index: CallBackTestClient.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/callback/CallBackTestClient.java,v
>retrieving revision 1.2
>diff -r1.2 CallBackTestClient.java
>46c46
><         arhc = new
>SocketCustomStreamHostContext("127.0.0.1", 1235);
>---
>
>>        arhc = new
>>
>CallbackEnabledCustomSocketStreamHostContext("127.0.0.1",
>1235);
>
>*****CVS exited normally with code 1*****
>
>cvs -q diff CallBackTestServer.java (in directory
>C:\avalon\cvs\jakarta-avalon-excalibur\altrmi\src\test\org\apache\excalibur\altrmi\test\callback)
>Index: CallBackTestServer.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/callback/CallBackTestServer.java,v
>retrieving revision 1.2
>diff -r1.2 CallBackTestServer.java
>18a19
>
>42c43
><         AbstractServer as = new
>CompleteSocketCustomStreamServer(1235);
>---
>
>>        AbstractServer as = new
>>
>CallbackEnabledCustomSocketStreamServer(1235);
>
>
>===============================
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>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