[jboss-jira] [JBoss JIRA] Commented: (JBREM-661) Allow server sending a stream to the client
Ron Sigal (JIRA)
jira-events at lists.jboss.org
Sat Sep 15 15:56:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBREM-661?page=comments#action_12377013 ]
Ron Sigal commented on JBREM-661:
---------------------------------
Description of duplicate issue JBREM-776:
The logical inverse of existing JBoss streams implementation is needed to stream files from the server to the client.
CLIENT:
OutputStream out = ... (ByteArrayOutputStream or FileOutputStream as needed)
remotingClient = new Client(new InvokerLocator(streamLocatorURL));
remotingClient.connect();
remotingClient.invoke(out, parameter);
SERVER:
public Object handleStream(OutputStream stream, InvocationRequest request) {
... get file based on request.getParameter();
... standard write a file to the stream
}
On the server the bean would use the parameter to determine the file requested. For example the parameter might be a primary key value to file meta data, or it could be a known filepath, or bytes read from a database. Security can be handled at the application level by the bean.
> Allow server sending a stream to the client
> -------------------------------------------
>
> Key: JBREM-661
> URL: http://jira.jboss.com/jira/browse/JBREM-661
> Project: JBoss Remoting
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Helmut Wick
> Assigned To: Tom Elrod
> Fix For: 2.4.0.Beta1 (Pinto)
>
>
> As of release 2.0.0 GA, there is no way for a server to send a stream to the client (only the other way around).
> This is to request something like java.io.InputStream Client.invoke(java.lang.Object param)
> that allows for true streaming (like java.lang.Object invoke(java.io.InputStream inputStream, java.lang.Object param) does).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list