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 service

    Posted 02/20/12 04:10 AM

    Hi,

    I am new to weMethods, I have created the Java service. I deleted the method pipelineCursor.destroy() from generated code, it compiles and works fine.
    Is there any impact of this, like on memory or something else?

    Thank you…

    Prabhakant


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


  • 2.  RE: Java service

    Posted 02/20/12 06:02 AM

    Review the API documentation which describes this method. From that you should be able to determine the impact of not calling it.


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


  • 3.  RE: Java service

    Posted 02/23/12 04:08 AM

    Thank you, I got it…
    Java garbage collector will do this if you neglect to do so.


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


  • 4.  RE: Java service

    Posted 02/23/12 11:24 PM

    You should always be calling it as it allows the webMethods IS to manage its resources more effectively. The way you described things above sounds like you missed the requirement to call it. Waiting until GC runs is a BAD idea.

    From IDataCursor.destroy():

    So please don’t cut it out just for the hell of it - that’s a bad idea and you’re ignoring the API documentation.

    regards,
    Nathan Lee


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