wait for a db2 command line
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > wait for a db2 command line




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    wait for a DB2 command line  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 12:51 PM

i have to load the content of a txt file in a DB2 table and then i have to t
ransfer the rows of this table in another one. To do this i'm working with a
 scheduler job that use a config xml file. In this file there are different 
tags that the job executes
sequentially.
When the job read the tag relative to the loading from txt to table, start a
 DB2 CLP that executes a specific command line. The succesive tag in the xml
 file is that relative to the transfering from a table to another one so i c
an execute it only if previ
ous tag (the DB2 command line) is terminated. But the DB2 command line work 
like a thread, in parallel with the main process, so when the scheduler job 
starts to execute the second tag, it will find the table empty and the job d
oes nothing. How can i wait
for the end of the thread?

To execute the command line i'm using Runtime Java class with the exec() and
 waitFor() methods to check the correct execution of the process.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:26 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register