Re: Life-span of a Context

2017-02-15 Thread GARDAIS Ionel
HI Ignasi, Thanks for your reply. Ionel On 02/15/2017 03:30 PM, Ignasi Barrera wrote: You should try to keep the context open as long as possible, and reuse it when needed. A context itself does not hold any connection to external services. It just provides the container for the IoC

Re: Life-span of a Context

2017-02-15 Thread Ignasi Barrera
You should try to keep the context open as long as possible, and reuse it when needed. A context itself does not hold any connection to external services. It just provides the container for the IoC framework used in jclouds (Guice), and the different ExecutorService instances jclouds uses to

Life-span of a Context

2017-02-15 Thread GARDAIS Ionel
Hi, We are using JClouds on a server-side application. That is, it is supposed to be long-lived, compared to a end-user application that could be closed after several minutes/hours of use. public byte[] getFile(String basePath, String containerName, String blobPath) {