Chris where did this code come from?

I am confused ... i thought you were talking about the database connection pooling. There is no such code around that world that looks like this.

On 19/03/2012 18:38, chris schiffman wrote:
I may have spoken too soon on this..  It seems to only *not* work when
a client connection attempts to open up a persistent socket connection
with the OBD application.   I'm not a java programmer, but here is a
snippet that causes the problem:

....
SchemeRegistry schemeRegistry = new SchemeRegistry();
              schemeRegistry.register( new Scheme("https",
443,SSLSocketFactory.getSocketFactory()));
              ThreadSafeClientConnManager cm =  new
ThreadSafeClientConnManager();
              cm.setMaxTotal(20);

              HttpClient client = new DefaultHttpClient(cm);
              HttpGet get = new HttpGet( url + "?" + content);
              String line = "";
              StringBuilder sb = new StringBuilder();
              HttpResponse response;
              response = client.execute(get);
              HttpEntity entity = response.getEntity();
....

When that code is executed to hit my application (which has 10
maxconnections set in the datasource connection), it still opens up
and establishes all 20..  Any other thoughts?

thanks,
-chris


--
online documentation: http://openbd.org/manual/
  google+ hints/tips: https://plus.google.com/115990347459711259462
    http://groups.google.com/group/openbd?hl=en

Reply via email to