• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JCA ManagedConnection Problem

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

At the moment I am trying to implement a Connector and I always encounter the same problem:

Every time a client tries to obtain a connection, not only a Connection object, but also a ManagedConnection object is allocated.
This ManagedConnection objects always remain and never get removed, but are never reused.
This means I easily reach the pool limit and I cannot share ManagedConnection objects among several clients.

After debugging the ManagedConnectionFactory object I found out, that the matchManagedConnection method never gets called.
For every connection only the createManagedConnection method is invoked.

How can I trigger the ConnectionManager to call this method
and thus enable sharing of ManagedConnections ?

What am I doing wrong or what might be missing in my code ?

Thanks in advance

Is that a spider in your hair? Here, threaten it with this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic