on 06-13-2007 12:57 PM
Hi friends ,
Can you plese explai about the Block with dead Line branch ?
Can i use before receive step ?
Situation like , i am using JDBC Sender adapter , if db connection lost it have to throw an alert . don't process further .
Can it contains ThrowAlrert Control ? If so how it behaves ?
Best regards.,
V.Rangarajan
Hi;
You will have to use a synch send to JDBC step in this case and use a block and a exception branch.
the reply from JDBC will be the number of rows updated or inserted.
Mudit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
design a scenario . Receive Data from sender ( abstract interface) . As you want to throw an alert on some exception condition put the next steps in block . In block add the sync send step which will have deadline branch . In deadline branch add the the control step . In that control step you throw the exception/alert . And then have a send step . So all your errors will get tracked .
Thanks ,
Suvarna
Award pts if it helps .
Hi Mudit,
Thanks for your reply . My scenario is read from sql_server using jdbc sender adapter and Write to r3 tables.
So i have to first connect to sql_server .Suppose if connection lost , the receive step it self should be blocked right ?
Is my assumption is correct ?
Can we keep the Deadline branch before the receive step ? If i try that one it is showing warning as trigger has been removed like that .
Expecting your reply asap .
Regards .,
V.Rangarajan
>>So i have to first connect to sql_server .Suppose if connection lost , the receive step it self should be blocked right ?
If the connection to the db is lost, you wont get a msg to XI at all. SO what are you trying here?
Deadline branch is usually useded, when you do a a collect pattern ie collect several msgs and merge them.
In your case, I guess you are trying to send a single msg. So no need of BPM at all.
Regards,
Jai Shankar
Hi Rangarajan,
jdbc sender adapter work asynchronous, with a poll mechanism. It will poll again, if connection works. If Connection is broken, nothings happens, you dont have to care. No message can reach your BP. You need that exception branch only for jdbc receiver adapter in synchronous cases.
Regards,
Udo
Hi jai ,
Thanks for your reply . Yes what you told is correct . But i need to check the incoming data of one field length is correct or not .
So in mapping i have checked that . I assumed as if i used bpm i can send an alert , if the string hasn't in the required format .
Is my assumption is correct .
Regards .,
V.Rangarajan
Hi Rajan,
In your case if you configure alerts then in the situation which you mentioned
alerts will be raised if theres a connection failure.
No need of BPM.
Regards,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rangarajan
you need an exception branch (context on the block) and a control step there, where you can choose throwing alert. You can put another control step for finish the process.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.