Is it possible to use the class loader on a class or package that references other classes in the coldfusion library (ie. itext) ?

Do you think it would be easier if I create a class that I can place the in the class path that contains code to load particular classes for me?

ie. If I can't load classes into coldfusion from Coldfusion code, maybe I can do it via a java class in the class path?


Example:

public class PageEvents extends PdfPageEventHelper {
   
}

where PdfPageEventHelper is an itext class.

Gareth.

Sean Corfield wrote:
On 12/16/05, Ben Nadel <[EMAIL PROTECTED]> wrote:
  
If you use a class loader to load a java class, does that class now live in
the ColdFusion memory space the way a class would if it's path was set in
the ColdFusion admin....
    

That's not entirely a straightforward question to answer because it
depends on what the class loader actually does... However, classes
generally live in a specific part of memory so, yes, it's much the
same as adding a class to the class path (in this case if you use the
CFMX class loader to load a Java class explicitly, it will be the same
as if CFMX had loaded it implicitly) - however classes don't live in
"the ColdFusion memory space" (I assume you mean the regular heap).
Java memory management is pretty complex but Sun have a lot of
documentation on how the various memory spaces all work (perm, eden,
survivor etc).

  
if you use class loader, does it incur large
overhead everytime you load that javaclass? Or just the first time, the rest
being like built in java classes?
    

Again, it depends on which class loader you use and how it's written.
In general, I'd say don't worry about it...
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]


  

--
Kind Regards,
Gareth Edwards
 
the alpha school system PTY LTD
Unit 1, 31 Thompson Street Bowen Hills QLD 4006
T  Intl +61 7 3216 0999  F  Intl +61 7 3216 0500
www.tassweb.com.au  ABN 87 010 874 816
 
TASS news
- NEW Pays Portal in Teacher Kiosk
- Electronic Pay Envelopes
- HR requests online
- Leave Analysis Charts & Reports
- TASS 6.10.000 is available for download
- significant enhancements to Payroll
- NEW Superannuation Subsystem
----- Visit www.tassweb.com.au for more info -------
 
Virus Disclaimer: Please note that this email may contain computer-generated file(s) as an attachment. Whereas we take every effort to protect our files from computer virus, we recommend that you check the file(s) with your own virus detection software prior to opening it. If you would prefer to receive a hardcopy of the file please email or phone. Alpha Business Systems does not accept liability for the consequences of any computer viruses that may be transmitted with this email.
Confidentiality: This email and any attached files are intended solely for the addressee(s) and may contain confidential and privileged information. If you received this email in error, please advise us by return email or phone and disregard the contents and immediately delete it and destroy any copies.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to