• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connection pooling testing

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I just set up a datasource for connection pooling in WSAD 5.1 (test server 4.0). I need to know how many connection it can handle. I have never doing testing before. I want to learn so could anyone please point me to the right direction. ANy tutorial or articles would be much appreciated. I know it may sound dumb, but i don't even know if its JUnit or HTTP test (i think it should be http test because connection would be asked through a client side i.e a browswer since its a website). Thanks a lot for your help and time.

Regards,
Mala
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would personally test the DataSource in isolation from any HTTP stuff since that's irrelevant from the perspective of wanting to know how many connections the pool has.

You could, for example, use Jakarta Cactus or JUnitEE to execute a JUnit test inside the web container.

The JUnit test would then do something like

(Disclaimer: I haven't even compiled the above code)
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic