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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Inheritance with java service

    Posted 02/04/19 04:34 PM

    Hi,

    I have many java services and I would like those to inherit from a custom parent java service.
    Is it possible in the webMethods environment ?

    Regards


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


  • 2.  RE: Inheritance with java service

    Posted 02/04/19 06:02 PM

    WM is a java based system, you should be able to do everything that you can on a pure java-based system.

    if you prefer, do the inheritance in a pure java class, and drop the jar file to you package, then you can use it from a java service.


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


  • 3.  RE: Inheritance with java service

    Posted 02/05/19 07:44 AM

    Yes, of course…
    but when you create a default java service in webMethods you can’t inherits from another class, but I suppose It could not be any other way :

    
    public static final void getMyStuff(IData pipeline) throws ServiceException {
    }

    So ok, I have to create my own class…


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


  • 4.  RE: Inheritance with java service

    Posted 02/06/19 01:33 PM

    Hi,

    this is due to the fact that java services in webMethods are not classes, but methods in a class.

    The class is defined by the folder in which the java services are created.
    All java services in one folder will form one class with a method in it for each java service.

    See Services Development Help for further informations about java service development.

    Regards,
    Holger


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


  • 5.  RE: Inheritance with java service

    Posted 02/06/19 02:00 PM

    Thank you Holger,

    Yes I already read part of the doc, and I’m very familiar with all these methods regrouped together to build a whole and single class (in a folder), but maybe was I looking for another custom option :wink: )

    Regards


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