Question 1
A developer is designing a TIBCO BusinessWorks process that must interact with a legacy mainframe system via a proprietary TCP socket protocol. The communication is stateful and requires a persistent connection for a series of request-response interactions within a single job. Which activity is most suitable for managing this stateful, persistent connection throughout the process job's lifecycle?
Answer and explanation
Correct answer: D
For stateful, job-specific TCP communication, the correct pattern is to open a connection at the beginning of the job, pass the resulting connection reference (handle) to all subsequent read/write activities for that job, and then close it at the end. This ensures that all interactions for a single job occur over the same persistent connection. Using separate activities without passing the connection reference would result in a new connection for each operation. A single 'Invoke TCP Request' is for stateless interactions. A 'Critical Section' group synchronizes access but doesn't manage the connection lifecycle for a stateful conversation.