facebook

Sync-on-Demand when saving a file? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #197741 Reply

    ErikEngerd
    Member

    Hi,

    The normal behavior of Ecliipse for Java projects is to compile the source file as soon as it is saved. This, I believe, still happens, but when I modify a file, my EJB is not automatically redeployed.

    Info:
    * Eclipse: 2.1.1
    * JBoss: 3.2
    * Workbench 2.5.1
    * Deploying a stateless session bean with exploded deployment.

    In this case, the application is only redeployed when I select ‘rebuild project’ or ‘rebuild all’. How do I configure Eclipse to redeploy my application every time I save a file?

    Cheers
    Erik

    #197744 Reply

    ErikEngerd
    Member

    Hi,

    I also re-installed Eclipse and the Workbench plugins and did not install any other plugins. The effect is the same, whenever I modify a file, redeployment does not take place.

    Cheers
    Erik

    #197746 Reply

    ErikEngerd
    Member

    Hi,

    I also took a look at the eclipse log file. There is one entry in it which could explain the problem perhaps:

    !ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:32:50.260
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.server

    The complete log file is as follows:

    !SESSION Aug 12, 2003 00:02:01.991 ———————————————
    java.version=1.4.1_02
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
    !ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:02:01.991
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.server
    !ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:02:22.861
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.server
    !SESSION Aug 12, 2003 00:32:50.260 ———————————————
    java.version=1.4.1_02
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
    !ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:32:50.260
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.server

    Cheers
    Erik

    #197747 Reply

    ErikEngerd
    Member

    Hi,

    I also removed all Java VM installations from my machine and made sure I have only one JDK installed (the latest: 1.4.2). The problem still exists.

    Cheers
    Erik

    #197748 Reply

    ErikEngerd
    Member

    Oops,

    Sorry for all the confusion but I have solved the problem.
    I forgot to mention that JBoss was running in a separate command prompt window. Wenn I run JBoss from inside Eclipse everything works.

    Nevertheless, it would be nice if it would be possible to use sync-on-demand when the server is already running somewhere else. Last time, I got errors indicating there was not enough memory, which required me to restart Eclipse. By being able to start the JBoss server in a separate process, perhaps this problem could be solved. My computer has 512 MB of memory.

    Anyway, I am glad that the problem is solved now and I am getting quite happy with the MyEclipse workbench.

    Cheers
    Erik
    😉

    #197749 Reply

    Scott Anderson
    Participant

    Erik,

    Last time, I got errors indicating there was not enough memory, which required me to restart Eclipse. By being able to start the JBoss server in a separate process, perhaps this problem could be solved.

    You can configure how much memory is given to Eclipse by changing the startup alias to use the -vmargs command to specify more. For example:
    -vmargs -Xmx256M

    If it is JBoss that is running out of memory, on the JBoss > JDK configuration page you can specify Optional VM Arguments to give JBoss more memory. For example:
    -Xms128M
    -Xmx256M

    Which you use depends on whether it is Eclipse that is running out of memory or whether JBoss is reporting that it is running out of memory.

    Anyway, I am glad that the problem is solved now and I am getting quite happy with the MyEclipse workbench.

    Always good to hear! 🙂

    –Scott
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Sync-on-Demand when saving a file? [Closed]

You must be logged in to post in the forum log in