This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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