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.  Java code adding

    Posted 07/06/18 09:09 AM

    When i create a new java service already available java service code is adding to the new java service in webMethods.How can i resolve it.


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


  • 2.  RE: Java code adding

    Posted 07/06/18 11:33 AM

    Hi Naveen,

    not quite sure what your exact question is, but I will try to sched some light on this:

    A java service is just a method in a java class.
    The service is stored in a node.ndf (the signature) and a java.frag (the implementation) file.
    The class also contains informations from the node.idf of the folder, where the services are located.
    In this file is the shared code stored as well as the import-statements for the class.

    When opening a Java Service in Designer it will show the complete resulting java source file, which contains the shared part as well as all java services in this folder, but only the shared part and the selected java service will be editable.

    See Service Development Help for further informations.

    If you have more qeustions regarding this provide a more detailed description of the issues you are encountering.

    Regards,
    Holger


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


  • 3.  RE: Java code adding

    Posted 07/09/18 02:27 AM

    Thanks Holger.

    But my question is when i tried to create a new java service in webMethods ,some methods and code already available in other java classes is adding to this new class.Is there any option for avoiding this.


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


  • 4.  RE: Java code adding

    Posted 07/09/18 03:29 AM

    The java services within the folder will share "<<IS-START/END-IMPORTS>>" and <<IS-START/END-SHARED>>

    For your resolution, create your java service in a specific folder. Let us know if you have further questions.


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


  • 5.  RE: Java code adding

    Posted 07/09/18 03:59 AM

    Hi Mahesh,

    Thanks, Now i am able to create new java service into a specific folder.Is there any other solution to avoid old code.
    

    Regards,
    Naveen.


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


  • 6.  RE: Java code adding

    Posted 07/09/18 04:08 AM

    I think it’s by design. Let see what other experts have a say on this.


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


  • 7.  RE: Java code adding

    Posted 07/09/18 08:51 AM

    HI Naveen,

    as I tried to explain before, a Java Service in designer is not really a class by itself, but it is a method in a class which is represented by the folder in which the services are placed.

    Therefore all Java Services in one folder will share the imports and common methods marked by the tags Mahesh has mentioned.

    Can you describe what is your concern why you want to avoid this sort of code sharing?

    When there seems to be old or outdated code amongst the shared methods make sure that this is not used by other java services in this folder and you can remove it then.

    Regards,
    Holger


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