Thank you for response Ashish, but do you know any working-real example that handles large file transfer with MINA 2.0?
On Wed, Jan 27, 2010 at 8:48 PM, Ashish <[email protected]> wrote: > On Thu, Jan 28, 2010 at 12:09 AM, Emre GURBUZ <[email protected]> > wrote: > > I am using Centos 5.3 with sun jdk 1.6. > > Generally Java's default object serialization has poor performance and I > > noticed that it was a big mistake of using serialization for binary file > > transfer. Is there a standart Mina codec for file transfer or should I > write > > my own codec filter for this? > > > I think you need to write your own codec for this. > Check MINA source in this folder org.apache.mina.filter.stream > I think the FileRegionFilter may be of help. > > > > > If I need to write a custom codec, then which points are important for > large > > file transfer especially image files.. > > > > On Wed, Jan 27, 2010 at 7:14 PM, Ashish <[email protected]> wrote: > > > >> On Wed, Jan 27, 2010 at 6:03 PM, Emre GURBUZ <[email protected]> > wrote: > >> > Hi all, > >> > I am trying to develop a peer-to-peer application which peers will be > >> able > >> > to transfer large binary files. > >> > File size is approximately 40-50 mb and I am using mina 1.1.7. > >> > >> Please upgrade to the latest. It runs far better > >> > >> > I tried to use ObjectSerializationCodecFactory codec, but realized > that > >> it > >> > has really poor performance.It takes 25-30 seconds in LAN. > >> > Now I really need to have guide if I need to send file in chunks? Do > you > >> > think the best way will be a custom codec that handles transfer? > >> > >> Hmm, a file region filter would be better. What OS are you on? > >> > >> > My best regards, > >> > > >> > Emre > >> > > >> > >> > >> > >> -- > >> thanks > >> ashish > >> > >> Blog: http://www.ashishpaliwal.com/blog > >> My Photo Galleries: http://www.pbase.com/ashishpaliwal > >> > > > > > > -- > thanks > ashish > > Blog: http://www.ashishpaliwal.com/blog > My Photo Galleries: http://www.pbase.com/ashishpaliwal >
