This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simulating connections

 
kirupa shankari
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i write a servlet to simulate connections to a web site?
 
Ghazanfar Qureshi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could u explain a little wht do u mean by simulating a web connection through servlet?
 
kirupa shankari
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ghazanfar Qureshi:
could u explain a little wht do u mean by simulating a web connection through servlet?

Simulating connections means establishing the number of connections we want on the web. If we want to simulate 10 connections it means we want to make it like 10 users are working on it.
 
John Bateman
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Since a servlet is an extension of the server, you can't make a servlet connect to itself. Or, I should sya you wouldn't want to.
If you want to load test a site I suggest you go to http://www.apache.org and get jMeter. It's a full java testing application made just for the purpose you are describing.
Hope this helps.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic