[thelist] in-principle, PHP/mySQL shopping basket question

Aaron Johnson lists at cephas.net
Wed Jul 23 16:05:21 CDT 2003


Hi Chris,

> But Java isn't an interpreted language is it? What I mean by that is,
> isn't it a bit more powerful than a regular scripting language such as
> PHP or ASP? Can't it just sit around in the background and wait for
> something to happen?
 -- I won't touch your question about php/asp vs Java, but Java web
containers (Tomcat, JRUN, Weblogic, Websphere...) can be setup to listen for
events, things like the end of a session, objects added to or removed from a
session or the end of an application... If you're interesting in reading a
bit, you should do a google search for stuff like:

HttpSessionActivationListener
HttpSessionAttributeListener
HttpSessionBindingListener
HttpSessionListener
ServletContextAttributeListener
ServletContextListener

http://java.sun.com/products/servlet/2.3/javadoc/index.html

However, if those are the types of things you're looking for, ASP *does* in
fact have the ability to 'listen' for application & session start & end
events:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/htm/
ref_scrpt_globalasaref.asp?frame=true

click on 'Application Events' and/or 'Session Events'....

and as my "Professional ASP.NET 1.0" book says "ASP.NET Pages are all about
Events" (pg 197).

hth,

AJ

Aaron Johnson
ajohnson at cephas.net
http://cephas.net/blog/



More information about the thelist mailing list