> So I hate to be keeping on about it but I dont understand what a context
> is.  Do i have one?  Why do i want one?

A context root is a URL pattern to which all URLs identified as
possibly to be processed by CF will conform. In the vast majority of
cases, it's simply a single slash:

/

which means that every URL will be identified as possibly to be
processed by CF. When you set up multiserver, the context root is "/"
by default.

The purpose of the context root in the larger picture is to let you
have multiple J2EE instances on a single web server. Each J2EE
instance associated with a single web server has to have a different
context root, so that the web server can figure out which one should
be processing which request. For example, let's say that I had two
apps on myserver.com, and I wanted each of them to be processed by a
separate J2EE instance:

http://myserver.com/app1/
http://myserver.com/app2/

The context roots for the two instances would therefore be:

/app1
/app2

Very few people use context roots with CF, because very few people are
trying to run different applications with different CF instances
connected to a single virtual web server. But, you might also use
context roots to limit which URLs have to be processed by the CF web
server module. For example, on the Adobe site, and the Macromedia site
before it, for a long time (when they used CF) they used a context
root of /cfusion for all the CF files. That way, the web server could
easily identify whether files had to be sent to the CF web server
module or not.

Again, it's unlikely that you're using anything other than the default
context root, though - and if you were, you'd know it because you'd
have set it up in the first place.

> I have a CF9 setup as J2EE which is what most people did for CF9, as I
> believe.

I don't think most people did that, actually. But maybe they should have!

Dave Watts, CTO, Fig Leaf Software
1-202-527-9569
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358521
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to