Skip to Content
author's profile photo Former Member
Former Member

Max Time Out of JDBC adapter?

Hi Experts,

In one of my scenario i need to get the acknowledgement after the records have been inserted in the database. Can i increase the timeout of JDBC channel in case of synchronous scenario ?

Or else how can i get the acknowledgement if the data to be inserted is huge (Inserting 1 million records) and takes 30 min to 1 hour time.

Thanks

Ajay Garg

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 30, 2008 at 04:17 AM

    hi

    If it is a synchronous call, you will get the Number of records Inserted (count) as the response. Since it takes 1hr 30mins, you will have to increase the timeout period in Source system, XI and also in the DB(permanant/normally much higher).

    Better to do this asynchronously, but you won't get a response. Instead in case of any failures, you can configure alerts to be triggered. XI will do the commit only after inserting completely.

    rgds,

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 30, 2008 at 03:49 AM

    Hi,

    You can increase the timeout in case of synchronous scenario but is never recomended to do so. 30 minutes to 1hour is too much time.

    You need to change your scenario from Sync to Async. What you can do is create a temp table wihich will update the status each time after all the rows get inserted in database.

    Have another JDBC Sender chanel which will keep querying the temp table to see if the new records are inserted or not and based on that you can send response back to the Calling System.

    Thanks

    Amit

    Reward points if suggestion is helpful

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.