I'm guessing that it does... because if I understand things correctly  
the server monitor uses JMX, turning it on and off is done  
programmatically, and that uses the instrumentation classes in Java 1.5.

I'm making gross assumptions and have huge gaps in my understanding  
of things... so pay absolutely no attention to me. ;)

I did, however, find the page I was looking for with the bit I knew  
I'd read:

http://java.sun.com/javase/6/docs/api/java/lang/instrument/package- 
summary.html

Starting Agents After VM Startup

An implementation may provide a mechanism to start agents sometime  
after the the VM has started. The details as to how this is initiated  
are implementation specific but typically the application has already  
started and its main method has already been invoked. In cases where  
an implementation supports the starting of agents after the VM has  
started the following applies:

The manifest of the agent JAR must contain the attribute Agent-Class.  
The value of this attribute is the name of the agent class.
The agent class must implement a public static agentmain method.
The system class loader ( ClassLoader.getSystemClassLoader) must  
support a mechanism to add an agent JAR file to the system class path.
... /snippage

So yeah, I guess the deal is to find out if this is available in CF  
or not...

Laterz,
J

On Oct 20, 2008, at 4:18 PM, Mark Mandel wrote:

>
> You can do it... if the SystemClassLoader implements the necessary
> hooks to allow you to add agents at runtime... which I'm not sure if
> CF does or doesn't.
>
> Mark
>
> On Tue, Oct 21, 2008 at 8:10 AM, Jared Rypka-Hauer
> <[EMAIL PROTECTED]> wrote:
>>
>> I suppose this isn't something that could be handled by a small Java
>> library (to start the agent and stuff) and JavaLoader.cfc?
>>
>> Just wondering... my Java is weak and every time I try to strengthen
>> it I find myself wandering the halls of Acronym Hell on my own. It's
>> one of the things I hate most about Java... at least with AS3 there
>> are "here's how to get {cool thing x} working in your own
>> application" blog posts out there. Every time I'm interested in
>> something Java, I get nothing but partial mailing list threads,
>> JavaDoc links and marketing messages from Sun in my Google results.
>> Argh.
>>
>> J

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

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to