Java service


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…


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

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

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.

Nathan Lee