ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bur...@openprivacy.org (Kevin A. Burton)
Subject Re: [PROPOSAL] 'redefine' task that uses JDK 1.4/JPDA class redefinition
Date Mon, 04 Feb 2002 07:54:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Jencks <davidjencks@directvinternet.com> writes:

> While this is certainly an interesting proposal, I don't think it is ready to
> replace application server class management/application redeployment.

... of course... not right now :)

JPDA in JDK 1.4 doesn't not support defining new methods.  This sucks.
hopefully this will be fixed soon.

> --Application server class management usually gives you the ability to remove
> classes entirely from at least part of the classloader picture.

Have you ever looked into the mechanisms that applications use to reload.??
Very ugly stuff.  At least with JPDA I feel WAY more confident.

... and no... you can't REMOVE classes but neither can anything else.
Application server reloaders can't remove a class either.  It is just defined in
an orphaned ClassLoader.

With this mechanism the class will remain in the same classloader but won't be
called.

> --It does not appear possible from a quick glance to be able to change
> resources loaded by a classloader.

<snip/>

Hm... I put that on the TODO list.  It is a good point.  I can directly invoke
methods on the remote ClassLoader via ObjectReference.invoke.  It does appear
that you can define classes that aren't available otherwise.

I could probably find out a way to include resources.

Kevin

- -- 
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - burtonator@jabber.org,  Web - http://relativity.yi.org/

For evil to win, is for good men to do nothing.
       - Winston Churchill.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8Xj4kAwM6xb2dfE0RAr9dAJ45q109Npk8MeHJb+WyXmKg2I32SgCgnS9h
vx26I6M2uytxF0u46j1BxRc=
=n5rc
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message