Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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)
 
What are you doing? You are supposed to be reading this tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic