If sending a stream from the client the the server, the user will need to call Client.invoke(InputStream inputStream, Object param) as opposed to Client.invoke(Object param) or Client.invoke(Object param, Map metadata). This will cause remoting to internally handle the stream proxying and deliver the proxy to the handleStream(InputStream stream, Object param) method of StreamInvocationHandler.
As for the second parameter to the handleStream() method, is for any extra contextual information the client would like to send. For example, org.jboss.remoting.samples.stream.StreamingServer uses the param object to represent the file name for the stream being passed. Guess this second parameter could be of type Map, but figured would just let be of type Object so could be anything. Don't know if is maybe a little too unstructured? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938570#3938570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938570 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
