Plex 2E

 View Only
  • 1.  CA 2E: RUNJVA-Command

    Posted Jun 03, 2016 05:29 AM

    Hello,

    In 2E I can call Java programs via a 'Execute user program' (generated as CL-Program) with the command 'RUNJVA'. This works fine but the performance is not good. Every call to a Java program starts the JVM and this takes quite a long time (30-40 seconds). Does anybody has experience in calling Java from CA 2E? Does anybody has a hint how to improve the performance?

    Thankful for every hint,

    Ueli



  • 2.  Re: CA 2E: RUNJVA-Command
    Best Answer

    Posted Jun 03, 2016 07:29 AM

    Hi,

     

    On AS/400, you have the option to optimize your Java application with the Create

    Java Program command.

    CRTJVAPGM creates a hidden service program, associated with your class file, that

    improves performance. CRTJVAPGM also has an OPTIMIZE parameter that allows

    you to select the level of optimization for your service program.

     

    Note: It’s advised that you run the CRTJVAPGM command on all Java classes, JAR files,

    and ZIP files you create.

     

     

    Regards

    AA



  • 3.  Re: CA 2E: RUNJVA-Command

    Posted Jun 03, 2016 08:11 AM

    don't use "RUNJVM" its all in the name..

     

    Here is a very recent article with 2E guys and IBM i trusted sources of info  IBM i (iSeries & AS400) technical discussion