You probably are using a Swing app that's connected to an RMI
implementation(the server). I assume that the load isn't a concern here,
and that you have full control over the clients(malicious clients could
complicate the solution somehow), and that the connectivity between
clients and the server. So, it really depends on that RMI
implementation; however, I've never heard anything supporting something
like this before. It's likely you could make the transfer as byte []'s,
probably downloading them in chunks(2-16 KB) to lessen the memory
requirements on the server and the impact of transmission errors. With
some app servers, you could also bind a non-transactional object or
abstract factory to the JNDI tree to perform this operation, as it seems
hardly the transactional type.

My 2c,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Kavanagh
> Sent: Friday, December 13, 2002 7:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to stream a file from a session bean
>
>
> Yeah I saw that discussion in the archives, but my client is
> Swing-based and I'd rather not build a servlet just for this
> purpose (I've no web layer at present). Is there a way to do
> it directly from a session bean ? I need something equivalent
> to HttpServletResponse.getOutputStream()...
>
> Rgds,
> -Paul
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John Harby
> > Sent: Friday, December 13, 2002 10:22 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to stream a file from a session bean
> >
> >
> > Recently there was a big discussion about this and the conclusion
> > seemed to be if you were streaming single large files, then
> just use
> > servlet or if you were providing frameworks to access to multiple
> > smaller single files consider JMX.
> >
> >
> > >From: Paul Kavanagh <[EMAIL PROTECTED]>
> > >Reply-To: Paul Kavanagh <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: How to stream a file from a session bean
> > >Date: Fri, 13 Dec 2002 09:47:57 -0800
> > >
> > >Hi,
> > >
> > >can anyone point me to an example of streaming a file from
> a session
> > >bean to a (java) client ?
> > >
> > >Thanks in advance,
> > >-Paul
> > >
> >
> >=====================================================================
> > >======
> > >To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> > >of the message "signoff EJB-INTEREST".  For general help,
> send email to
> > >[EMAIL PROTECTED] and include in the body of the
> message "help".
> >
> >
> > _________________________________________________________________
> > MSN 8 with e-mail virus protection service: 2 months FREE*
> > http://join.msn.com/?page=features/virus
> >
> >
> ======================================================================
> > =====
> > To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> > of the message "signoff EJB-INTEREST".  For general help,
> send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "signoff EJB-INTEREST".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to