No test case that you can use directly.
Also I'm not using StreamHandler directly. I am creating my own InputStream (a
ByteArrayInputStream to be exact), passing it to Client.invoke(InputStream,
Object), which in turn makes it way to the handler on the server side. I
then have my handler read the stream like any normal stream which is when I get
this exception.
On the handler side, I just operate on an "InputStream" (which is implicitly a
StreamHandler I believe - I'm just working on the input stream given to
StreamInvocationHandler.handleStream(InputStream, InvocationRequest).
Here's psuedo-code of my test on the client side:
| String stream_data = "Stream this string!!!";
| InputStream in = new ByteArrayInputStream( stream_data.getBytes() );
| results = getJBossRemotingClient().invoke( in, myParam);
|
and on the server side:
| public handleStream(InputStream in, InvocationRequest req)
| {
| byte[] stream_data = readEntireStream(in);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951957#3951957
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951957
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user