webMethods B2B Integration Server 4.0.1
In the mean time I have been playing around with this problem some more.
The application has two main parts:
1.acceptData is a remotely invoked servce, that receives a message body, along with some sender and content information. It writes the message body to disk and passes the sender information tnMessage to trading networks (receive)
2.processData is invoked by the processing rule in trading networks. it picks up the sender information tnMessage from the bizdoc, looks up a database to find the receiver ftp location and does the ftp of the file written by acceptData.
processData starts at acceptData/passToTN
From audit.log I learn the following:
Errors always occurred like
1.acceptData/passToTN
2.processData/getMessage
2.processData/lookupReceiver
1.acceptData/disconnect
2.processData/ftp fails
My workaround looks like this
1.acceptData/passToTN
2.processData/getMessage
2.processData/savePipeline
1.acceptData ends with server.disconnect
2.processData/restorePipeline
2.processData/lookupReceiver
2.processData/ftp ok
Occasionally the sequence is different
1.acceptData/passToTN
2.processData/getMessage
2.processData/savePipeline
2.processData/restorePipeline
1.acceptData/disconnect
2.processData/lookupReceiver fails
So your guess is right, it does not solve the problem. acceptData and processData are different threads but they obviously share the same pipeline.
I used to have a remote service call to acceptData without explicit disconnect. Maybe that is what made the error not occur in the past.
Does a real solution exist?
#Integration-Server-and-ESB#webMethods-General#webMethods