Pat,

I am not talking from a great deal of experience, so others will confirm.

If you create a multi instance of Coldfusion there is a few things you need
to take into consideration, I'll address your questions first.

As far as class path order, I believe it is the order that is set in the
jvm. As for the best location to place them, as long as it is in a class
path then all will be fine. As for access via each instance, as long as you
know if it will be accessible by all or just one then you can create them in
the global resource, or instance resource. Each instance has its own jvm
settings for this reason, so you can even use the resource to make
datasources global or instance only. The best example I used this for was
the mysql jdb connector, by placing this in the class path of the jrun jvm
settings this becomes available to all instances and/or Context paths.

The class path as long as it is in a jvm setting, can sit anywhere on the
HD.

Of course if these instances are clustered then, they are going to be global
to each instance anyway.

HTH


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Pat Branley
Sent: Monday, 9 July 2007 11:13 AM
To: cfaussie
Subject: [cfaussie] multi-instance setup and Classpaths


Hey All

We are about to re-install CF on servers and i was trying to figure
out whats the best way to config 3rd party JAR files ? We run a multi-
instance enterprise installation and as far as i know there are number
of ways to get a jar file into the classpath.

1. drop into WEB-INF\lib folder
2. drop into WEB-INF\cfusion\lib folder
3. edit the java.class.path property in the <JRUN_HOME>\bin\jvm.config
file.
4. edit web.xml and change the cf.class.path variable
5. put the file into the <JRE_HOME>\lib\ext folder (usually only when
theres a conflict with built in cf libraries ill do this)
6. Use the classloader method (but this means code changes to existing
apps)

Im thinking that i can set up on my server a 'C:\thirdy_party_apps\'
and then put each JAR i need into this folder. This would mean i only
have to put 1 entry into the cf.class.path setting in web.xml.

Sometimes i have separate instances that use the same JAR, so id like
an external folder if possible rather than copying files into each
instance.

Im just a little confused about the order that the server does the
classpath lookups in I *think* it does it in this order
cf.class.path (which includes the web-inf sub folders)
java.class.path (defined in jvm.config)
<JRE_HOME>\lib\ext

Can someone confirm this ? I cant find much in the docs on it. Any
thoughts on this setup ?

Pat



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/890 - Release Date: 7/07/2007
3:26 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/890 - Release Date: 7/07/2007
3:26 PM
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to