Re: Java class: compile and load dynamically

2006-11-23 Thread Gabriele Columbro

On 11/23/06, Alfred Nathaniel [EMAIL PROTECTED] wrote:


On Wed, 2006-11-22 at 17:02 +0100, Gabriele Columbro wrote:

 Completely agree with you, and that's why this feature has been added
 to the 2.2 trunk (actually I'm planning to start from Maurizio's work
 to complete the full reloading from sources, not only from classes,
 and to reach a zeroconf default), for components as well as for
 Javaflow (not for XSP as they have been deprecated).

 But maybe someone more informed on this feature on 2.1 may comment on
 this issue. Any clue guys?

If you attach Eclipse to a Cocoon instance then it will try to compile
any source changes and replace the bytecode within the running JVM.
That works though only for minor edits which do not change method
signatures.




Yes, but sometimes remote debug has been the most misleading feature ever...
can you imagine, while testing/configuring the reloading feature on the 2.2,
how many times did we got tricked by the fact that Eclipse and not our
ReloadingClassloader was reloading classes?

;-)

HTH, Alfred.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
-
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-
work: [EMAIL PROTECTED]
private: [EMAIL PROTECTED]
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: [EMAIL PROTECTED]
AIM:   gabrielecolumbro

-
Keyboard not found.
Press F1 to continue
-


Re: Java class: compile and load dynamically

2006-11-22 Thread Dev at weitling
Hi Gabriele,

 first of all, do you actually mean Cocoon 2.1 or 2.2?

'Cause I don't know when Cocoon 2.2 will be finished I'm a coward and
stay with 2.1.9 on the stable side.

 Because in the latter case the trunk already partially support what
 you're
 [..snip...]
 package and to the reloading sample. Or you can get more info here [1]
 and
 here [2] for possible troubles.

Thanks for the tips. I will keep them on my mind.

 On the other hand if you were meaning the 2.1.x branch, actually I don't
 know if the reloading classloader functionality has ever been
 implemented.

If one is working with XSPs there's is automagic compilation and
reloading built in. Maybe, this is a layman's opinion, but this *should*
be possible for normal Java files, too.

:-?
Florian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java class: compile and load dynamically

2006-11-22 Thread Gabriele Columbro

Hi Florian,

On 11/22/06, Dev at weitling [EMAIL PROTECTED] wrote:


Hi Gabriele,

 first of all, do you actually mean Cocoon 2.1 or 2.2?

'Cause I don't know when Cocoon 2.2 will be finished I'm a coward and
stay with 2.1.9 on the stable side.



I would not call it cowardy,  but rather a compromise between progress and
productivity...but that's software philosophy ;-)


Because in the latter case the trunk already partially support what
 you're
 [..snip...]
 package and to the reloading sample. Or you can get more info here [1]
 and
 here [2] for possible troubles.

Thanks for the tips. I will keep them on my mind.

 On the other hand if you were meaning the 2.1.x branch, actually I don't
 know if the reloading classloader functionality has ever been
 implemented.

If one is working with XSPs there's is automagic compilation and
reloading built in. Maybe, this is a layman's opinion, but this *should*
be possible for normal Java files, too.



Completely agree with you, and that's why this feature has been added to the
2.2 trunk (actually I'm planning to start from Maurizio's work to complete
the full reloading from sources, not only from classes, and to reach a
zeroconf default), for components as well as for Javaflow (not for XSP as
they have been deprecated).

But maybe someone more informed on this feature on 2.1 may comment on this
issue. Any clue guys?

Good luck!
Gabriele


:-?
Florian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
-
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-
work: [EMAIL PROTECTED]
private: [EMAIL PROTECTED]
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: [EMAIL PROTECTED]
AIM:   gabrielecolumbro

-
Keyboard not found.
Press F1 to continue
-


Re: Java class: compile and load dynamically

2006-11-22 Thread Alfred Nathaniel
On Wed, 2006-11-22 at 17:02 +0100, Gabriele Columbro wrote:

 Completely agree with you, and that's why this feature has been added
 to the 2.2 trunk (actually I'm planning to start from Maurizio's work
 to complete the full reloading from sources, not only from classes,
 and to reach a zeroconf default), for components as well as for
 Javaflow (not for XSP as they have been deprecated). 

 But maybe someone more informed on this feature on 2.1 may comment on
 this issue. Any clue guys?

If you attach Eclipse to a Cocoon instance then it will try to compile
any source changes and replace the bytecode within the running JVM.
That works though only for minor edits which do not change method
signatures.

HTH, Alfred.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]