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
  • 1.  Avoiding polling with the JDBC Adapter

    Posted Thu April 03, 2003 05:13 AM

    Has anyone looked into better options other than the polling built into the JDBC Adapter Notifications?

    We are interested in setting up triggers within the database that would monitor for activity, populate a buffer table and notify webMethods to perform a select and delete on the buffer table.

    The solution seems a little clunky but still better than the network overhead associated with regular polling for infrequently updated databases–especially when the infrequent activity requires rapid turnaround.

    Are there considerations we haven’t taken into account? Has anyone else tried this approach successfully or otherwise?


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 2.  RE: Avoiding polling with the JDBC Adapter

    Posted Mon April 07, 2003 02:19 AM

    Hi!

    Does you database support code in Java language, like Oracle does??

    If so, you can use the webMethods java API to access IS, or you can use ES API to publish document into the broker.

    I never did this, but I know someone who did and it works!


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 3.  RE: Avoiding polling with the JDBC Adapter

    Posted Mon April 07, 2003 11:22 AM

    Actually the network overhead of pooling is minimal since the JDBC adapter is only invoking an SQL statment or a stored procedure and the actual work is done at the engine side. (the SQL statment has the compiling overhead)… if there is no results then no overhead to consider.

    The notification approach is better to maintain the applications loose from each other an in a worst case scenario (if the pooling interval is 15 seconds the default) is having a certain table entry wait for about 14+ seconds!!! The average is much less if you calculate the probability of all the rows being added in the first seconds of a pooling cycle.

    Having the application loose means that case the middleware backbone is down the operations on the database side are not affected at all…

    If using Java inside the trigger to actualy publish the document to ES or IS then you have to accomodate failures to connect, slow connection times, etc… these can eventually produce locks in the database (case-by-case basis) and increase the complexity of the actual trigger itself.

    The side effect of this can be slowing down the entire process…


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 4.  RE: Avoiding polling with the JDBC Adapter

    Posted Mon May 12, 2003 06:38 PM

    You also can use the WmDB package to execute whatever SQL you want to poll with (usually SELECT against a VIEW or trigger table). Then just schedule the service. Much more flexibility and work with any database.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Avoiding polling with the JDBC Adapter

    Posted Thu June 12, 2003 03:58 AM

    I would like to implement a database trigger which upon insert into the atc_message_log table an insert is made into another table which is used for Production Support.

    We have a large number of integrations in our brokers and viewing and re-processing documents in the Integration Monitor (ATC v4.1) is quite time consuming.

    Does anyone know if a similar solution has been implemented in the past?


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Avoiding polling with the JDBC Adapter

    Posted Fri October 10, 2003 12:50 PM

    You can try the utl_http.request stored procedure in Oracle RDBMS to easily invoke a service on the IS. If you need input to the service, they should be built into the URL like this:

    [url=“http://my.is.com:5555/invoke/folder.subfolder/service?input1=value1&input2=value2”]http://my.is.com:5555/invoke/folder.subfolder/service?input1=value1&input2=value2[/url]

    Remember authentication in the optional username/password fields, or the HTTP invoke will fail.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 7.  RE: Avoiding polling with the JDBC Adapter

    Posted Wed September 07, 2005 06:25 PM

    Have you ever used the utl_http to connect to Wm?

    do you have an example?

    Regards,

    Hermann


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB