webMethods

webMethods

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.

 View Only
Expand all | Collapse all

Import Java library to Java flow service

  • 1.  Import Java library to Java flow service

    Posted Thu May 31, 2007 11:00 AM

    Hello wMusers,

    I was trying to import a java library developed in Eclipse to the WM Integration Server so that the java flow service can call the methods in the java library.

    What I have done is:

    1. copy the aaa.jar to C:\j2sdk1.4.2_03\jre\lib\ext
    2. import the library com.aaa.bbb under the Shared tab.

    The service can be compiled successfully, but when I run the service, it prompts the error:
    java.lang.reflect.InvocationTargetException

    I am a newbie of wM, so did I miss anything when importing the library?

    I am using wM IS 6.1

    Thank you.
    Dicky Ho


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


  • 2.  RE: Import Java library to Java flow service

    Posted Thu May 31, 2007 12:21 PM

    Hello,
    you have to place the library under IS/lib/jars (and reload the IS) or under packages/<you_package>/lib (and reload the package); now import the lib classes in java code. I’m talking about 6.5, don-t know how other versions work.

    Regards,
    Sandro


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