amarnath nalumachu

Greenhorn
+ Follow
since Feb 10, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by amarnath nalumachu

Programmer certifications help developers to strengthen the language and helps them to dive deep. Happy to see this book helping programmers in this direction.
Thanks a lot for the sharing the documents. I have been looking for a sample and here you helped me out...

Paren Parikh wrote:Hi,

I am not sure wether the link is obvious on sun site but this PDF looks really helpful while preparing for Part2 & Part3 .. But especially the emphasis is on part 2

http://www.sun.com/training/images/pdf/scea-part-two-2009-bof.pdf

Also the same guy seems to be writing a book about SCEA too..

http://humphreysheil.blogspot.com/

I hope this helps.

Regards
Paren


Congratulations and thanks sharing your experience.
14 years ago
Try Apache HttpClient, it has clean API to read cookies from the request and set it again for a new request...
17 years ago
I see following constraints or what ever.

1. We need to maintain the chunk order so that file assembly is proper on the server side. What is best way to identify a chunk number?
2. What if a chunk transfer fails, we need to mark the whole transfer as failure and ask the end user to transfer again.
3. Performance, there is lot of IO involved, as each chunk written to disk and later read the chunk and write a big file.

Any ideas.
17 years ago
Hi All,

We have a web application that uses an applet to upload a file in chunks and transfers sequentially to the server and on the server side, a servlet receives the chunks. Now we are thinking of improving the overall performance. We are thinking of sending multiple chunks paralelly and servlet (some server side component) will assemble the chunks in right order (assume chunk order is passed) and creates the file the server side.
So my question, is this approach feasible? If feasible, what are the issues can arise with this approach? Please throw your ideas. Appreciate your help.

Thanks
17 years ago
Query the database before you insert and if you don't find then only insert. Do you have primary key/unique key in your table? This will automatically avoid creating duplicate rows.
I have come across that session can be used to handle refresh, but I never tried.
17 years ago
Use the ZipInputStream to read and wrap the OutputStream around ZipOutputStream to stream the file back...Hope it helps
17 years ago
JSP
Try HttpClient from Apache Commons project...It is more advanced and easier that URLConnection ...
17 years ago
Hi "Bear Bibeault", My first name is "amarnath" and last name is "nalumachu". I thought it is ok to use my lastname initial "n". But anyhow, I have updated my profile.
17 years ago
You can wrap to any output stream that you wish to deal with. Assume if you want your servlet to return html page then response.getWriter()/response.getOutputStream() is sufficient. But if you want your servlet to stream a zip a file, then you need to wrap the response.getOutputStream() to appropriate output stream.
17 years ago