IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

How to programmatically implement a Java compile check service

  • 1.  How to programmatically implement a Java compile check service

    Posted Mon January 30, 2006 01:05 PM

    Hello

    We have a bunch of Java flow services which are dependent on external code libraries (jar files). We are running on webMethods IS 6.1.
    Of course, I can add a new method in every ava flow service called “compileCheck”, have it return 0, and invoke it from a Junit program.
    Is there a better way. Will it be possible to invoke the class’s hashCode method and look for an integer?

    Andi Giri


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: How to programmatically implement a Java compile check service

    Posted Mon January 30, 2006 08:07 PM

    Have you tried using the jcode utility? See the Administrator’s Guide - Appendix H for more on JCode and source code control systems.

    In the past, I have used Ant to run jcode during a build from a source code control system. JCode will produce errors that can be caught in Ant / Cruise Control for some “continuous build-lilke” behavior.

    Mark


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: How to programmatically implement a Java compile check service

    Posted Wed April 19, 2006 09:07 PM

    Mark,

    Quick question for you. We are trying to do what you suggested and we use Ant / Maven plus jcode. The process is very simple. After we checkout all the code necessary for a package to run properly, and after running jcode and recompiling all the java services, how can we programatically reload a package in webMethods 6.1? I know that we can ask the Admin to do that, but we need this reload package thing to be part of the build routine.

    We want to avoid restarting the entire server by reloading only the package updated, otherwise the changes will not be taken in consideration by IS.

    Any suggestion?

    Thanks in advance!


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: How to programmatically implement a Java compile check service

    Posted Wed April 19, 2006 10:12 PM

    Waldes,

    I think the easiest way would be to use a java app generated from pub.packages:reloadPackage using Developer’s Generate Code->For calling this service from a client->Java

    You will pass in the name of the package. If the reload works you get a message “ was reloaded successfully”.

    Hope this helps,

    Mark


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods