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.

 View Only
Expand all | Collapse all

Invoking COM service breaks the IS

  • 1.  Invoking COM service breaks the IS

    Posted Thu February 27, 2003 10:09 AM

    Hello.

    I wrote a COM service using VB that connects to and pulls down data from an Oracle database using ADO. Invoking this service using win32.COM:invoke (from the developer IDE) usually results in a successful call the first time and in some cases, the second time. But more often, invoking the COM service the second or third time results in the Integration Server crashing (some java error reported or on my Win2K professional workstation, a GPF).

    I suspect at first that maybe the JRE versions on my PC and on the IS may not be compatible (1.2 and 1.3 respectively). However, invoking the service on the server itself also results on the server crashing.

    I appreciate any explanation and assistance that you may give with regards to this matter. Thank you.


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


  • 2.  RE: Invoking COM service breaks the IS

    Posted Thu February 27, 2003 02:11 PM

    Hi,
    How do you invoke the COM object?
    There are 3b steps involved in invoking a COM object.

    1. createObject
    2. invoke the method
    3. release the object

    Are you doing this right? Some times if you dont release the object from memory, the webMethods sever crashes.
    Thanks and hope you get this solved.
    Good Luck!


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


  • 3.  RE: Invoking COM service breaks the IS

    Posted Fri February 28, 2003 01:24 AM

    Hello,
    Thanks for your reply.
    I checked the Users Guide and I read that the 3 outlined steps are used to call an exsting COM objects and you use the win32.COM.dispatch services.

    The COM object I have, however, is a webMethods service written in VB that uses the webMethods Values object and I used the win32.COM:invoke service to call it.

    I also suspect that the object is not released prior to the next methods call. How do I release a COM object from memory after being invoked by the IS Server? I am worried about the performance hit since the server will have to look up and reload the COM service again after it has been released.

    Thank you


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