Batch Limits

Topics: Developer Forum, User Forum
Feb 18, 2009 at 10:45 PM
Thanks to all who helped create and support this adapter.  It is a very important adapter.

What happens when a batch limit is reached on the adapter?   I am under the impression that once the message count (as determined by the counting the delimited) is reached, the messages(s) should be submitted to the adapter.  Is this a true assumption?
I am having a difficult time getting messages to the receive adapter unless the client disconnects from the receive port.  In other words, the message hangs in limbo and is not submitted until the client disconnects.  I've tried adjusting timeouts and adjusting the batch size to 1, but I am unable to get messages to the receive port with out disconnecting.

I am wanting to use this adapter in an enviroment where it is a requirement that the client stay connected to the server and submit multiple messages down a persistent connection.  The messages would need to be submitted to the recieve port at the time they are sent.

Could you point me in the direction of how i can enable this functionality with the adapter? 
Also, I pasted my trace from a my box where i opened a connection to the socket and submitted 3 messages.  Eventhough the batch limit was set to 1, the 3 messages where not submitted to the recieve adapter until the client disconnected (please see last line of the trace).

thank you 

2/18/2009 4:32:44 PM.478: 14: The dispatcher is waiting for work...
2/18/2009 4:32:44 PM.478: 21: There is work to be done on thread TcpRecvBatchWorkerThread21, getting BizTalk TransportProxy batch to submit messages.
2/18/2009 4:32:44 PM.478: 21: ReceiveInitialiseNewBatch: New Batch Initialised in WorkerThread TcpRecvBatchWorkerThread21
2/18/2009 4:32:44 PM.478: 21: Dequeued work for receive location TCP://computerName:1959 on thread TcpRecvBatchWorkerThread21.
2/18/2009 4:32:44 PM.478: 21: About to receive data on socket using the following parameters: frame start = 5B 53 5D, frame end = 5B 45 5D, encoding = System.Text.ASCIIEncoding, data buffer size = 2048, accept multiple messages = True.
2/18/2009 4:32:47 PM.697: 21: 44 bytes read from the socket.
2/18/2009 4:32:47 PM.697: 21: State >>> Start Frame Not Found
2/18/2009 4:32:47 PM.697: 21: Start frame 5B 53 5D found in data.
2/18/2009 4:32:47 PM.697: 21: State >>> Start Frame Found [Create Message]
2/18/2009 4:32:47 PM.697: 21: State >>> Start Frame Found
2/18/2009 4:32:47 PM.697: 21: End frame 5B 45 5D found in data.
2/18/2009 4:32:47 PM.697: 21: Buffer processed, checking for more data.
2/18/2009 4:33:11 PM.354: 21: 44 bytes read from the socket.
2/18/2009 4:33:11 PM.354: 21: State >>> End Frame Found, message size = 38
2/18/2009 4:33:11 PM.354: 21: State >>> Start Frame Not Found
2/18/2009 4:33:11 PM.354: 21: Start frame 5B 53 5D found in data.
2/18/2009 4:33:11 PM.354: 21: State >>> Start Frame Found [Create Message]
2/18/2009 4:33:11 PM.354: 21: State >>> Start Frame Found
2/18/2009 4:33:11 PM.354: 21: End frame 5B 45 5D found in data.
2/18/2009 4:33:11 PM.354: 21: Buffer processed, checking for more data.
2/18/2009 4:33:29 PM.792: 21: 44 bytes read from the socket.
2/18/2009 4:33:29 PM.792: 21: State >>> End Frame Found, message size = 38
2/18/2009 4:33:29 PM.792: 21: State >>> Start Frame Not Found
2/18/2009 4:33:29 PM.792: 21: Start frame 5B 53 5D found in data.
2/18/2009 4:33:29 PM.792: 21: State >>> Start Frame Found [Create Message]
2/18/2009 4:33:29 PM.792: 21: State >>> Start Frame Found
2/18/2009 4:33:29 PM.792: 21: End frame 5B 45 5D found in data.
2/18/2009 4:33:29 PM.792: 21: Buffer processed, checking for more data.
2/18/2009 4:33:35 PM.402: 21: No more data received from the socket, finished.
2/18/2009 4:33:35 PM.402: 21: Submitting message for receive location TCP://computerName:1959 to batch.
2/18/2009 4:33:35 PM.418: 21: Submitting message for receive location TCP://computerName:1959 to batch.
2/18/2009 4:33:35 PM.418: 21: Submitting message for receive location TCP://computerName:1959 to batch.
2/18/2009 4:33:35 PM.418: 21: Maximum batch size of 1 has been reached - submitting batch of 3 messages to BizTalk.