Ryan,

Ping me off list and I'll get you the file and all try to circle back with
the CFDJ folks and ask them WTF.

rish

-----Original Message-----
From: Ryan Crutchfield [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 8:25 AM
To: CF-Talk
Subject: RE: Releasing a Java class

Hi Guy,

    The jar file (ccoj_042001.jar) referenced in the article doesn't appear
to be attached to it. (At least I couldn't find it).

ryan
  -----Original Message-----
  From: Guy Rish [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 13, 2004 6:11 PM
  To: CF-Talk
  Subject: RE: Releasing a Java class

  Ryan,

  The DebuggingFactory class is part of a larger Java kit I wrote
specifically
  for ColdFusion.  It should be available with the source for the article.
  If it is not then please let me know and I will get you the code.

  rish

  -----Original Message-----
  From: Ryan Crutchfield [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 13, 2004 4:46 PM
  To: CF-Talk
  Subject: RE: Releasing a Java class

  Thanks, this looks promising. Can you tell me what
  "net.rish.coldfusion.util.DebuggingFactory" relates to? I am assuming that
  the rish refers to something locally for you?
    -----Original Message-----
    From: Guy Rish [mailto:[EMAIL PROTECTED]
    Sent: Thursday, May 13, 2004 5:26 PM
    To: CF-Talk
    Subject: RE: Releasing a Java class

    Ryan,

    You cannot release a Java class because its bytecode has been saved by
the
    JVMs class cache.
    What you need to do is create a custom class loader with a flush method.
    You would then have that class loader load the class you want to use and
  use
    the class instance that it returns.

    I could have pointed you to the wonderful ColdFusion MX Developer's
  Handbook
    that I wrote in - but for size reasons the editors asked me to cut that
    portion out.  Who would ever need such content?

    Fortunately, the content did make it to publication in a CFDJ article:
    http://www.sys-con.com/coldfusion/article.cfm?id=278

    rish

    -----Original Message-----
    From: Ryan Crutchfield [mailto:[EMAIL PROTECTED]
    Sent: Thursday, May 13, 2004 2:59 PM
    To: CF-Talk
    Subject: Releasing a Java class

    Hello,

        Is there any way to release a Java object from memory after it has
  been
    called?
        example call: <cfobject type="java" name="obj" class="class"
    action="">
        I have a class file that I call through CFMX, and if its not 100%
    correct, I recompile the class file and try again.
        However the old version of the class file is stuck in memory and I
  have
    to recycle the CFMX services in order to
        see the changes. Won't be as annoying with a finished object, but I
    guess just for an easier test environment.

        I have seen the documentation on ReleaseComObject() but this is
    apparantly for COM objects only (and throws an error
        when I use it anyways. "cannot cast void to non-void").

        Any help would be appreciated. Thanks
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to