on 03-01-2016 8:01 AM
I have some questions concerning user defined functions (UDF) in mappings.
Hi,
Just to add.
In a sync scenario if you set a timeout at a channel/adapter level this parametrization can help to avoid endless mappings to crash the system:
In asyn cases, at least in a dual system you can configure a timeout o maximum time of processing at IE level, and this would be helpful (check 2.1 and 2.2 points):
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raffael,
Is it possible to produce an endless mapping process, by writing an endless loop in the UDF or is there a timeout for mappings?
AFAIK there is not a timeout for mapping, but there are for example a maximum time of execution inside PI, timeout for adapter waiting, etc. Therefore, you can do and endless loop but a exception will be raised.
If there is no timeout and I produce an endless loop, how to stop it? Is it possible to stop the "process" which runs the endless udf instance? (If so, is there a way over NWA/Administration or only via terminal?)
As I've said there are several controls to avoid one communication have a workproccess eternally.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case there is the following call inside an UDF:
Process p = Runtime.getRuntime().exec(command)
If the command will never return a result, the adapter will raise an timeout exception. Did I understood you correct? If so, will the process started by the UDF also canceled because it's a child process of the UDF's process or do I have to cancel the process "p" manually?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.