Hi,
When you download objects from S3, you need to read all the data from the object's input stream then close this input stream to release the underlying HTTP connection. By default, JetS3t is configured to provide only 4 simultaneous HTTP connections, so if you don't close the input stream from the first 4 objects there will be no connections available for subsequent downloads.
You can increase the number of connections available by editing the configs/jets3t.properties file, but fundamentally you will need to modify your code to read the data from existing downloads before you download other objects.
Alternately, you can take advantage of the JetS3t utility class SimpleMultiS3Service which handles all this stuff for you.
Hope this helps,
James
---
http://www.jamesmurty.com
On Wed, Jul 9, 2008 at 9:44 AM, CodeChica <
mxs072100@...> wrote:
Hi,
I'm having this strange problem - I have 8 objects in my bucket, and in a
method, I am fetching them using s3Service.getObject(bucketname,
identifier). THen I am setting each to an input stream using
object_i.getDataInputStream(). Now, the funny thing is that, after
downloading 4 objects, the program just hangs - absolutely nothing happens
at that point. I know that all 8 objects are there in the bucket because I
can see then using S3Fox.
Please let me know what I am doing wrong,
Thanks!
--
View this message in context: http://www.nabble.com/downloading-from-S3-tp18351533p18351533.html
Sent from the JetS3t Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...