openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15728
Re: jcloud has a conneciton pool?
On 08/10/2012 04:14 PM, chaohua wang wrote:
> Hi Folks,
>
> I am working on Jcloud and Openstack. We have application(using jcloud)
> to connect Hp cloud service.
>
> But for each request to HP cloud service, we created restContext
> (RestContext<NovaApi, NovaAsyncApi> restContext =
> computeContext.unwrap();),
> then get NovaAPi ( NovaApi novaApi = restContext.getApi();). once task
> is finished, we closed restContext, so this is not efficient. since each
> request to create restconects, then closed once job is done.
> There is any way to reuse this restContext and NoavaApi? do i need to
> build a connection pool to reuse it? I am not sure originally why
> engineers did in this way. it may for security reason since each request
> we ask token from service.
Hi Chwang, an interesting question indeed, but I think it may be better
to ask over on the jClouds mailing list. Not sure there are too many
experts on jClouds here on the OpenStack mailing list! :)
Here is the jCloud ML, for reference:
https://groups.google.com/forum/?fromgroups#!forum/jclouds
Best,
-jay
References