* @return the return value from the invocation.
* @throws Throwable
*/
public Object invoke(InputStream inputStream, Object param) throws Throwable
{
StreamServer streamServer = null;
if (invoker instanceof LocalClientInvoker)
{
streamServer = new StreamServer(inputStream, "local");
}
else
{
streamServer = new StreamServer(inputStream);
}
String locator = streamServer.getInvokerLocator();
// now call on target server and pass locator for stream callbacks
InvocationRequest invocationRequest =
new InvocationRequest(sessionId, subsystem, param, null, null, null);
return invoke(new InternalInvocation(InternalInvocation.ADDSTREAMCALLBACK,