Re: Java Hot Code replacement in Eclipse!

From: Ramy (Ram..ffigent.net)
Date: Mon Jul 11 2005 - 02:45:12 EDT

  • Next message: Anjo Krank: "Re: wodclipse"

    Well,
        I would like to put my point in a much more clear and lucid way.
    On this Eclipse3.0.1/WOLips_1.1.0.102_RC_2, we are using only incremental builder for all our Frameworks and Applications(And not Ant builder).

    Let's say, i have a framework called
    AP and i want to use debugger on one of the classes of the AP framework.
    Once i run my Application through
    Debug As=>WOApplication mode, Eclipse is promting for source attachment, as and when i traversed through the AP framework Class(where breakpts kept).

    Now Iam simply attaching the source(src) folder in AP directory to a classpath variable called APsrc. Immediately, eclipse is opening a .class file and Iam able to debug through this .class file.

    Here comes the issue. As per eclipse hot code replacement, whenever i change the source file it has to update the same in the related and respective .class file. But the .class file is not being updated.

    Note: One more interesting point I had observed during debugging process is, if i remove src folder classpath variable, immediately it  popsup for source attachment. Now if i attach the same source folder once again, surprisingly the .class file diplayed is uptodate.

    Hope you got some meaning in my long explanation.

    waiting for your thought reflection!

                                                              with rgds,
                                                              Ramy.



    Mike Schrag wrote:

    It's worth pointing out that hot code replacement has the same  limitations as hot code replacement in regular java apps in that you  can't hot code replace structural class changes.  So if you're trying  to add methods or fields while your app is running, none of the  consumer java vms let you do that.  So make sure you're only changing  IMPLEMENTATIONS of methods.

    ms

    On Jul 8, 2005, at 11:15 AM, Chuck Hill wrote:

    Me too.  Double check that you are launching in Debug (not Run!)  mode and are using a 1.4 JRE.

    Chuck

    On Jul 8, 2005, at 7:58 AM, Brendan Duddridge wrote:


    Yes. hot code replacement works just fine for me too with all  default values.

    ____________________________________________________________________
    Brendan Duddridge | CTO | 403-277-5591 x24 |  brendan@clickspace.com

    ClickSpace Interactive Inc.
    Suite L100, 239 - 10th Ave. SE
    Calgary, AB  T2G 0V9

    http://www.clickspace.com

    On Jul 8, 2005, at 7:57 AM, Mike Schrag wrote:


    I run entirely with default values, which is:
    Classpath:
        Bootstrap Entries (JRE)
        User Entries (all of my included libs and WO Frameworks)
    Source:
        JRE
        My Project
        Use default source lookup path

    Basically you shouldn't have to do anything special -- hot code  should just work out of the box as long as you are running in  Debug mode.

    On Jul 8, 2005, at 9:41 AM, Ramy wrote:


    But what about the "classpath"tab and "Source" tab in the run  WOApplication Run configuration?

    Do we have to uncheck the "use default source lookup path" in  source tab?

    Could you give some observations on this?

                                                           with rgds,
                                                           Ramy.

    Mike Schrag wrote:

    Just Debug As=>WOApplication and hot code should work.

    On Jul 8, 2005, at 4:41 AM, Ramy wrote:




    Hi ,
        Can any one of you tell me, what exactly are the steps  needed  for Java Hot Code replacement to work on WOApplication.

        Currently Iam using Eclipse3.0.1 with  WOLips_1.1.0.102_RC_2. And the jdk is J2sdk1.4.1_06.
    Iam really getting frustrated with eclipse as its core featrue  Hotcode replacement is not working properly.

                                                           with  regards,
                                                           Ramy.

    <Ramy.vcf>



    <Ramy.vcf>






    -- 
    Practical WebObjects - a book for intermediate WebObjects  developers who want to increase their overall knowledge of  WebObjects, or those who are trying to solve specific application  development problems.
    http://www.global-village.net/products/practical_webobjects










    This archive was generated by hypermail 2.0.0 : Mon Jul 11 2005 - 02:40:41 EDT