Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programatically find webspeed agents.

Status
Not open for further replies.

PatrikIsProgres

Programmer
Aug 5, 2005
1
GB
Hey all,

I was wondering if anyone knew any commands or tricks on how to find out what agents are alive, or if given an agent's pid, if it is still alive. Also, I'd really like to know how to make an app run on one specific agent until the user closes his/her browser.

Right now I've got it set up so that when you first navigate to the page, it gets the agent's pid and puts it into a hidden <input> tag. When you submit the form, the target page gets the pid passed to it and compares it to the pid of the agent it's currently on. If they're not the same, the page refreshes and continues to until it gets on the original agent. I have to use one specific agent because I'm using a super procedure to persist temp table data throughout the entire form (multiple pages). This way works, but the more agents that are alive, the longer it's going to take to get back to the original agent. Also, of that original agent dies somehow, the page just continually refreshes. This is why I need to know how to check the liveliness of the agent and how to actually specify which agent the app should run on.

Thanks for your time.

Patrick
 
I think you need to re-examine your whole approach to state-keeping. Webspeed is inherently stateless and it's neither possible nor desirable to lock an agent between browser hits. You need to develop some software to handle session management (user sessions, that is), and hold your temp data in what will become your session management module.

It's quite a large topic, but fortunately you don't need to roll your own. Have a look at They have some downloadable software and documentation that will get you going.

HTH

Cheers, Mike.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top