Vinay,
I am unsure whether this change is a modification to the one you sent me
yesterday (redirect).
If it is not, I am in trouble because I have applied all the patches
locally, and it is still not compiling...
"PipedObjectStreamServer should be declared abstract; it does not
define getMethodInvocationHandler(java.lang.String) ..."
.. (and others)..
Regards,
- Paul
>Paul,
>Client can now passes references of remote bak
>to server .
>
>So the example that was crafted earlier
>,Consumer-Provider, works fine now .
>TestProvider tpi = (TestProvider) af.lookup("P");
>TestConsumer tci = (TestConsumer) af.lookup("C");
>tpi.getName(0);
>tci.getProviderName(tpi); /// <---- works now
>
>This has been done by a hack in BaseServedObject.
>
>
>
>So you can try out the examples within tests2.xml
>, but I guess we still have to decorate this
>build script with the logger.jars .
>
>Comments.:-?
>
>
>Regards,
>V i n a y
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Movies - coverage of the 74th Academy Awards�
>http://movies.yahoo.com/
>
>
>------------------------------------------------------------------------
>
>Index: src/java/org/apache/commons/altrmi/client/impl/BaseServedObject.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/client/impl/BaseServedObject.java,v
>retrieving revision 1.12
>diff -r1.12 BaseServedObject.java
>195a196
>
>> marshallCorrection(args);
>>
>271d271
><
>283a284,299
>
>>
>> private void marshallCorrection(Object[] args)
>> {
>>
>> for (int i = 0; i < args.length; i++)
>> {
>> //check whether its one of those remote ref that we got from
>the server
>> //TODO : todo
>>
>> if(mAltrmiFactory.getReferenceID(args[i])!=null)
>> {
>> String
>objName=args[i].getClass().getName().substring(16);
>> args[i]=makeFacadeRefHolder(args[i],objName);
>> }
>> }
>> }
>>
>Index: src/java/org/apache/commons/altrmi/server/AltrmiPublisher.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/AltrmiPublisher.java,v
>retrieving revision 1.5
>diff -r1.5 AltrmiPublisher.java
>81a82,93
>
>> /**
>> * Method getMethodInvocationHandler
>> *
>> *
>> * @param publishedName
>> *
>> * @return
>> *
>> */
>>
>> MethodInvocationHandler getMethodInvocationHandler(String publishedName);
>>
>Index:
>src/java/org/apache/commons/altrmi/server/impl/DefaultMethodInvocationHandler.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/DefaultMethodInvocationHandler.java,v
>retrieving revision 1.4
>diff -r1.4 DefaultMethodInvocationHandler.java
>174d173
><
>205,207c204,205
>< (DefaultMethodInvocationHandler)
>mAltrmiPublisher.getMethodInvocationHandler(mr,
>< frh.getObjectName());
><
>---
>
>> (DefaultMethodInvocationHandler)
>>
>mAltrmiPublisher.getMethodInvocationHandler(frh.getObjectName());
>>
>211a210,222
>
>>
>> private void debug(Object[] args) {
>>
>> System.out.println("*************************");
>> for (int i = 0; i < args.length; i++) {
>> Object arg = args[i];
>>
>> System.out.println("i = " + i + " class= " +
>args[i].getClass().getName() + " "
>> + args[i].toString());
>> }
>> System.out.println("*************************");
>> }
>>
>>
>Index: src/java/org/apache/commons/altrmi/server/impl/adapters/PublicationAdapter.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/adapters/PublicationAdapter.java,v
>retrieving revision 1.2
>diff -r1.2 PublicationAdapter.java
>104d103
><
>164a164,167
>
>> public MethodInvocationHandler getMethodInvocationHandler(String publishedName)
>> {
>> return (MethodInvocationHandler) mPublishedObjects.get(publishedName);
>> }
>>
>
>
>------------------------------------------------------------------------
>
>--
>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]>