CFMX happily distinguishes different applications with no problem, so
that's not the issue.  There are a lot of things to deal with in
trying to run completely separate instances of the same application
inside the same CFMX instance.  Enough that I don't think it's
practical to try, when there is a simple solution (multiple CFMX
instances) that works very well.  You'll invariably screw something
up, and blame CF when it's a code problem.  Believe me.  I've done
this.

You have to have separate application names, separate mappings (for
CFCs and CFIMPORT), separate custom tag paths (if you still use any),
separate DSNs, separate scheduled tasks, separate web services (if you
use them), separate web roots, etc.  That's a lot of stuff to try and
deal with, especially since it almost always ends up being a bunch of
conditionals in the code (i.e. if (dev) dsn = "thisDSN" else dsn =
"thatDSN").  That makes for messy code, and it usually also mades for
forgetting something in the mess.

Bottom line, unless you have a very compelling reason to avoid a
multi-instance setup, it's the way to go.  These probelms aren't CFMX
(or CFML) specific, either, you'll run into them with any environment
where you're trying to run two copies of the same thing within a
container design for just one.

cheers,
barneyb

On Mon, 17 Jan 2005 12:33:16 +1100, Duncan I Loxton
<[EMAIL PROTECTED]> wrote:
> Thanks Barney, but it seems entirely unpractical that mx cant
> distinguish application names/variables when they are set on
> differenct sites.  Are you telling me that this is a bug and there is
> no other way around it except for separate instances of jrun?
> 
> 
> On Sun, 16 Jan 2005 17:04:54 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> > Set up multiple CF instances in JRun.  The free developer edition (or
> > the soon to be killed DevNet version) let you do this without cost.
> > You'll be running each version of the app in a totally independant
> > environment with no possibility of confusion.  We do this in our
> > office with great success.  It does require a bit of RAM in the dev
> > server though, since CF isn't a very lightweight app, and you have a
> > complete copy of it for each instance.
> >
> > These phantom problems that you're having (among other things)
> > prompted me to go this route, rather than just running multiple
> > versions on the same instance.  It's a little more headache to get
> > everything set up, but it's worth it.
> >
> > cheers,
> > barneyb


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 8 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190659
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to